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.001079/0.001079, allocations: 112.6 kB / 16.37 MB, free: 6 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.00112/0.00112, allocations: 196 kB / 17.31 MB, free: 5.613 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 283.5 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8899/0.8899, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 94.34 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1471, allocations: 86.98 MB / 0.6816 GB, free: 7.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002785/0.1499, allocations: 1.824 MB / 0.6834 GB, free: 5.605 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008295/0.1508, allocations: 0.5345 MB / 0.6839 GB, free: 5.066 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.345e-05/0.1509, allocations: 7.938 kB / 0.6839 GB, free: 5.059 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.151, allocations: 31.72 kB / 0.6839 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-05/0.1511, allocations: 23.73 kB / 0.684 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.1513, allocations: 67.86 kB / 0.684 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.1515, allocations: 171.5 kB / 0.6842 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.1516, allocations: 61.55 kB / 0.6843 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.098e-05/0.1517, allocations: 51.73 kB / 0.6843 GB, free: 4.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.774e-05/0.1518, allocations: 55.7 kB / 0.6844 GB, free: 4.605 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.1518, allocations: 12 kB / 0.6844 GB, free: 4.594 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.69e-05/0.1518, allocations: 8 kB / 0.6844 GB, free: 4.586 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.1519, allocations: 39.83 kB / 0.6844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.926e-05/0.1519, allocations: 59.61 kB / 0.6845 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.1521, allocations: 131.4 kB / 0.6846 GB, free: 4.359 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1521, allocations: 0 / 0.6846 GB, free: 4.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1521, allocations: 0 / 0.6846 GB, free: 4.359 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1521, allocations: 8 kB / 0.6846 GB, free: 4.352 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.0006209/0.1527, allocations: 474.6 kB / 0.6851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.1528, allocations: 8.031 kB / 0.6851 GB, free: 3.832 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.296e-05/0.1528, allocations: 20.75 kB / 0.6851 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002547/0.1531, allocations: 239.9 kB / 0.6853 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1531, allocations: 16.25 kB / 0.6853 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.1531, allocations: 12.38 kB / 0.6853 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.1534, allocations: 147.7 kB / 0.6855 GB, free: 3.348 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1534, allocations: 3.938 kB / 0.6855 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.1534, allocations: 0 / 0.6855 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1535, allocations: 8 kB / 0.6855 GB, free: 3.336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002051/0.1537, allocations: 83.83 kB / 0.6856 GB, free: 3.254 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007787/0.1544, allocations: 0.7198 MB / 0.6863 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.1546, allocations: 54.53 kB / 0.6863 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.511e-05/0.1547, allocations: 32.83 kB / 0.6864 GB, free: 2.371 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.1547, allocations: 0 / 0.6864 GB, free: 2.371 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.1549, allocations: 134.6 kB / 0.6865 GB, free: 2.215 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.1549, allocations: 0 / 0.6865 GB, free: 2.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004231/0.1554, allocations: 165.5 kB / 0.6866 GB, free: 2.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.1554, allocations: 136.5 kB / 0.6868 GB, free: 1.883 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.1556, allocations: 203.6 kB / 0.687 GB, free: 1.676 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1556, allocations: 29.7 kB / 0.687 GB, free: 1.641 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.1557, allocations: 127.8 kB / 0.6871 GB, free: 1.512 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.1558, allocations: 39.7 kB / 0.6872 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.1558, allocations: 37.7 kB / 0.6872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.1559, allocations: 326.8 kB / 0.6875 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.156, allocations: 43.97 kB / 0.6875 GB, free: 1.059 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1562, allocations: 150.4 kB / 0.6877 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000268/0.1565, allocations: 198.4 kB / 0.6879 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1565, allocations: 0 / 0.6879 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003543/0.1568, allocations: 209 kB / 0.6881 GB, free: 416 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.1569, allocations: 8 kB / 0.6881 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1569, allocations: 11.92 kB / 0.6881 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1569, allocations: 4 kB / 0.6881 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.157, allocations: 31.92 kB / 0.6881 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.157, allocations: 8.438 kB / 0.6881 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.1572, allocations: 31.83 kB / 0.6882 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1572, allocations: 8.234 kB / 0.6882 GB, free: 312 kB / 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 9.718e-05/0.1573, allocations: 147.2 kB / 0.6883 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1573, allocations: 19.81 kB / 0.6883 GB, free: 136 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.405e-05/0.1574, allocations: 17.41 kB / 0.6884 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1574, allocations: 0 / 0.6884 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.1574, allocations: 11.92 kB / 0.6884 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1574, allocations: 0 / 0.6884 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2552/0.4126, allocations: 0.5047 MB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4127, allocations: 1.984 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.4128, allocations: 19.48 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.351e-06/0.4128, allocations: 5.375 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.4128, allocations: 3.484 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.4128, allocations: 7.219 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4128, allocations: 3.109 kB / 0.6889 GB, free: 17.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004272/0.4133, allocations: 356.2 kB / 0.6892 GB, free: 17.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.4133, allocations: 92.86 kB / 0.6893 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.4134, allocations: 7.062 kB / 0.6893 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.4135, allocations: 17.23 kB / 0.6893 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.961e-05/0.4136, allocations: 13.61 kB / 0.6894 GB, free: 17.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.4136, allocations: 4.109 kB / 0.6894 GB, free: 17.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.744e-05/0.4137, allocations: 143.8 kB / 0.6895 GB, free: 17.44 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4137, allocations: 0 / 0.6895 GB, free: 17.44 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.414, allocations: 33.42 kB / 0.6895 GB, free: 17.44 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.0001002/0.4142, allocations: 109.1 kB / 0.6896 GB, free: 17.35 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000309/0.4145, allocations: 111.1 kB / 0.6897 GB, free: 17.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4145, allocations: 1.469 kB / 0.6897 GB, free: 17.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.4146, allocations: 56.31 kB / 0.6898 GB, free: 17.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.4152, allocations: 70.44 kB / 0.6899 GB, free: 17.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005548/0.4157, allocations: 341.6 kB / 0.6902 GB, free: 17.13 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.4159, allocations: 0.7223 MB / 0.6909 GB, free: 16.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.547e-05/0.416, allocations: 17.97 kB / 0.6909 GB, free: 16.44 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.386e-05/0.416, allocations: 20.22 kB / 0.6909 GB, free: 16.43 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.416, allocations: 0.5 kB / 0.6909 GB, free: 16.43 MB / 494.1 MB Notification: Performance of Templates: time 0.005122/0.4211, allocations: 2.021 MB / 0.6929 GB, free: 16.35 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)