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.005513/0.005513, allocations: 109.3 kB / 15.71 MB, free: 5.984 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.00115/0.00115, allocations: 191.7 kB / 16.64 MB, free: 5.922 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 / 240.3 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002044/0.002044, allocations: 283.1 kB / 290.8 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9349/0.9349, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 95.86 kB / 0.6814 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1591, allocations: 86.97 MB / 0.7663 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002854/0.162, allocations: 1.837 MB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000927/0.1629, allocations: 0.5499 MB / 0.7687 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.339e-05/0.163, allocations: 7.938 kB / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1632, allocations: 19.73 kB / 0.7687 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.389e-05/0.1633, allocations: 27.73 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.1635, allocations: 67.86 kB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.1637, allocations: 163.5 kB / 0.7689 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.1638, allocations: 57.56 kB / 0.769 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.232e-05/0.1639, allocations: 59.7 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.666e-05/0.164, allocations: 59.64 kB / 0.7691 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.1641, allocations: 12 kB / 0.7691 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.1641, allocations: 12 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.568e-05/0.1641, allocations: 27.86 kB / 0.7692 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.038e-05/0.1642, allocations: 63.61 kB / 0.7692 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.1644, allocations: 131.5 kB / 0.7693 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1644, allocations: 3.938 kB / 0.7693 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1644, allocations: 0 / 0.7693 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.1644, allocations: 0 / 0.7693 GB, free: 5.383 MB / 0.5606 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.0006784/0.1651, allocations: 482.6 kB / 0.7698 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1651, allocations: 8.031 kB / 0.7698 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.46e-05/0.1652, allocations: 20.73 kB / 0.7698 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.1655, allocations: 227.9 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.1655, allocations: 12.38 kB / 0.7701 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.1655, allocations: 12.38 kB / 0.7701 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002753/0.1658, allocations: 147.9 kB / 0.7702 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1658, allocations: 3.938 kB / 0.7702 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1659, allocations: 4 kB / 0.7702 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.1659, allocations: 4 kB / 0.7702 GB, free: 4.375 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.1661, allocations: 75.81 kB / 0.7703 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000866/0.167, allocations: 0.7392 MB / 0.771 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.1671, allocations: 50.56 kB / 0.7711 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.1672, allocations: 32.83 kB / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.1673, allocations: 0 / 0.7711 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002215/0.1675, allocations: 138.6 kB / 0.7712 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.1675, allocations: 0 / 0.7712 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0004602/0.168, allocations: 165.3 kB / 0.7714 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.168, allocations: 128.5 kB / 0.7715 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.1682, allocations: 203.3 kB / 0.7717 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.1683, allocations: 33.7 kB / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.771e-05/0.1684, allocations: 127.8 kB / 0.7719 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.1684, allocations: 35.45 kB / 0.7719 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.514e-05/0.1685, allocations: 45.7 kB / 0.7719 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1686, allocations: 322.8 kB / 0.7722 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.1687, allocations: 39.97 kB / 0.7723 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.1689, allocations: 153.2 kB / 0.7724 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.1692, allocations: 198.4 kB / 0.7726 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1692, allocations: 4 kB / 0.7726 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003784/0.1696, allocations: 209.4 kB / 0.7728 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1696, allocations: 8 kB / 0.7728 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1696, allocations: 4.234 kB / 0.7728 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1696, allocations: 4 kB / 0.7728 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.1698, allocations: 31.92 kB / 0.7729 GB, free: 1.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1698, allocations: 4 kB / 0.7729 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.1699, allocations: 31.81 kB / 0.7729 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.17, allocations: 15.92 kB / 0.7729 GB, free: 1.336 MB / 0.5606 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.0001074/0.1701, allocations: 147.9 kB / 0.7731 GB, free: 1.184 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/0.1701, allocations: 19.72 kB / 0.7731 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.413e-05/0.1702, allocations: 25.33 kB / 0.7731 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.1702, allocations: 7.938 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1702, allocations: 0 / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1702, allocations: 4 kB / 0.7731 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.1709, allocations: 0.5135 MB / 0.7736 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1709, allocations: 0 / 0.7736 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.1711, allocations: 15.98 kB / 0.7736 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1711, allocations: 4 kB / 0.7736 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1711, allocations: 0 / 0.7736 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1711, allocations: 4 kB / 0.7736 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1711, allocations: 7.875 kB / 0.7736 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.1716, allocations: 356.2 kB / 0.774 GB, free: 156 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.326e-05/0.1717, allocations: 92.95 kB / 0.7741 GB, free: 44 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.1717, allocations: 7.938 kB / 0.7741 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.1719, allocations: 15.98 kB / 0.7741 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.1719, allocations: 19.86 kB / 0.7741 GB, free: 0 / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.3307/0.5026, allocations: 2.922 kB / 0.7741 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001589/0.5028, allocations: 142.2 kB / 0.7743 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5028, allocations: 0 / 0.7743 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004907/0.5033, allocations: 31.09 kB / 0.7743 GB, free: 14.8 MB / 0.5606 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.000122/0.5035, allocations: 103 kB / 0.7744 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003964/0.5039, allocations: 116.6 kB / 0.7745 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5039, allocations: 2.031 kB / 0.7745 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.504, allocations: 47.95 kB / 0.7745 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.5046, allocations: 63.58 kB / 0.7746 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005888/0.5052, allocations: 341.9 kB / 0.7749 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.5054, allocations: 0.7222 MB / 0.7756 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.962e-05/0.5055, allocations: 22.25 kB / 0.7757 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.5055, allocations: 17.34 kB / 0.7757 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of SimCode: time 3.11e-07/0.5056, allocations: 2 kB / 0.7757 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.005111/0.5107, allocations: 2.035 MB / 0.7777 GB, free: 13.73 MB / 0.5606 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)