Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 190.8 kB / 16.25 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001908/0.001908, allocations: 290.9 kB / 290.4 MB, free: 2.047 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8999/0.8999, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 99 kB / 0.5948 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1659, allocations: 86.98 MB / 0.6797 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001823/0.1678, allocations: 0.6676 MB / 0.6804 GB, free: 256 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1693, allocations: 1.273 MB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.1693, allocations: 4.844 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.1693, allocations: 0 / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.492e-05/0.1694, allocations: 0.875 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.1697, allocations: 72.39 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.851e-05/0.1698, allocations: 19.98 kB / 0.6817 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.286e-05/0.1698, allocations: 5 kB / 0.6817 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.285e-05/0.1699, allocations: 13.89 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.041e-05/0.1699, allocations: 15.91 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.1699, allocations: 0 / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002054/0.1701, allocations: 99.91 kB / 0.6819 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.1702, allocations: 3.984 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.1702, allocations: 16.42 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.1703, allocations: 67.86 kB / 0.6819 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1704, allocations: 4 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1704, allocations: 3.938 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1704, allocations: 0 / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004252/0.1708, allocations: 355.4 kB / 0.6823 GB, free: 14.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1709, allocations: 11.97 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.159e-05/0.1709, allocations: 38.73 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.1709, allocations: 4.844 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.1711, allocations: 168.4 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1711, allocations: 8.375 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.1711, allocations: 4.375 kB / 0.6825 GB, free: 13.97 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.1712, allocations: 49.81 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1712, allocations: 7.984 kB / 0.6826 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-06/0.1713, allocations: 0 / 0.6826 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1713, allocations: 0 / 0.6826 GB, free: 13.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.456e-05/0.1713, allocations: 27.91 kB / 0.6826 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001585/0.1715, allocations: 161.7 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.1716, allocations: 62.56 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.977e-05/0.1717, allocations: 28.84 kB / 0.6828 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004759/0.1721, allocations: 0.5544 MB / 0.6834 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1722, allocations: 38.48 kB / 0.6834 GB, free: 12.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.1722, allocations: 0 / 0.6834 GB, free: 12.84 MB / 494.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01931/0.1915, allocations: 4.38 MB / 0.6877 GB, free: 8.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.1916, allocations: 55.34 kB / 0.6878 GB, free: 8.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.322e-05/0.1917, allocations: 101.8 kB / 0.6878 GB, free: 8.141 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.526e-05/0.1918, allocations: 29.7 kB / 0.6879 GB, free: 8.105 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.1918, allocations: 80.14 kB / 0.688 GB, free: 8.023 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.192, allocations: 55.25 kB / 0.688 GB, free: 7.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.1922, allocations: 85.67 kB / 0.6881 GB, free: 7.879 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1924, allocations: 326.8 kB / 0.6884 GB, free: 7.551 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.1929, allocations: 307.8 kB / 0.6887 GB, free: 7.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1934, allocations: 315.9 kB / 0.689 GB, free: 6.941 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.1948, allocations: 0.7723 MB / 0.6897 GB, free: 6.168 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1948, allocations: 0 / 0.6897 GB, free: 6.168 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001486/0.1963, allocations: 0.8038 MB / 0.6905 GB, free: 5.359 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1964, allocations: 4 kB / 0.6905 GB, free: 5.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1964, allocations: 7.922 kB / 0.6905 GB, free: 5.348 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1964, allocations: 0 / 0.6905 GB, free: 5.348 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007694/0.1972, allocations: 87.95 kB / 0.6906 GB, free: 5.262 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1972, allocations: 0 / 0.6906 GB, free: 5.262 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004412/0.1977, allocations: 12 kB / 0.6906 GB, free: 5.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.919e-05/0.1977, allocations: 39.97 kB / 0.6907 GB, free: 5.211 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.1979, allocations: 131 kB / 0.6908 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-05/0.198, allocations: 0 / 0.6908 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/0.2012, allocations: 1.399 MB / 0.6922 GB, free: 3.668 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.2012, allocations: 4 kB / 0.6922 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.2013, allocations: 3.984 kB / 0.6922 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2013, allocations: 3.984 kB / 0.6922 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/0.204, allocations: 1.817 MB / 0.694 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.204, allocations: 4.031 kB / 0.694 GB, free: 1.781 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007591/0.2048, allocations: 107.9 kB / 0.6941 GB, free: 1.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.2048, allocations: 4 kB / 0.6941 GB, free: 1.672 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/0.2049, allocations: 31.92 kB / 0.6941 GB, free: 1.641 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.2049, allocations: 7.938 kB / 0.6941 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2049, allocations: 0 / 0.6941 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.2071, allocations: 1.465 MB / 0.6955 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.942e-05/0.2071, allocations: 97.03 kB / 0.6956 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.156e-05/0.2072, allocations: 11.94 kB / 0.6956 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.2077, allocations: 8 kB / 0.6956 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.2079, allocations: 43.97 kB / 0.6957 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/0.2079, allocations: 28 kB / 0.6957 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.51e-05/0.208, allocations: 83.27 kB / 0.6958 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.208, allocations: 0 / 0.6958 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005434/0.2085, allocations: 176 kB / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002749/0.2113, allocations: 2.131 MB / 0.698 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001206/0.2125, allocations: 0.7417 MB / 0.6988 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2125, allocations: 4 kB / 0.6988 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005908/0.2131, allocations: 447.8 kB / 0.6992 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.2134, allocations: 20.12 kB / 0.6992 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006853/0.2203, allocations: 3.76 MB / 0.7029 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.2206, allocations: 0.7182 MB / 0.7036 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001362/0.222, allocations: 297.6 kB / 0.7039 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005497/0.2225, allocations: 119.4 kB / 0.704 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of SimCode: time 7.72e-07/0.2225, allocations: 0 / 0.704 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/0.2482, allocations: 12.62 MB / 0.7163 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001754/0.2484, allocations: 236.5 kB / 0.7165 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.998, allocations: 3.234 kB / 0.7165 GB, free: 10.72 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunctionDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)