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.001825/0.001825, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002198/0.002198, allocations: 198.3 kB / 16.14 MB, free: 6.637 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.446/1.446, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002577/0.002577, allocations: 282.9 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.145/1.145, allocations: 178.6 MB / 0.5068 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002835/0.002835, allocations: 102.7 kB / 0.6057 GB, free: 25.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1538, allocations: 89.14 MB / 0.6928 GB, free: 4.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003259/0.1571, allocations: 1.897 MB / 0.6946 GB, free: 2.969 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1582, allocations: 0.535 MB / 0.6952 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.823e-05/0.1583, allocations: 8.531 kB / 0.6952 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.1584, allocations: 19.86 kB / 0.6952 GB, free: 2.402 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.963e-05/0.1585, allocations: 23.8 kB / 0.6952 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.1587, allocations: 55.94 kB / 0.6953 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.159, allocations: 159.5 kB / 0.6954 GB, free: 2.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.1591, allocations: 49.64 kB / 0.6955 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.466e-05/0.1592, allocations: 55.72 kB / 0.6955 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.705e-05/0.1593, allocations: 59.64 kB / 0.6956 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.335e-05/0.1593, allocations: 4 kB / 0.6956 GB, free: 2 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.427e-05/0.1594, allocations: 8 kB / 0.6956 GB, free: 1.992 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.1594, allocations: 23.86 kB / 0.6956 GB, free: 1.969 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.1595, allocations: 63.59 kB / 0.6957 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.1596, allocations: 127.7 kB / 0.6958 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1597, allocations: 0 / 0.6958 GB, free: 1.781 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.1597, allocations: 0 / 0.6958 GB, free: 1.781 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.1597, allocations: 0 / 0.6958 GB, free: 1.781 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.0007374/0.1604, allocations: 472.5 kB / 0.6962 GB, free: 1.273 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1605, allocations: 8.031 kB / 0.6962 GB, free: 1.266 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.1605, allocations: 16.75 kB / 0.6963 GB, free: 1.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.1608, allocations: 231.8 kB / 0.6965 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.1609, allocations: 12.38 kB / 0.6965 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1609, allocations: 12.38 kB / 0.6965 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.1613, allocations: 158 kB / 0.6967 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1613, allocations: 0 / 0.6967 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.1613, allocations: 4 kB / 0.6967 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.1613, allocations: 4 kB / 0.6967 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002655/0.1616, allocations: 75.83 kB / 0.6967 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1627, allocations: 0.7392 MB / 0.6975 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.1629, allocations: 50.44 kB / 0.6975 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.163, allocations: 36.83 kB / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.163, allocations: 0 / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000336/0.1634, allocations: 126.7 kB / 0.6977 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.1634, allocations: 0 / 0.6977 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005173/0.1639, allocations: 165.3 kB / 0.6978 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.164, allocations: 132.8 kB / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.1643, allocations: 204.1 kB / 0.6981 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.1643, allocations: 29.7 kB / 0.6982 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.1645, allocations: 128 kB / 0.6983 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.1645, allocations: 39.45 kB / 0.6983 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.266e-05/0.1646, allocations: 41.7 kB / 0.6984 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1648, allocations: 326.8 kB / 0.6987 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.1649, allocations: 39.97 kB / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.1652, allocations: 147.2 kB / 0.6989 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003667/0.1655, allocations: 202.3 kB / 0.699 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1655, allocations: 0 / 0.699 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004103/0.166, allocations: 209.5 kB / 0.6992 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.166, allocations: 11.94 kB / 0.6993 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.166, allocations: 4.234 kB / 0.6993 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.166, allocations: 8 kB / 0.6993 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1662, allocations: 31.92 kB / 0.6993 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1662, allocations: 4 kB / 0.6993 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.1663, allocations: 28.08 kB / 0.6993 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1663, allocations: 23.97 kB / 0.6994 GB, free: 13.73 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.000127/0.1665, allocations: 139.1 kB / 0.6995 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.1665, allocations: 15.81 kB / 0.6995 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.329e-05/0.1666, allocations: 25.39 kB / 0.6995 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1666, allocations: 0 / 0.6995 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1666, allocations: 0 / 0.6995 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.1666, allocations: 4 kB / 0.6995 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007984/0.1674, allocations: 0.5132 MB / 0.7 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1674, allocations: 0 / 0.7 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.1675, allocations: 19.92 kB / 0.7001 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1676, allocations: 4 kB / 0.7001 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.1676, allocations: 4 kB / 0.7001 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1676, allocations: 4 kB / 0.7001 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1676, allocations: 3.938 kB / 0.7001 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005219/0.1681, allocations: 360.1 kB / 0.7004 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.1682, allocations: 92.95 kB / 0.7005 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/0.1682, allocations: 12 kB / 0.7005 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1684, allocations: 11.98 kB / 0.7005 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.1685, allocations: 19.86 kB / 0.7005 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.829e-06/0.1685, allocations: 4 kB / 0.7005 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001195/0.1686, allocations: 143.4 kB / 0.7007 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1686, allocations: 0 / 0.7007 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003304/0.169, allocations: 27.94 kB / 0.7007 GB, free: 12.24 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.0001499/0.1691, allocations: 117.4 kB / 0.7008 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000318/0.1694, allocations: 103.8 kB / 0.7009 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1695, allocations: 5 kB / 0.7009 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.1696, allocations: 55.97 kB / 0.701 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005542/0.1702, allocations: 62.94 kB / 0.701 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006348/0.1708, allocations: 378.3 kB / 0.7014 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.1712, allocations: 0.7283 MB / 0.7021 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.746e-05/0.1713, allocations: 17.55 kB / 0.7021 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.1713, allocations: 15.44 kB / 0.7021 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of SimCode: time 2e-07/0.1713, allocations: 0 / 0.7021 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of Templates: time 0.00511/0.1764, allocations: 1.837 MB / 0.7039 GB, free: 8.895 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)