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.001413/0.001413, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00176/0.00176, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 267.1 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9895/0.9895, allocations: 169.2 MB / 0.4977 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 92.98 kB / 0.5945 GB, free: 28.35 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1593, allocations: 86.98 MB / 0.6794 GB, free: 1.156 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002891/0.1622, allocations: 1.887 MB / 0.6813 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008507/0.1631, allocations: 0.532 MB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/0.1632, allocations: 4 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1633, allocations: 15.8 kB / 0.6818 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.1634, allocations: 25.28 kB / 0.6818 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001859/0.1636, allocations: 55.89 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1638, allocations: 164.2 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.164, allocations: 59.67 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.357e-05/0.1641, allocations: 44.42 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.223e-05/0.1642, allocations: 55.7 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.1642, allocations: 7.938 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.959e-05/0.1643, allocations: 8 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.1643, allocations: 27.84 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.989e-05/0.1644, allocations: 63.59 kB / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.1646, allocations: 123.5 kB / 0.6824 GB, free: 14.1 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1646, allocations: 0 / 0.6824 GB, free: 14.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1646, allocations: 0 / 0.6824 GB, free: 14.1 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.1646, allocations: 0 / 0.6824 GB, free: 14.1 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.0007681/0.1654, allocations: 482.6 kB / 0.6829 GB, free: 13.58 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1654, allocations: 8.031 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.977e-05/0.1655, allocations: 20.75 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.1658, allocations: 227.9 kB / 0.6831 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1658, allocations: 8.375 kB / 0.6831 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.503e-05/0.1658, allocations: 16.31 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.1661, allocations: 148.5 kB / 0.6833 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1662, allocations: 3.938 kB / 0.6833 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1662, allocations: 4 kB / 0.6833 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1662, allocations: 4 kB / 0.6833 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.1664, allocations: 75.83 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000953/0.1674, allocations: 0.7392 MB / 0.6841 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.1676, allocations: 46.56 kB / 0.6842 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1677, allocations: 32.83 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.1677, allocations: 4 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002959/0.168, allocations: 130.7 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.168, allocations: 0 / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005049/0.1685, allocations: 161.3 kB / 0.6845 GB, free: 11.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/0.1686, allocations: 136.5 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1688, allocations: 203.1 kB / 0.6848 GB, free: 11.43 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.1688, allocations: 29.7 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.862e-05/0.1689, allocations: 127.8 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.169, allocations: 35.7 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/0.169, allocations: 37.7 kB / 0.685 GB, free: 11.19 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1691, allocations: 326.8 kB / 0.6853 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.1693, allocations: 39.97 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.1695, allocations: 154.3 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.1698, allocations: 202.4 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1698, allocations: 0 / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000402/0.1702, allocations: 213.7 kB / 0.6859 GB, free: 10.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1702, allocations: 4 kB / 0.6859 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1702, allocations: 4.047 kB / 0.6859 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.1703, allocations: 7.984 kB / 0.6859 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1704, allocations: 31.92 kB / 0.6859 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1704, allocations: 8 kB / 0.686 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.1705, allocations: 31.81 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.1706, allocations: 8 kB / 0.686 GB, free: 10.06 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.000118/0.1707, allocations: 139 kB / 0.6861 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.1707, allocations: 23.81 kB / 0.6862 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.199e-05/0.1708, allocations: 21.39 kB / 0.6862 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1708, allocations: 0 / 0.6862 GB, free: 9.867 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1708, allocations: 7.938 kB / 0.6862 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1708, allocations: 0 / 0.6862 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007164/0.1715, allocations: 0.5173 MB / 0.6867 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1715, allocations: 4 kB / 0.6867 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1716, allocations: 15.98 kB / 0.6867 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1717, allocations: 0 / 0.6867 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.1717, allocations: 7.938 kB / 0.6867 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1717, allocations: 0 / 0.6867 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1717, allocations: 7.875 kB / 0.6867 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004628/0.1722, allocations: 356.2 kB / 0.6871 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.1722, allocations: 96.95 kB / 0.6871 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.1723, allocations: 0 / 0.6871 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.1725, allocations: 19.98 kB / 0.6872 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.386e-05/0.1725, allocations: 15.92 kB / 0.6872 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.1725, allocations: 7.938 kB / 0.6872 GB, free: 8.723 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.1726, allocations: 140.6 kB / 0.6873 GB, free: 8.586 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1726, allocations: 0 / 0.6873 GB, free: 8.586 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.173, allocations: 35.84 kB / 0.6874 GB, free: 8.551 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.0001065/0.1731, allocations: 103.2 kB / 0.6875 GB, free: 8.441 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.1734, allocations: 115.8 kB / 0.6876 GB, free: 8.328 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1734, allocations: 0 / 0.6876 GB, free: 8.328 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.1735, allocations: 49.03 kB / 0.6876 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005294/0.1741, allocations: 68.31 kB / 0.6877 GB, free: 8.219 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.1747, allocations: 396.9 kB / 0.6881 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.175, allocations: 0.7284 MB / 0.6888 GB, free: 7.043 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.947e-05/0.1751, allocations: 18.06 kB / 0.6888 GB, free: 7.027 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.1751, allocations: 19.44 kB / 0.6888 GB, free: 7.008 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1751, allocations: 0 / 0.6888 GB, free: 7.008 MB / 494.1 MB Notification: Performance of Templates: time 0.004348/0.1795, allocations: 1.817 MB / 0.6906 GB, free: 5.211 MB / 494.1 MB 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)