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.001287/0.001287, allocations: 84.3 kB / 21.47 MB, free: 3.027 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.001031/0.001031, allocations: 166.1 kB / 24.86 MB, free: 9.207 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.967/0.967, allocations: 177.1 MB / 205.3 MB, free: 5.523 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.896/1.896, allocations: 377.9 MB / 0.6247 GB, free: 8.438 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.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.194e-06/2.194e-06, allocations: 0 / 0.8127 GB, free: 1.492 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.787e-05/3.007e-05, allocations: 6.25 kB / 0.8127 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002611/0.002641, allocations: 1.816 MB / 0.8145 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001131/0.003773, allocations: 0.6903 MB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.003874, allocations: 7.938 kB / 0.8152 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001444/0.004019, allocations: 32.92 kB / 0.8152 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 5.639e-05/0.004075, allocations: 23.75 kB / 0.8153 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005695/0.004644, allocations: 261 kB / 0.8155 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003655/0.00501, allocations: 411.3 kB / 0.8159 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.005265, allocations: 221 kB / 0.8161 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.005452, allocations: 203.7 kB / 0.8163 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001975/0.00565, allocations: 108.6 kB / 0.8164 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.385e-05/0.005704, allocations: 40 kB / 0.8164 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.005815, allocations: 60.52 kB / 0.8165 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.108e-05/0.005896, allocations: 75.8 kB / 0.8166 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.006003, allocations: 96.77 kB / 0.8167 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003528/0.006356, allocations: 271.1 kB / 0.8169 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.006359, allocations: 0.75 kB / 0.8169 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.62e-07/0.00636, allocations: 0 / 0.8169 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.006365, allocations: 3.938 kB / 0.8169 GB, free: 13.21 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.0009281/0.007293, allocations: 0.5877 MB / 0.8175 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.007326, allocations: 9.281 kB / 0.8175 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.007572, allocations: 60.77 kB / 0.8176 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.007834, allocations: 213 kB / 0.8178 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.007874, allocations: 20.88 kB / 0.8178 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.007916, allocations: 32.38 kB / 0.8178 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.008335, allocations: 213.6 kB / 0.818 GB, free: 12 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.008346, allocations: 192 / 0.818 GB, free: 12 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.008368, allocations: 13.41 kB / 0.818 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.008378, allocations: 4.375 kB / 0.818 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.00851, allocations: 87.34 kB / 0.8181 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008689/0.009379, allocations: 0.7497 MB / 0.8189 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.009572, allocations: 123.2 kB / 0.819 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.328e-05/0.009636, allocations: 51.64 kB / 0.819 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.009652, allocations: 5.531 kB / 0.819 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.009804, allocations: 114.8 kB / 0.8191 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=27): time 1.863e-06/0.009806, allocations: 0 / 0.8191 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=27): time 0.0003121/0.01012, allocations: 203.2 kB / 0.8193 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.01015, allocations: 55.41 kB / 0.8194 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.01028, allocations: 221.7 kB / 0.8196 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.01031, allocations: 45.69 kB / 0.8196 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.052e-05/0.0104, allocations: 188.4 kB / 0.8198 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.004e-05/0.01045, allocations: 63.45 kB / 0.8199 GB, free: 9.996 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.01057, allocations: 107.2 kB / 0.82 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.01071, allocations: 0.5017 MB / 0.8205 GB, free: 9.371 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.01082, allocations: 77.66 kB / 0.8205 GB, free: 9.289 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.01098, allocations: 176 kB / 0.8207 GB, free: 9.074 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.01118, allocations: 204.2 kB / 0.8209 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.01118, allocations: 1.094 kB / 0.8209 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003858/0.01157, allocations: 323.7 kB / 0.8212 GB, free: 8.508 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.01161, allocations: 41.69 kB / 0.8213 GB, free: 8.461 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.01161, allocations: 0 / 0.8213 GB, free: 8.461 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.01163, allocations: 5.125 kB / 0.8213 GB, free: 8.457 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.01174, allocations: 31.86 kB / 0.8213 GB, free: 8.426 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.01174, allocations: 4 kB / 0.8213 GB, free: 8.422 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.0119, allocations: 53.08 kB / 0.8213 GB, free: 8.371 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.01192, allocations: 15.98 kB / 0.8214 GB, free: 8.355 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.suspend,sta.stateGraphRoot.resume) * 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.0001204/0.01204, allocations: 190.2 kB / 0.8215 GB, free: 8.164 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.01207, allocations: 23.91 kB / 0.8216 GB, free: 8.141 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.756e-05/0.01211, allocations: 27.3 kB / 0.8216 GB, free: 8.121 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.01211, allocations: 4 kB / 0.8216 GB, free: 8.117 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.01212, allocations: 0 / 0.8216 GB, free: 8.117 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.01212, allocations: 0 / 0.8216 GB, free: 8.117 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.01265, allocations: 0.4968 MB / 0.8221 GB, free: 7.586 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.01265, allocations: 1.938 kB / 0.8221 GB, free: 7.586 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.01272, allocations: 31.86 kB / 0.8221 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.01273, allocations: 4 kB / 0.8221 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.01274, allocations: 0 / 0.8221 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.01274, allocations: 3.938 kB / 0.8221 GB, free: 7.547 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01274, allocations: 0.7812 kB / 0.8221 GB, free: 7.547 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.01298, allocations: 326.4 kB / 0.8224 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.587e-05/0.013, allocations: 19.28 kB / 0.8225 GB, free: 7.195 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.01302, allocations: 8 kB / 0.8225 GB, free: 7.188 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.431e-05/0.0131, allocations: 15.92 kB / 0.8225 GB, free: 7.172 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.01315, allocations: 19.97 kB / 0.8225 GB, free: 7.152 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.01316, allocations: 7.984 kB / 0.8225 GB, free: 7.145 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.269e-05/0.01322, allocations: 145.3 kB / 0.8226 GB, free: 7.004 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01322, allocations: 0 / 0.8226 GB, free: 7.004 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002941/0.01351, allocations: 63.89 kB / 0.8227 GB, free: 6.941 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.0001436/0.01365, allocations: 120.1 kB / 0.8228 GB, free: 6.816 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000287/0.01394, allocations: 251 kB / 0.8231 GB, free: 6.551 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.01394, allocations: 5.094 kB / 0.8231 GB, free: 6.547 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.817e-05/0.01403, allocations: 75.5 kB / 0.8231 GB, free: 6.469 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.01432, allocations: 32.64 kB / 0.8232 GB, free: 6.438 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00049/0.01481, allocations: 366.5 kB / 0.8235 GB, free: 6.051 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.817e-05/0.01487, allocations: 80.33 kB / 0.8236 GB, free: 5.949 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.216e-05/0.01494, allocations: 25.38 kB / 0.8236 GB, free: 5.926 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.01508, allocations: 122.2 kB / 0.8237 GB, free: 5.805 MB / 0.7761 GB Notification: Performance of SimCode: time 6.51e-07/0.01508, allocations: 0 / 0.8237 GB, free: 5.805 MB / 0.7761 GB Notification: Performance of Templates: time 0.006169/0.02125, allocations: 3.104 MB / 0.8268 GB, free: 2.773 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.286377838347107]