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.001436/0.001436, allocations: 108.1 kB / 16.45 MB, free: 6.453 MB / 14.72 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.001452/0.001452, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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.524/1.524, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.418/3.418, allocations: 0.4899 GB / 0.7915 GB, free: 33.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 72.05 kB / 1.149 GB, free: 26.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4514/0.4536, allocations: 176.1 MB / 1.321 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003258/0.4568, allocations: 1.799 MB / 1.323 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001384/0.4582, allocations: 0.7013 MB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.4583, allocations: 7.938 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.4585, allocations: 27.67 kB / 1.324 GB, free: 280 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.276e-05/0.4586, allocations: 31.72 kB / 1.324 GB, free: 248 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007335/0.4593, allocations: 251.5 kB / 1.324 GB, free: 0 / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.4598, allocations: 403.3 kB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002972/0.4601, allocations: 186.9 kB / 1.325 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.4603, allocations: 139.6 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.4605, allocations: 135.5 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.734e-05/0.4605, allocations: 40 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.4606, allocations: 59.97 kB / 1.325 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.626e-05/0.4607, allocations: 83.75 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.4609, allocations: 139.4 kB / 1.325 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000485/0.4614, allocations: 414.6 kB / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.4614, allocations: 0 / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.604e-06/0.4614, allocations: 0 / 1.325 GB, free: 14.43 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.4614, allocations: 0 / 1.325 GB, free: 14.43 MB / 1.029 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.0009548/0.4623, allocations: 0.5622 MB / 1.326 GB, free: 13.8 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.4624, allocations: 15.97 kB / 1.326 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003123/0.4627, allocations: 40.78 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004153/0.4631, allocations: 271.9 kB / 1.326 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.4632, allocations: 24.94 kB / 1.326 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.4632, allocations: 32.38 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005084/0.4637, allocations: 272.3 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4637, allocations: 192 / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.4638, allocations: 11.94 kB / 1.327 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.4638, allocations: 11.98 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003512/0.4641, allocations: 186.1 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.4654, allocations: 0.8464 MB / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003325/0.4657, allocations: 158.8 kB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001378/0.4658, allocations: 84.83 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.4659, allocations: 0 / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.4661, allocations: 150.1 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.4661, allocations: 0 / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005276/0.4667, allocations: 271.5 kB / 1.328 GB, free: 11.33 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.4667, allocations: 55.41 kB / 1.328 GB, free: 11.26 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.4669, allocations: 159.6 kB / 1.329 GB, free: 11.1 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.4669, allocations: 45.7 kB / 1.329 GB, free: 11.05 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.467, allocations: 144.8 kB / 1.329 GB, free: 10.9 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.253e-05/0.4671, allocations: 67.47 kB / 1.329 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.4673, allocations: 97.62 kB / 1.329 GB, free: 10.73 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.4674, allocations: 322.8 kB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.4676, allocations: 99.95 kB / 1.329 GB, free: 10.31 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.4678, allocations: 170.8 kB / 1.329 GB, free: 10.11 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003528/0.4682, allocations: 245.4 kB / 1.33 GB, free: 9.844 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4682, allocations: 0 / 1.33 GB, free: 9.844 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006393/0.4688, allocations: 348.3 kB / 1.33 GB, free: 9.492 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.913e-05/0.4689, allocations: 45.62 kB / 1.33 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.4689, allocations: 0 / 1.33 GB, free: 9.441 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4689, allocations: 4.219 kB / 1.33 GB, free: 9.438 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.4691, allocations: 31.92 kB / 1.33 GB, free: 9.406 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.4691, allocations: 7.938 kB / 1.33 GB, free: 9.398 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.4694, allocations: 51.81 kB / 1.33 GB, free: 9.348 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.4694, allocations: 15.98 kB / 1.33 GB, free: 9.332 MB / 1.029 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.0002021/0.4696, allocations: 165.8 kB / 1.33 GB, free: 9.164 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.4696, allocations: 27.84 kB / 1.33 GB, free: 9.137 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.165e-05/0.4697, allocations: 21.86 kB / 1.33 GB, free: 9.117 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4697, allocations: 4 kB / 1.33 GB, free: 9.113 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4697, allocations: 0 / 1.33 GB, free: 9.113 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4697, allocations: 3.938 kB / 1.33 GB, free: 9.109 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008934/0.4706, allocations: 0.6235 MB / 1.331 GB, free: 8.426 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4706, allocations: 0 / 1.331 GB, free: 8.426 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.202e-05/0.4707, allocations: 15.94 kB / 1.331 GB, free: 8.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.4707, allocations: 4 kB / 1.331 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.4707, allocations: 11.98 kB / 1.331 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.4707, allocations: 0 / 1.331 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4707, allocations: 4 kB / 1.331 GB, free: 8.391 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004008/0.4711, allocations: 305.3 kB / 1.331 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/0.4712, allocations: 96.95 kB / 1.331 GB, free: 7.965 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.4712, allocations: 4 kB / 1.331 GB, free: 7.961 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.741e-05/0.4713, allocations: 15.92 kB / 1.331 GB, free: 7.945 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.23e-05/0.4714, allocations: 27.97 kB / 1.331 GB, free: 7.918 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.4714, allocations: 8 kB / 1.331 GB, free: 7.91 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.617e-05/0.4715, allocations: 101.3 kB / 1.332 GB, free: 7.812 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4715, allocations: 0 / 1.332 GB, free: 7.812 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003645/0.4719, allocations: 71.78 kB / 1.332 GB, free: 7.742 MB / 1.029 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.0002112/0.4721, allocations: 123.1 kB / 1.332 GB, free: 7.609 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005199/0.4726, allocations: 275.8 kB / 1.332 GB, free: 7.328 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4726, allocations: 4 kB / 1.332 GB, free: 7.324 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.4727, allocations: 87.83 kB / 1.332 GB, free: 7.238 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.4731, allocations: 31.89 kB / 1.332 GB, free: 7.207 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007723/0.4739, allocations: 384.7 kB / 1.332 GB, free: 6.809 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.4743, allocations: 0.7406 MB / 1.333 GB, free: 6.043 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.333e-05/0.4743, allocations: 25.95 kB / 1.333 GB, free: 6.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/0.4744, allocations: 23.42 kB / 1.333 GB, free: 5.996 MB / 1.029 GB Notification: Performance of SimCode: time 5.91e-07/0.4744, allocations: 0 / 1.333 GB, free: 5.996 MB / 1.029 GB Notification: Performance of Templates: time 0.006828/0.4812, allocations: 2.662 MB / 1.336 GB, free: 3.348 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.655578800011426]