Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001774/0.001774, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.002072/0.002072, allocations: 198.2 kB / 16.26 MB, free: 6.625 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.576/1.576, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002571/0.002571, allocations: 274.8 kB / 290.3 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.1/1.1, allocations: 178.6 MB / 0.5069 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002724, allocations: 100.3 kB / 0.6059 GB, free: 25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1609, allocations: 89.15 MB / 0.693 GB, free: 4.719 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003112/0.1641, allocations: 1.894 MB / 0.6948 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009338/0.165, allocations: 0.5298 MB / 0.6953 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-05/0.1651, allocations: 4 kB / 0.6953 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.1653, allocations: 35.72 kB / 0.6954 GB, free: 2.246 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.892e-05/0.1653, allocations: 15.8 kB / 0.6954 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.1655, allocations: 55.95 kB / 0.6954 GB, free: 2.176 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00024/0.1658, allocations: 175.5 kB / 0.6956 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.1659, allocations: 45.66 kB / 0.6957 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.115e-05/0.166, allocations: 51.8 kB / 0.6957 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.438e-05/0.1661, allocations: 55.64 kB / 0.6958 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.1662, allocations: 15.94 kB / 0.6958 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.019e-05/0.1662, allocations: 8 kB / 0.6958 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.1662, allocations: 35.83 kB / 0.6958 GB, free: 1.793 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.462e-05/0.1663, allocations: 63.61 kB / 0.6959 GB, free: 1.73 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001777/0.1665, allocations: 127.8 kB / 0.696 GB, free: 1.605 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1665, allocations: 0 / 0.696 GB, free: 1.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1665, allocations: 0 / 0.696 GB, free: 1.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.1665, allocations: 4 kB / 0.696 GB, free: 1.602 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007291/0.1672, allocations: 470.7 kB / 0.6965 GB, free: 1.094 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1673, allocations: 8.031 kB / 0.6965 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.626e-05/0.1673, allocations: 20.69 kB / 0.6965 GB, free: 1.066 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.1676, allocations: 235.8 kB / 0.6967 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1676, allocations: 8.375 kB / 0.6967 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.1677, allocations: 16.38 kB / 0.6967 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.168, allocations: 155.7 kB / 0.6969 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.168, allocations: 3.938 kB / 0.6969 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.1681, allocations: 4 kB / 0.6969 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.1681, allocations: 4 kB / 0.6969 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002348/0.1683, allocations: 75.78 kB / 0.697 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009889/0.1693, allocations: 0.7432 MB / 0.6977 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001527/0.1695, allocations: 46.55 kB / 0.6977 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.1696, allocations: 32.84 kB / 0.6978 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1696, allocations: 0 / 0.6978 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003055/0.1699, allocations: 130.6 kB / 0.6979 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.1699, allocations: 0 / 0.6979 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004886/0.1704, allocations: 165.3 kB / 0.698 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.1705, allocations: 132.8 kB / 0.6982 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.1707, allocations: 200.2 kB / 0.6984 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1708, allocations: 29.7 kB / 0.6984 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.1709, allocations: 127.9 kB / 0.6985 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.1709, allocations: 39.61 kB / 0.6986 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.757e-05/0.171, allocations: 41.7 kB / 0.6986 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.1712, allocations: 330.8 kB / 0.6989 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1713, allocations: 43.97 kB / 0.6989 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.1715, allocations: 150.6 kB / 0.6991 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.1718, allocations: 194.4 kB / 0.6993 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.1719, allocations: 3.984 kB / 0.6993 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004043/0.1723, allocations: 209.1 kB / 0.6995 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1723, allocations: 8 kB / 0.6995 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1723, allocations: 4 kB / 0.6995 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1723, allocations: 4 kB / 0.6995 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1725, allocations: 35.91 kB / 0.6995 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1725, allocations: 8 kB / 0.6995 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001602/0.1726, allocations: 28.2 kB / 0.6996 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.1727, allocations: 15.94 kB / 0.6996 GB, free: 13.55 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.0001213/0.1728, allocations: 133.7 kB / 0.6997 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.1728, allocations: 15.81 kB / 0.6997 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.24e-05/0.1729, allocations: 25.39 kB / 0.6997 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1729, allocations: 3.938 kB / 0.6997 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.1729, allocations: 4 kB / 0.6998 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1729, allocations: 0 / 0.6998 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007864/0.1737, allocations: 0.5134 MB / 0.7003 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1737, allocations: 0 / 0.7003 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.1738, allocations: 15.98 kB / 0.7003 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.1739, allocations: 4.281 kB / 0.7003 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.1739, allocations: 4 kB / 0.7003 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.1739, allocations: 11.98 kB / 0.7003 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1739, allocations: 7.875 kB / 0.7003 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006028/0.1745, allocations: 360.1 kB / 0.7006 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.1746, allocations: 96.92 kB / 0.7007 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.1746, allocations: 7.938 kB / 0.7007 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.1748, allocations: 11.98 kB / 0.7008 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.365e-05/0.1749, allocations: 19.86 kB / 0.7008 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.1749, allocations: 7.984 kB / 0.7008 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001269/0.175, allocations: 143.4 kB / 0.7009 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1751, allocations: 0 / 0.7009 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003386/0.1754, allocations: 31.94 kB / 0.7009 GB, free: 12.04 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.0001371/0.1755, allocations: 103.2 kB / 0.701 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003317/0.1759, allocations: 116.6 kB / 0.7012 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1759, allocations: 0 / 0.7012 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001508/0.176, allocations: 52.03 kB / 0.7012 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000575/0.1766, allocations: 64.67 kB / 0.7013 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006625/0.1773, allocations: 392.9 kB / 0.7016 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1777, allocations: 0.7281 MB / 0.7024 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.046e-05/0.1778, allocations: 17.53 kB / 0.7024 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.592e-05/0.1778, allocations: 19.44 kB / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1778, allocations: 0 / 0.7024 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.005365/0.1832, allocations: 1.927 MB / 0.7043 GB, free: 8.602 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)