Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") translateModel(IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 115 kB / 17.08 MB, free: 5.836 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.001436/0.001436, allocations: 196.2 kB / 18.02 MB, free: 4.938 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.367/1.367, 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.7538/0.7538, allocations: 115.3 MB / 407.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 71.53 kB / 0.5583 GB, free: 32.11 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1519, allocations: 76.18 MB / 0.6327 GB, free: 4.371 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002937/0.1548, allocations: 1.806 MB / 0.6345 GB, free: 2.551 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009507/0.1558, allocations: 0.5377 MB / 0.635 GB, free: 2.008 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.825e-05/0.1559, allocations: 7.938 kB / 0.635 GB, free: 2 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.1561, allocations: 19.73 kB / 0.6351 GB, free: 1.98 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 6.728e-05/0.1562, allocations: 31.73 kB / 0.6351 GB, free: 1.949 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.1564, allocations: 59.86 kB / 0.6351 GB, free: 1.891 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.1566, allocations: 175.5 kB / 0.6353 GB, free: 1.719 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.1568, allocations: 61.56 kB / 0.6354 GB, free: 1.656 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.157, allocations: 55.72 kB / 0.6354 GB, free: 1.602 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.224e-05/0.1571, allocations: 55.64 kB / 0.6355 GB, free: 1.547 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.1571, allocations: 12 kB / 0.6355 GB, free: 1.535 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.818e-05/0.1571, allocations: 8 kB / 0.6355 GB, free: 1.527 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.1572, allocations: 27.92 kB / 0.6355 GB, free: 1.5 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 6.935e-05/0.1573, allocations: 67.59 kB / 0.6356 GB, free: 1.434 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1574, allocations: 139.3 kB / 0.6357 GB, free: 1.297 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1574, allocations: 0 / 0.6357 GB, free: 1.297 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1575, allocations: 4 kB / 0.6357 GB, free: 1.293 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1575, allocations: 0 / 0.6357 GB, free: 1.293 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007261/0.1582, allocations: 474.7 kB / 0.6362 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1582, allocations: 12.03 kB / 0.6362 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.111e-05/0.1583, allocations: 20.73 kB / 0.6362 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.1586, allocations: 231.9 kB / 0.6364 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1587, allocations: 16.31 kB / 0.6364 GB, free: 480 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.1587, allocations: 12.38 kB / 0.6365 GB, free: 468 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.159, allocations: 147.1 kB / 0.6366 GB, free: 300 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.159, allocations: 0 / 0.6366 GB, free: 300 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.159, allocations: 4 kB / 0.6366 GB, free: 296 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1591, allocations: 4 kB / 0.6366 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002273/0.1593, allocations: 81.7 kB / 0.6367 GB, free: 212 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009551/0.1603, allocations: 0.7392 MB / 0.6374 GB, free: 15.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.1604, allocations: 38.56 kB / 0.6374 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1605, allocations: 36.83 kB / 0.6375 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.1605, allocations: 4 kB / 0.6375 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002347/0.1608, allocations: 130.7 kB / 0.6376 GB, free: 15.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.492e-06/0.1608, allocations: 0 / 0.6376 GB, free: 15.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004724/0.1613, allocations: 161.4 kB / 0.6378 GB, free: 15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.1614, allocations: 144.6 kB / 0.6379 GB, free: 14.82 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.1616, allocations: 202.9 kB / 0.6381 GB, free: 14.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.1616, allocations: 25.7 kB / 0.6381 GB, free: 14.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1617, allocations: 127.9 kB / 0.6382 GB, free: 14.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1617, allocations: 35.55 kB / 0.6383 GB, free: 14.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.1618, allocations: 41.61 kB / 0.6383 GB, free: 14.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1619, allocations: 326.8 kB / 0.6386 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.1621, allocations: 47.97 kB / 0.6387 GB, free: 14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1622, allocations: 147.8 kB / 0.6388 GB, free: 13.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/0.1626, allocations: 202.3 kB / 0.639 GB, free: 13.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1626, allocations: 0 / 0.639 GB, free: 13.55 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003783/0.1629, allocations: 205.2 kB / 0.6392 GB, free: 13.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.163, allocations: 8 kB / 0.6392 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.163, allocations: 4.25 kB / 0.6392 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.163, allocations: 4 kB / 0.6392 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.1631, allocations: 39.92 kB / 0.6393 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1632, allocations: 8 kB / 0.6393 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.1633, allocations: 32.12 kB / 0.6393 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.1633, allocations: 12.23 kB / 0.6393 GB, free: 13.24 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001367/0.1635, allocations: 140.7 kB / 0.6394 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.1635, allocations: 23.75 kB / 0.6395 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.805e-05/0.1636, allocations: 21.39 kB / 0.6395 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1636, allocations: 0 / 0.6395 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1636, allocations: 4 kB / 0.6395 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1636, allocations: 0 / 0.6395 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007491/0.1643, allocations: 0.517 MB / 0.64 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1644, allocations: 4 kB / 0.64 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.1645, allocations: 19.98 kB / 0.64 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1645, allocations: 0 / 0.64 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1645, allocations: 4 kB / 0.64 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1645, allocations: 0 / 0.64 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1645, allocations: 3.938 kB / 0.64 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004924/0.165, allocations: 358.3 kB / 0.6404 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.008e-05/0.1651, allocations: 104.9 kB / 0.6405 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.1651, allocations: 4 kB / 0.6405 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.1653, allocations: 11.98 kB / 0.6405 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.913e-05/0.1654, allocations: 19.92 kB / 0.6405 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.1654, allocations: 4 kB / 0.6405 GB, free: 11.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1655, allocations: 148.2 kB / 0.6406 GB, free: 11.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1655, allocations: 3.938 kB / 0.6406 GB, free: 11.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003447/0.1659, allocations: 31.94 kB / 0.6407 GB, free: 11.72 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001357/0.166, allocations: 105.2 kB / 0.6408 GB, free: 11.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.1663, allocations: 115.8 kB / 0.6409 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1663, allocations: 1 kB / 0.6409 GB, free: 11.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.1665, allocations: 48.03 kB / 0.6409 GB, free: 11.45 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005514/0.1671, allocations: 82.09 kB / 0.641 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006167/0.1677, allocations: 370.3 kB / 0.6414 GB, free: 10.97 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.168, allocations: 0.7281 MB / 0.6421 GB, free: 10.22 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.625e-05/0.168, allocations: 19.44 kB / 0.6421 GB, free: 10.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1681, allocations: 0 / 0.6421 GB, free: 10.2 MB / 494.1 MB Notification: Performance of Templates: time 0.003771/0.1718, allocations: 2.154 MB / 0.6442 GB, free: 8.055 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & ./IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)