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.001255/0.001255, 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.001614/0.001614, 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 1.056/1.056, allocations: 177.1 MB / 204.2 MB, free: 5.258 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.944/1.944, allocations: 377.8 MB / 0.6236 GB, free: 8.531 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.124e-06/2.124e-06, allocations: 0 / 0.8115 GB, free: 1.754 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.294e-05/3.507e-05, allocations: 5.469 kB / 0.8115 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.0036/0.003636, allocations: 1.84 MB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001443/0.005079, allocations: 0.6978 MB / 0.814 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.005208, allocations: 9.625 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.005377, allocations: 19.69 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.815e-05/0.005465, allocations: 35.66 kB / 0.814 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000868/0.006333, allocations: 264.9 kB / 0.8143 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004943/0.006827, allocations: 407.3 kB / 0.8147 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.007191, allocations: 212.7 kB / 0.8149 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002769/0.007468, allocations: 212.4 kB / 0.8151 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002029/0.007671, allocations: 99.72 kB / 0.8152 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 6.185e-05/0.007733, allocations: 41.59 kB / 0.8152 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001291/0.007862, allocations: 59.97 kB / 0.8153 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.423e-05/0.007946, allocations: 67.81 kB / 0.8154 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.008074, allocations: 99.73 kB / 0.8154 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.008552, allocations: 281.7 kB / 0.8157 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.008557, allocations: 0 / 0.8157 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.184e-06/0.008559, allocations: 4 kB / 0.8157 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.008567, allocations: 0 / 0.8157 GB, free: 13.45 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.0009309/0.009498, allocations: 0.579 MB / 0.8163 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.009545, allocations: 8.031 kB / 0.8163 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000363/0.009908, allocations: 65.3 kB / 0.8164 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.01035, allocations: 205 kB / 0.8165 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.0104, allocations: 29.41 kB / 0.8166 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.219e-05/0.01045, allocations: 28.38 kB / 0.8166 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.01087, allocations: 231.2 kB / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.01088, allocations: 192 / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.706e-05/0.01091, allocations: 8.375 kB / 0.8168 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.01093, allocations: 12.36 kB / 0.8168 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002427/0.01117, allocations: 99.45 kB / 0.8169 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001161/0.01233, allocations: 0.7871 MB / 0.8177 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.01263, allocations: 128.1 kB / 0.8178 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.01274, allocations: 61.83 kB / 0.8179 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.01277, allocations: 4 kB / 0.8179 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.013, allocations: 128 kB / 0.818 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 2.785e-06/0.01301, allocations: 1.375 kB / 0.818 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0006611/0.01367, allocations: 225 kB / 0.8182 GB, free: 10.72 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.01371, allocations: 55.41 kB / 0.8183 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.01388, allocations: 226 kB / 0.8185 GB, free: 10.42 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.01393, allocations: 37.7 kB / 0.8185 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.01405, allocations: 183.6 kB / 0.8187 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.445e-05/0.01411, allocations: 79.39 kB / 0.8188 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.01426, allocations: 95.33 kB / 0.8189 GB, free: 10.01 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.01442, allocations: 0.497 MB / 0.8194 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.0146, allocations: 97.66 kB / 0.8195 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.01484, allocations: 182.3 kB / 0.8196 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.01515, allocations: 221.1 kB / 0.8198 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.01515, allocations: 0 / 0.8198 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005723/0.01572, allocations: 349.8 kB / 0.8202 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.777e-05/0.01577, allocations: 39.25 kB / 0.8202 GB, free: 8.531 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.01578, allocations: 0 / 0.8202 GB, free: 8.531 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.0158, allocations: 8 kB / 0.8202 GB, free: 8.523 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.01595, allocations: 35.92 kB / 0.8203 GB, free: 8.488 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.01596, allocations: 7.938 kB / 0.8203 GB, free: 8.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.01615, allocations: 48.88 kB / 0.8203 GB, free: 8.434 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.01619, allocations: 16.56 kB / 0.8203 GB, free: 8.418 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.0001511/0.01634, allocations: 194.4 kB / 0.8205 GB, free: 8.223 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.01638, allocations: 27.89 kB / 0.8205 GB, free: 8.195 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.051e-05/0.01643, allocations: 21.97 kB / 0.8206 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.01643, allocations: 4.719 kB / 0.8206 GB, free: 8.176 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.01644, allocations: 0 / 0.8206 GB, free: 8.176 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.01644, allocations: 4.969 kB / 0.8206 GB, free: 8.172 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000754/0.0172, allocations: 0.5407 MB / 0.8211 GB, free: 7.586 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.0172, allocations: 1.125 kB / 0.8211 GB, free: 7.586 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.517e-05/0.01729, allocations: 23.98 kB / 0.8211 GB, free: 7.562 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.01729, allocations: 3.938 kB / 0.8211 GB, free: 7.559 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.01731, allocations: 4.656 kB / 0.8211 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.01731, allocations: 4 kB / 0.8211 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.01731, allocations: 3.75 kB / 0.8211 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/0.01767, allocations: 332.5 kB / 0.8214 GB, free: 7.207 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.424e-05/0.01769, allocations: 19.83 kB / 0.8215 GB, free: 7.188 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.01773, allocations: 11.94 kB / 0.8215 GB, free: 7.176 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.91e-05/0.01782, allocations: 4 kB / 0.8215 GB, free: 7.172 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002117/0.01993, allocations: 23.95 kB / 0.8215 GB, free: 7.148 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.01995, allocations: 8 kB / 0.8215 GB, free: 7.141 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.752e-05/0.02002, allocations: 147.1 kB / 0.8217 GB, free: 6.996 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.02002, allocations: 0 / 0.8217 GB, free: 6.996 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002426/0.02026, allocations: 67.83 kB / 0.8217 GB, free: 6.93 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.0001689/0.02043, allocations: 116.4 kB / 0.8218 GB, free: 6.809 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003426/0.02077, allocations: 276.3 kB / 0.8221 GB, free: 6.52 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.02077, allocations: 0 / 0.8221 GB, free: 6.52 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.02088, allocations: 88.03 kB / 0.8222 GB, free: 6.43 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.02114, allocations: 38.06 kB / 0.8222 GB, free: 6.395 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005312/0.02168, allocations: 372.7 kB / 0.8226 GB, free: 6 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.367e-05/0.02173, allocations: 77.02 kB / 0.8226 GB, free: 5.906 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.705e-05/0.0218, allocations: 33.42 kB / 0.8227 GB, free: 5.875 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.02185, allocations: 20.5 kB / 0.8227 GB, free: 5.855 MB / 0.7761 GB Notification: Performance of SimCode: time 8.02e-07/0.02185, allocations: 0 / 0.8227 GB, free: 5.855 MB / 0.7761 GB Notification: Performance of Templates: time 0.005203/0.02705, allocations: 2.772 MB / 0.8254 GB, free: 3.148 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.617170184850693]