Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.001302/0.001302, allocations: 104.8 kB / 16.4 MB, free: 6.465 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.001074/0.001074, allocations: 187 kB / 17.34 MB, free: 5.719 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.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7673/0.7673, allocations: 132.2 MB / 423.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 66.94 kB / 0.582 GB, free: 23.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.157, allocations: 80.2 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.00286/0.1599, allocations: 1.819 MB / 0.6621 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.161, allocations: 0.5415 MB / 0.6626 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.1611, allocations: 7.938 kB / 0.6626 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.1613, allocations: 23.73 kB / 0.6627 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.708e-05/0.1614, allocations: 31.72 kB / 0.6627 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002552/0.1617, allocations: 67.86 kB / 0.6628 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.1619, allocations: 175.5 kB / 0.6629 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.1621, allocations: 41.66 kB / 0.663 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.638e-05/0.1622, allocations: 63.72 kB / 0.663 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.885e-05/0.1623, allocations: 55.64 kB / 0.6631 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.1623, allocations: 12 kB / 0.6631 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.155e-05/0.1624, allocations: 12 kB / 0.6631 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.1624, allocations: 27.91 kB / 0.6631 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.661e-05/0.1625, allocations: 71.53 kB / 0.6632 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.1626, allocations: 127.4 kB / 0.6633 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1627, allocations: 4 kB / 0.6633 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.044e-06/0.1627, allocations: 0 / 0.6633 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.293e-06/0.1627, allocations: 0 / 0.6633 GB, free: 7.164 MB / 0.4981 GB 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.0007096/0.1634, allocations: 474.7 kB / 0.6638 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1634, allocations: 12.03 kB / 0.6638 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.1635, allocations: 16.75 kB / 0.6638 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.1638, allocations: 231.9 kB / 0.664 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.1638, allocations: 8.375 kB / 0.664 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.1639, allocations: 20.31 kB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.1642, allocations: 150.2 kB / 0.6642 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1642, allocations: 0 / 0.6642 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.1642, allocations: 11.98 kB / 0.6642 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.1642, allocations: 0 / 0.6642 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002332/0.1644, allocations: 71.89 kB / 0.6643 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008658/0.1653, allocations: 0.743 MB / 0.665 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.1655, allocations: 42.55 kB / 0.665 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1656, allocations: 32.84 kB / 0.6651 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.1656, allocations: 4 kB / 0.6651 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002173/0.1658, allocations: 130.6 kB / 0.6652 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1658, allocations: 0 / 0.6652 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004782/0.1663, allocations: 161.4 kB / 0.6654 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.1664, allocations: 140.7 kB / 0.6655 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.1666, allocations: 198.8 kB / 0.6657 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.1666, allocations: 29.7 kB / 0.6657 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.032e-05/0.1667, allocations: 131.8 kB / 0.6658 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.1668, allocations: 39.7 kB / 0.6659 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.237e-05/0.1668, allocations: 37.7 kB / 0.6659 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.1669, allocations: 334.8 kB / 0.6662 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1671, allocations: 39.97 kB / 0.6663 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.1673, allocations: 151.2 kB / 0.6664 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.1676, allocations: 206.3 kB / 0.6666 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1676, allocations: 0 / 0.6666 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003925/0.168, allocations: 209.3 kB / 0.6668 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.168, allocations: 4 kB / 0.6668 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.168, allocations: 4 kB / 0.6668 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.168, allocations: 8 kB / 0.6668 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.1682, allocations: 35.91 kB / 0.6669 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.1682, allocations: 4 kB / 0.6669 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.1683, allocations: 27.83 kB / 0.6669 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.1684, allocations: 12.22 kB / 0.6669 GB, free: 3.109 MB / 0.4981 GB 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.0001073/0.1685, allocations: 137.7 kB / 0.667 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.897e-05/0.1685, allocations: 19.81 kB / 0.6671 GB, free: 2.945 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.266e-05/0.1686, allocations: 21.39 kB / 0.6671 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1686, allocations: 4 kB / 0.6671 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1686, allocations: 0 / 0.6671 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1686, allocations: 0 / 0.6671 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.1693, allocations: 0.5175 MB / 0.6676 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1693, allocations: 4 kB / 0.6676 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.1695, allocations: 15.98 kB / 0.6676 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1695, allocations: 4.031 kB / 0.6676 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.1695, allocations: 8 kB / 0.6676 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1695, allocations: 7.922 kB / 0.6676 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1695, allocations: 3.938 kB / 0.6676 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004803/0.17, allocations: 356.3 kB / 0.668 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.1701, allocations: 88.92 kB / 0.668 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.1701, allocations: 4 kB / 0.6681 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.1703, allocations: 16.03 kB / 0.6681 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1703, allocations: 19.92 kB / 0.6681 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1703, allocations: 7.984 kB / 0.6681 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001074/0.1704, allocations: 135.2 kB / 0.6682 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1705, allocations: 0 / 0.6682 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003304/0.1708, allocations: 35.84 kB / 0.6683 GB, free: 1.609 MB / 0.4981 GB 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.0001265/0.1709, allocations: 111.6 kB / 0.6684 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000323/0.1713, allocations: 121.9 kB / 0.6685 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1713, allocations: 0 / 0.6685 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.1714, allocations: 48.91 kB / 0.6685 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.1719, allocations: 70.03 kB / 0.6686 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000609/0.1726, allocations: 378.2 kB / 0.669 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.1729, allocations: 0.7319 MB / 0.6697 GB, free: 100 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.936e-05/0.1729, allocations: 19.44 kB / 0.6697 GB, free: 80 kB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1729, allocations: 0 / 0.6697 GB, free: 80 kB / 0.4981 GB Notification: Performance of Templates: time 0.004016/0.1769, allocations: 2.175 MB / 0.6718 GB, free: 13.92 MB / 0.5137 GB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)