Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: translateModel(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 116.4 kB / 17.09 MB, free: 6 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.001655/0.001655, allocations: 192.7 kB / 18.02 MB, free: 5.082 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.349/1.349, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7139/0.7139, allocations: 115.3 MB / 407.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 72.34 kB / 0.5584 GB, free: 32.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1451, allocations: 76.18 MB / 0.6328 GB, free: 4.375 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001798/0.147, allocations: 0.5922 MB / 0.6334 GB, free: 3.785 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.1486, allocations: 1.283 MB / 0.6346 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.337e-05/0.1487, allocations: 0 / 0.6346 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.1487, allocations: 3.938 kB / 0.6346 GB, free: 2.48 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 2.569e-05/0.1487, allocations: 0 / 0.6346 GB, free: 2.48 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.1491, allocations: 75.73 kB / 0.6347 GB, free: 2.406 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.698e-05/0.1492, allocations: 27.97 kB / 0.6347 GB, free: 2.379 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.227e-05/0.1492, allocations: 0 / 0.6347 GB, free: 2.379 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.923e-05/0.1493, allocations: 15.92 kB / 0.6347 GB, free: 2.363 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.4e-05/0.1494, allocations: 23.86 kB / 0.6348 GB, free: 2.34 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.1494, allocations: 0 / 0.6348 GB, free: 2.34 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.1496, allocations: 99.89 kB / 0.6349 GB, free: 2.242 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.1496, allocations: 11.98 kB / 0.6349 GB, free: 2.23 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.1497, allocations: 7.922 kB / 0.6349 GB, free: 2.223 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.1498, allocations: 67.86 kB / 0.6349 GB, free: 2.156 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1498, allocations: 0 / 0.6349 GB, free: 2.156 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1498, allocations: 0 / 0.6349 GB, free: 2.156 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1498, allocations: 8 kB / 0.6349 GB, free: 2.148 MB / 478.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.0004548/0.1503, allocations: 347.5 kB / 0.6353 GB, free: 1.762 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1503, allocations: 8.031 kB / 0.6353 GB, free: 1.754 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.1504, allocations: 8.844 kB / 0.6353 GB, free: 1.746 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.1505, allocations: 172.3 kB / 0.6355 GB, free: 1.539 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.1505, allocations: 4.375 kB / 0.6355 GB, free: 1.535 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.1505, allocations: 4.375 kB / 0.6355 GB, free: 1.531 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.1507, allocations: 61.94 kB / 0.6355 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1507, allocations: 0 / 0.6355 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1507, allocations: 0 / 0.6355 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1507, allocations: 0 / 0.6355 GB, free: 1.465 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.437e-05/0.1508, allocations: 27.97 kB / 0.6356 GB, free: 1.438 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001841/0.151, allocations: 165.7 kB / 0.6357 GB, free: 1.227 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.1511, allocations: 54.56 kB / 0.6358 GB, free: 1.164 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.822e-05/0.1512, allocations: 36.72 kB / 0.6358 GB, free: 1.125 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004757/0.1516, allocations: 0.5583 MB / 0.6363 GB, free: 448 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.1517, allocations: 34.5 kB / 0.6364 GB, free: 404 kB / 478.1 MB Notification: Performance of pre-optimization done (n=8): time 1.113e-06/0.1517, allocations: 0 / 0.6364 GB, free: 404 kB / 478.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.01969/0.1714, allocations: 4.376 MB / 0.6407 GB, free: 11.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.1715, allocations: 51.41 kB / 0.6407 GB, free: 11.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.555e-05/0.1716, allocations: 93.86 kB / 0.6408 GB, free: 11.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.1716, allocations: 33.69 kB / 0.6408 GB, free: 11.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.956e-05/0.1717, allocations: 80.14 kB / 0.6409 GB, free: 11.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.1718, allocations: 59.23 kB / 0.641 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.1721, allocations: 89.67 kB / 0.641 GB, free: 11.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1722, allocations: 326.8 kB / 0.6414 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.1727, allocations: 303.9 kB / 0.6416 GB, free: 10.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/0.1732, allocations: 309.3 kB / 0.6419 GB, free: 10.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.1747, allocations: 0.7799 MB / 0.6427 GB, free: 9.719 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1747, allocations: 3.938 kB / 0.6427 GB, free: 9.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001528/0.1763, allocations: 0.7942 MB / 0.6435 GB, free: 8.914 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1763, allocations: 8 kB / 0.6435 GB, free: 8.906 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1763, allocations: 7.938 kB / 0.6435 GB, free: 8.898 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1763, allocations: 0 / 0.6435 GB, free: 8.898 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008595/0.1772, allocations: 91.94 kB / 0.6436 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1772, allocations: 4.938 kB / 0.6436 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005331/0.1778, allocations: 11.94 kB / 0.6436 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.03e-05/0.1778, allocations: 35.97 kB / 0.6436 GB, free: 8.758 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.0001939/0.178, allocations: 121.8 kB / 0.6437 GB, free: 8.629 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.87e-05/0.1781, allocations: 4 kB / 0.6438 GB, free: 8.625 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003218/0.1814, allocations: 1.4 MB / 0.6451 GB, free: 7.215 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.1814, allocations: 4 kB / 0.6451 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1814, allocations: 0 / 0.6451 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.1814, allocations: 7.984 kB / 0.6451 GB, free: 7.203 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/0.1842, allocations: 1.818 MB / 0.6469 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1843, allocations: 0 / 0.6469 GB, free: 5.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008023/0.1851, allocations: 107.9 kB / 0.647 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.1851, allocations: 4 kB / 0.647 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.89e-05/0.1852, allocations: 27.94 kB / 0.647 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.1852, allocations: 4 kB / 0.647 GB, free: 5.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1852, allocations: 3.984 kB / 0.647 GB, free: 5.176 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/0.1875, allocations: 1.462 MB / 0.6485 GB, free: 3.695 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/0.1876, allocations: 88.98 kB / 0.6486 GB, free: 3.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.1877, allocations: 19.92 kB / 0.6486 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/0.1882, allocations: 8 kB / 0.6486 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.1884, allocations: 43.97 kB / 0.6486 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-05/0.1884, allocations: 24 kB / 0.6487 GB, free: 3.496 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.1885, allocations: 79.28 kB / 0.6487 GB, free: 3.418 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1885, allocations: 0 / 0.6487 GB, free: 3.418 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.189, allocations: 184.1 kB / 0.6489 GB, free: 3.238 MB / 494.1 MB 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.0005079/0.1896, allocations: 219.7 kB / 0.6491 GB, free: 3.016 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.1908, allocations: 0.728 MB / 0.6498 GB, free: 2.289 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1908, allocations: 0 / 0.6498 GB, free: 2.289 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006399/0.1914, allocations: 459.7 kB / 0.6503 GB, free: 1.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1918, allocations: 13.5 kB / 0.6503 GB, free: 1.828 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003449/0.1952, allocations: 0.8373 MB / 0.6511 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.1955, allocations: 0.7142 MB / 0.6518 GB, free: 220 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000553/0.1961, allocations: 95.41 kB / 0.6519 GB, free: 124 kB / 494.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1961, allocations: 0 / 0.6519 GB, free: 124 kB / 494.1 MB Notification: Performance of Templates: time 0.009377/0.2055, allocations: 6.897 MB / 0.6586 GB, free: 9.262 MB / 0.4981 GB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)