Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 77.97 kB / 20.68 MB, free: 3.809 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 177 kB / 24.08 MB, free: 416 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9783/0.9783, allocations: 177.1 MB / 204.5 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.839/1.839, allocations: 377.9 MB / 0.624 GB, free: 8.379 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 0.812 GB, free: 1.398 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.128e-05/1.263e-05, allocations: 2.312 kB / 0.812 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00183/0.001843, allocations: 1.827 MB / 0.8138 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0006823/0.002525, allocations: 0.5586 MB / 0.8144 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.321e-05/0.002608, allocations: 8.938 kB / 0.8144 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001255/0.002734, allocations: 19.73 kB / 0.8144 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.049e-05/0.002794, allocations: 33.75 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.002958, allocations: 67.84 kB / 0.8145 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.003107, allocations: 171.4 kB / 0.8146 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.897e-05/0.003206, allocations: 41.7 kB / 0.8147 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.172e-05/0.003298, allocations: 84.94 kB / 0.8148 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.717e-05/0.003345, allocations: 35.83 kB / 0.8148 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.003366, allocations: 12 kB / 0.8148 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 1.324e-05/0.003379, allocations: 8.688 kB / 0.8148 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.712e-05/0.003406, allocations: 32.75 kB / 0.8148 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.368e-05/0.00344, allocations: 35.91 kB / 0.8149 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.003563, allocations: 103.6 kB / 0.815 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.003565, allocations: 0.6562 kB / 0.815 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.21e-07/0.003565, allocations: 3.938 kB / 0.815 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.675e-06/0.003568, allocations: 0.8438 kB / 0.815 GB, free: 14.37 MB / 0.7761 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.0004317/0.004, allocations: 0.5198 MB / 0.8155 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.004032, allocations: 8.031 kB / 0.8155 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.004072, allocations: 34.77 kB / 0.8155 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.004233, allocations: 180.2 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.004245, allocations: 8.375 kB / 0.8157 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.004263, allocations: 13.38 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001409/0.004404, allocations: 145.2 kB / 0.8159 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.004412, allocations: 9.719 kB / 0.8159 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.004421, allocations: 4.375 kB / 0.8159 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.004428, allocations: 7.938 kB / 0.8159 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.178e-05/0.00447, allocations: 35.11 kB / 0.8159 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005155/0.004985, allocations: 0.8559 MB / 0.8168 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.005281, allocations: 39.61 kB / 0.8168 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.244e-05/0.005303, allocations: 19.69 kB / 0.8168 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.005322, allocations: 4.672 kB / 0.8168 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001004/0.005423, allocations: 112.5 kB / 0.8169 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=11): time 1.233e-06/0.005424, allocations: 1.062 kB / 0.8169 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0001693/0.005593, allocations: 110 kB / 0.817 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.005637, allocations: 128.5 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.005748, allocations: 249.6 kB / 0.8174 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.362e-05/0.005761, allocations: 33.7 kB / 0.8174 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.005834, allocations: 178.6 kB / 0.8176 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.005856, allocations: 36.89 kB / 0.8176 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.005898, allocations: 47.34 kB / 0.8177 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.006, allocations: 0.5001 MB / 0.8182 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.006019, allocations: 11.94 kB / 0.8182 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.181e-05/0.006101, allocations: 175.1 kB / 0.8183 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.006228, allocations: 207.7 kB / 0.8185 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.006231, allocations: 7.406 kB / 0.8185 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001439/0.006375, allocations: 157.8 kB / 0.8187 GB, free: 10.17 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.00639, allocations: 8.438 kB / 0.8187 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.006395, allocations: 4 kB / 0.8187 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.006409, allocations: 9.594 kB / 0.8187 GB, free: 10.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/0.006482, allocations: 31.92 kB / 0.8187 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.006487, allocations: 4 kB / 0.8187 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.281e-05/0.00655, allocations: 24.78 kB / 0.8188 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.006558, allocations: 8 kB / 0.8188 GB, free: 10.08 MB / 0.7761 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,intNoReset.trigger_internal,intDef.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 7.264e-05/0.006631, allocations: 174.2 kB / 0.8189 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.00665, allocations: 23.78 kB / 0.819 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.856e-05/0.006679, allocations: 25.45 kB / 0.819 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.00668, allocations: 0 / 0.819 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.006683, allocations: 4.812 kB / 0.819 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.006686, allocations: 0 / 0.819 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.007002, allocations: 482 kB / 0.8195 GB, free: 9.348 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.007006, allocations: 8.25 kB / 0.8195 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.386e-05/0.00705, allocations: 11.98 kB / 0.8195 GB, free: 9.328 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.007053, allocations: 5.344 kB / 0.8195 GB, free: 9.324 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.007062, allocations: 4 kB / 0.8195 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.007064, allocations: 4 kB / 0.8195 GB, free: 9.316 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.007065, allocations: 4.688 kB / 0.8195 GB, free: 9.312 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.007246, allocations: 398.6 kB / 0.8199 GB, free: 8.898 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.865e-05/0.007264, allocations: 19.84 kB / 0.8199 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.007278, allocations: 4 kB / 0.8199 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.971e-05/0.007347, allocations: 11.98 kB / 0.8199 GB, free: 8.863 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.007381, allocations: 15.92 kB / 0.8199 GB, free: 8.848 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.007387, allocations: 7.734 kB / 0.8199 GB, free: 8.844 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.307e-05/0.00747, allocations: 164.2 kB / 0.8201 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.2e-07/0.00747, allocations: 0 / 0.8201 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002047/0.007675, allocations: 28 kB / 0.8201 GB, free: 8.656 MB / 0.7761 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 7.2e-05/0.007747, allocations: 95.25 kB / 0.8202 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001093/0.007856, allocations: 85.48 kB / 0.8203 GB, free: 8.465 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.007858, allocations: 0 / 0.8203 GB, free: 8.465 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.113e-05/0.007899, allocations: 40.64 kB / 0.8203 GB, free: 8.422 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.008212, allocations: 71.48 kB / 0.8204 GB, free: 8.355 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003478/0.00856, allocations: 334.6 kB / 0.8207 GB, free: 7.988 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.13e-05/0.008601, allocations: 75.98 kB / 0.8208 GB, free: 7.895 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.564e-05/0.008647, allocations: 14.73 kB / 0.8208 GB, free: 7.875 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.439e-05/0.008731, allocations: 111.4 kB / 0.8209 GB, free: 7.766 MB / 0.7761 GB Notification: Performance of SimCode: time 4.6e-07/0.008732, allocations: 0 / 0.8209 GB, free: 7.766 MB / 0.7761 GB Notification: Performance of Templates: time 0.003649/0.01238, allocations: 2.322 MB / 0.8232 GB, free: 5.516 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.081782449036837]