Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.001316/0.001316, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001422/0.001422, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 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.9225/0.9225, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.864/1.864, allocations: 377.8 MB / 0.6236 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 177] 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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 3.938 kB / 0.8115 GB, free: 1.73 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.826e-05/3.044e-05, allocations: 6.25 kB / 0.8115 GB, free: 1.723 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002628/0.002658, allocations: 1.83 MB / 0.8133 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001169/0.003828, allocations: 0.6969 MB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.003961, allocations: 7.938 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.004132, allocations: 33.17 kB / 0.814 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.141e-05/0.004214, allocations: 27.73 kB / 0.8141 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000817/0.005031, allocations: 252.9 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0005246/0.005555, allocations: 423.3 kB / 0.8147 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003489/0.005904, allocations: 219 kB / 0.8149 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.006106, allocations: 208.7 kB / 0.8151 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.006281, allocations: 99.72 kB / 0.8152 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 8.739e-05/0.006369, allocations: 36 kB / 0.8152 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.006476, allocations: 56.67 kB / 0.8153 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.888e-05/0.006544, allocations: 76.33 kB / 0.8154 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.401e-05/0.006638, allocations: 99.8 kB / 0.8155 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.006997, allocations: 280.4 kB / 0.8157 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.007002, allocations: 3.984 kB / 0.8157 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.443e-06/0.007003, allocations: 0 / 0.8157 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.00701, allocations: 0 / 0.8157 GB, free: 13.43 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007373/0.007747, allocations: 0.5802 MB / 0.8163 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.007794, allocations: 8.031 kB / 0.8163 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002689/0.008063, allocations: 57.72 kB / 0.8164 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.008362, allocations: 209.1 kB / 0.8166 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.008398, allocations: 20.88 kB / 0.8166 GB, free: 12.49 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.008435, allocations: 40.31 kB / 0.8166 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.008758, allocations: 218.8 kB / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.008769, allocations: 192 / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.008792, allocations: 13.25 kB / 0.8168 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.008803, allocations: 4.375 kB / 0.8168 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.008971, allocations: 110.8 kB / 0.817 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009409/0.009912, allocations: 0.7881 MB / 0.8177 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.01012, allocations: 123.3 kB / 0.8178 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.318e-05/0.01019, allocations: 60.92 kB / 0.8179 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.01021, allocations: 4 kB / 0.8179 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001606/0.01037, allocations: 135.9 kB / 0.818 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.01037, allocations: 3.156 kB / 0.818 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0003601/0.01073, allocations: 220.3 kB / 0.8182 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.01077, allocations: 67.33 kB / 0.8183 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.0109, allocations: 220.4 kB / 0.8185 GB, free: 10.4 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.01093, allocations: 41.7 kB / 0.8186 GB, free: 10.35 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.01103, allocations: 187.5 kB / 0.8187 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.119e-05/0.01107, allocations: 67.47 kB / 0.8188 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.01117, allocations: 95.33 kB / 0.8189 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.01129, allocations: 0.5006 MB / 0.8194 GB, free: 9.48 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.01142, allocations: 95.59 kB / 0.8195 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.01157, allocations: 184.1 kB / 0.8197 GB, free: 9.16 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002225/0.0118, allocations: 215.8 kB / 0.8199 GB, free: 8.914 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.0118, allocations: 4 kB / 0.8199 GB, free: 8.91 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003726/0.01217, allocations: 351.7 kB / 0.8202 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.01221, allocations: 34.55 kB / 0.8202 GB, free: 8.512 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.01222, allocations: 4 kB / 0.8202 GB, free: 8.508 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.01223, allocations: 5.281 kB / 0.8202 GB, free: 8.504 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.01234, allocations: 27.92 kB / 0.8203 GB, free: 8.477 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.01235, allocations: 11.88 kB / 0.8203 GB, free: 8.465 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.01247, allocations: 52.59 kB / 0.8203 GB, free: 8.414 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.01249, allocations: 12 kB / 0.8203 GB, free: 8.402 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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.0003216/0.01281, allocations: 195 kB / 0.8205 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.808e-05/0.01284, allocations: 23.91 kB / 0.8205 GB, free: 8.184 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.445e-05/0.01288, allocations: 17.97 kB / 0.8206 GB, free: 8.172 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.01288, allocations: 6.969 kB / 0.8206 GB, free: 8.168 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.01289, allocations: 3.938 kB / 0.8206 GB, free: 8.164 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.01289, allocations: 7.922 kB / 0.8206 GB, free: 8.156 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005393/0.01343, allocations: 0.5444 MB / 0.8211 GB, free: 7.566 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01343, allocations: 0 / 0.8211 GB, free: 7.566 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.124e-05/0.01349, allocations: 15.98 kB / 0.8211 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.01349, allocations: 7.922 kB / 0.8211 GB, free: 7.543 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.0135, allocations: 8.938 kB / 0.8211 GB, free: 7.535 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.01351, allocations: 0 / 0.8211 GB, free: 7.535 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01351, allocations: 0 / 0.8211 GB, free: 7.535 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.01375, allocations: 338.7 kB / 0.8215 GB, free: 7.188 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.572e-05/0.01376, allocations: 19.84 kB / 0.8215 GB, free: 7.168 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.01378, allocations: 7.938 kB / 0.8215 GB, free: 7.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.955e-05/0.01383, allocations: 13.08 kB / 0.8215 GB, free: 7.148 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.38e-05/0.0139, allocations: 19.97 kB / 0.8215 GB, free: 7.129 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.01391, allocations: 13.11 kB / 0.8215 GB, free: 7.117 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.317e-05/0.01396, allocations: 143.1 kB / 0.8217 GB, free: 6.977 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01396, allocations: 0 / 0.8217 GB, free: 6.977 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002166/0.01418, allocations: 59.89 kB / 0.8217 GB, free: 6.918 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001511/0.01433, allocations: 124.6 kB / 0.8218 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003415/0.01467, allocations: 275.6 kB / 0.8221 GB, free: 6.5 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01467, allocations: 1.062 kB / 0.8221 GB, free: 6.5 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.837e-05/0.01476, allocations: 79.58 kB / 0.8222 GB, free: 6.418 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.01499, allocations: 42.7 kB / 0.8222 GB, free: 6.379 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004979/0.01549, allocations: 369.8 kB / 0.8226 GB, free: 5.988 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.557e-05/0.01555, allocations: 80.33 kB / 0.8227 GB, free: 5.891 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.522e-05/0.01561, allocations: 22.86 kB / 0.8227 GB, free: 5.871 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.047e-05/0.01566, allocations: 32.42 kB / 0.8227 GB, free: 5.84 MB / 0.7761 GB Notification: Performance of SimCode: time 6.31e-07/0.01566, allocations: 0 / 0.8227 GB, free: 5.84 MB / 0.7761 GB Notification: Performance of Templates: time 0.005368/0.02103, allocations: 2.957 MB / 0.8256 GB, free: 2.938 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.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.121328854933381]