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.001063/0.001063, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.305/1.305, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 278.7 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 100.7 kB / 0.5952 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1462, allocations: 86.98 MB / 0.6802 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002983/0.1492, allocations: 1.826 MB / 0.682 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009612/0.1502, allocations: 0.542 MB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.1504, allocations: 11.88 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1505, allocations: 24.5 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.726e-05/0.1506, allocations: 25.34 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002182/0.1508, allocations: 63.91 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.1511, allocations: 167.5 kB / 0.6828 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.1513, allocations: 60.25 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.132e-05/0.1514, allocations: 53.06 kB / 0.6829 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.627e-05/0.1515, allocations: 63.58 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.1515, allocations: 8 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.221e-05/0.1515, allocations: 16 kB / 0.683 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.446e-05/0.1516, allocations: 31.84 kB / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.1516, allocations: 63.61 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.1518, allocations: 123.5 kB / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1518, allocations: 4 kB / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1518, allocations: 0 / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1518, allocations: 0 / 0.6832 GB, free: 13.62 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.0007325/0.1526, allocations: 478.5 kB / 0.6836 GB, free: 13.11 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.1526, allocations: 16.03 kB / 0.6836 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.133e-05/0.1527, allocations: 16.75 kB / 0.6837 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/0.1529, allocations: 223.9 kB / 0.6839 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.153, allocations: 8.375 kB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.153, allocations: 12.38 kB / 0.6839 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.1533, allocations: 151.8 kB / 0.684 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1533, allocations: 0 / 0.684 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.1534, allocations: 11.98 kB / 0.6841 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1534, allocations: 4 kB / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.1536, allocations: 67.84 kB / 0.6841 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009206/0.1545, allocations: 0.7392 MB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000148/0.1547, allocations: 50.55 kB / 0.6849 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.1548, allocations: 32.84 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1548, allocations: 0 / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.1551, allocations: 130.7 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.173e-06/0.1551, allocations: 0 / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004707/0.1556, allocations: 165.3 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.1557, allocations: 132.5 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.1559, allocations: 195.2 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.1559, allocations: 33.7 kB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/0.156, allocations: 132.2 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.056e-05/0.156, allocations: 35.55 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.975e-05/0.1561, allocations: 45.7 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1563, allocations: 330.8 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1565, allocations: 39.91 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.1566, allocations: 152.2 kB / 0.6862 GB, free: 10.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/0.1569, allocations: 198.3 kB / 0.6864 GB, free: 9.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1569, allocations: 4 kB / 0.6864 GB, free: 9.891 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003841/0.1573, allocations: 209.2 kB / 0.6866 GB, free: 9.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1573, allocations: 8.5 kB / 0.6866 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1574, allocations: 8 kB / 0.6867 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1574, allocations: 8.031 kB / 0.6867 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.1575, allocations: 31.92 kB / 0.6867 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.1575, allocations: 11.92 kB / 0.6867 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.1577, allocations: 27.83 kB / 0.6867 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.1577, allocations: 8 kB / 0.6867 GB, free: 9.578 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.0001173/0.1578, allocations: 144.6 kB / 0.6869 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.086e-05/0.1579, allocations: 15.81 kB / 0.6869 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.441e-05/0.1579, allocations: 25.39 kB / 0.6869 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1579, allocations: 4 kB / 0.6869 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1579, allocations: 0 / 0.6869 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1579, allocations: 0 / 0.6869 GB, free: 9.383 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006909/0.1586, allocations: 0.5173 MB / 0.6874 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1586, allocations: 4 kB / 0.6874 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.1588, allocations: 15.98 kB / 0.6874 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1588, allocations: 0 / 0.6874 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.1588, allocations: 4 kB / 0.6875 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1588, allocations: 3.938 kB / 0.6875 GB, free: 8.781 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.1588, allocations: 7.938 kB / 0.6875 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004488/0.1593, allocations: 358.3 kB / 0.6878 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-05/0.1593, allocations: 92.95 kB / 0.6879 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.1593, allocations: 4 kB / 0.6879 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.1595, allocations: 15.98 kB / 0.6879 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.1596, allocations: 19.86 kB / 0.6879 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.679e-06/0.1596, allocations: 8 kB / 0.6879 GB, free: 8.246 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.716e-05/0.1597, allocations: 141.1 kB / 0.6881 GB, free: 8.109 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1597, allocations: 0 / 0.6881 GB, free: 8.109 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003174/0.16, allocations: 35.84 kB / 0.6881 GB, free: 8.074 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.0001025/0.1601, allocations: 107.2 kB / 0.6882 GB, free: 7.961 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002958/0.1604, allocations: 116 kB / 0.6883 GB, free: 7.848 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1604, allocations: 4 kB / 0.6883 GB, free: 7.844 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.1606, allocations: 51.91 kB / 0.6884 GB, free: 7.793 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.1611, allocations: 64.17 kB / 0.6884 GB, free: 7.734 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000562/0.1617, allocations: 353.5 kB / 0.6888 GB, free: 7.355 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.162, allocations: 0.7164 MB / 0.6895 GB, free: 6.613 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.1621, allocations: 17.55 kB / 0.6895 GB, free: 6.598 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.279e-05/0.1621, allocations: 27.42 kB / 0.6895 GB, free: 6.57 MB / 494.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1621, allocations: 0 / 0.6895 GB, free: 6.57 MB / 494.1 MB Notification: Performance of Templates: time 0.004781/0.1669, allocations: 2.017 MB / 0.6915 GB, free: 4.582 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)