Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00153/0.00153, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001665/0.001665, allocations: 214.9 kB / 23.03 MB, free: 4.926 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.418/1.418, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.131/3.131, allocations: 0.5003 GB / 0.8062 GB, free: 28.25 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) [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.00191/0.00191, allocations: 69.3 kB / 1.17 GB, free: 19.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3517, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003472/0.3552, allocations: 1.762 MB / 1.347 GB, free: 14.19 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3566, allocations: 0.6856 MB / 1.348 GB, free: 13.5 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.3567, allocations: 7.938 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.3569, allocations: 31.67 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.458e-05/0.357, allocations: 27.78 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008155/0.3578, allocations: 262.5 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005748/0.3584, allocations: 411.4 kB / 1.348 GB, free: 12.78 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003495/0.3587, allocations: 179.3 kB / 1.349 GB, free: 12.6 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.3589, allocations: 143.6 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.3592, allocations: 139.4 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.407e-05/0.3592, allocations: 40 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.3594, allocations: 59.97 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.184e-05/0.3595, allocations: 63.84 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.3596, allocations: 123.5 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005094/0.3601, allocations: 414.5 kB / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3601, allocations: 0 / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3601, allocations: 0 / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.3601, allocations: 0 / 1.349 GB, free: 11.63 MB / 1.045 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.0008757/0.361, allocations: 490.7 kB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3611, allocations: 16.02 kB / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.134e-05/0.3611, allocations: 4.688 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.503e-05/0.3612, allocations: 62.67 kB / 1.35 GB, free: 11.02 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.3614, allocations: 48.72 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003747/0.3618, allocations: 198.2 kB / 1.35 GB, free: 10.76 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.3618, allocations: 24.88 kB / 1.35 GB, free: 10.73 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.3619, allocations: 28.38 kB / 1.35 GB, free: 10.71 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.3624, allocations: 275 kB / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3624, allocations: 0 / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.3624, allocations: 16 kB / 1.351 GB, free: 10.41 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.3624, allocations: 7.938 kB / 1.351 GB, free: 10.4 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.3628, allocations: 185.9 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.3639, allocations: 0.7333 MB / 1.351 GB, free: 9.441 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/0.3642, allocations: 162.8 kB / 1.352 GB, free: 9.273 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.3643, allocations: 80.83 kB / 1.352 GB, free: 9.191 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.3644, allocations: 4 kB / 1.352 GB, free: 9.188 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.3646, allocations: 150.2 kB / 1.352 GB, free: 9.027 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 1.883e-06/0.3646, allocations: 4 kB / 1.352 GB, free: 9.023 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0005239/0.3651, allocations: 271.5 kB / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.3652, allocations: 55.41 kB / 1.352 GB, free: 8.688 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.3653, allocations: 165.6 kB / 1.352 GB, free: 8.516 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.3654, allocations: 41.7 kB / 1.352 GB, free: 8.469 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3655, allocations: 136.9 kB / 1.353 GB, free: 8.332 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.3656, allocations: 71.42 kB / 1.353 GB, free: 8.262 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.3657, allocations: 93.45 kB / 1.353 GB, free: 8.164 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3658, allocations: 330.8 kB / 1.353 GB, free: 7.832 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.3661, allocations: 125.7 kB / 1.353 GB, free: 7.703 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.3663, allocations: 189.5 kB / 1.353 GB, free: 7.484 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.3667, allocations: 254 kB / 1.354 GB, free: 7.207 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3667, allocations: 4 kB / 1.354 GB, free: 7.203 MB / 1.045 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005986/0.3673, allocations: 389.8 kB / 1.354 GB, free: 6.805 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.225e-05/0.3673, allocations: 37.7 kB / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.3673, allocations: 0 / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.3673, allocations: 4 kB / 1.354 GB, free: 6.758 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.3675, allocations: 31.91 kB / 1.354 GB, free: 6.727 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.3675, allocations: 4 kB / 1.354 GB, free: 6.723 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.3677, allocations: 55.8 kB / 1.354 GB, free: 6.668 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.3678, allocations: 19.98 kB / 1.354 GB, free: 6.648 MB / 1.045 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.0001742/0.3679, allocations: 173.9 kB / 1.354 GB, free: 6.469 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.872e-05/0.368, allocations: 23.78 kB / 1.354 GB, free: 6.445 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.582e-05/0.368, allocations: 17.97 kB / 1.354 GB, free: 6.426 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.368, allocations: 4 kB / 1.354 GB, free: 6.422 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.368, allocations: 0 / 1.354 GB, free: 6.422 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.368, allocations: 7.922 kB / 1.354 GB, free: 6.414 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008041/0.3688, allocations: 0.5756 MB / 1.355 GB, free: 5.785 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3688, allocations: 4 kB / 1.355 GB, free: 5.781 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.765e-05/0.3689, allocations: 16 kB / 1.355 GB, free: 5.766 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.3689, allocations: 4 kB / 1.355 GB, free: 5.762 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3689, allocations: 7.984 kB / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.3689, allocations: 0 / 1.355 GB, free: 5.754 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3689, allocations: 4 kB / 1.355 GB, free: 5.75 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.3693, allocations: 309.2 kB / 1.355 GB, free: 5.434 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.195e-05/0.3693, allocations: 15.91 kB / 1.355 GB, free: 5.418 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.3694, allocations: 4 kB / 1.355 GB, free: 5.414 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.203e-05/0.3695, allocations: 7.984 kB / 1.355 GB, free: 5.406 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.3695, allocations: 31.95 kB / 1.355 GB, free: 5.375 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.3695, allocations: 8 kB / 1.355 GB, free: 5.367 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.346e-05/0.3696, allocations: 108.5 kB / 1.355 GB, free: 5.262 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3696, allocations: 7.938 kB / 1.355 GB, free: 5.254 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003154/0.3699, allocations: 63.83 kB / 1.355 GB, free: 5.191 MB / 1.045 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.0007303/0.3707, allocations: 0.8607 MB / 1.356 GB, free: 4.301 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004882/0.3712, allocations: 305.8 kB / 1.357 GB, free: 3.984 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3712, allocations: 4.125 kB / 1.357 GB, free: 3.98 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.3713, allocations: 87.84 kB / 1.357 GB, free: 3.895 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.3716, allocations: 25.08 kB / 1.357 GB, free: 3.871 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/0.3746, allocations: 2.491 MB / 1.359 GB, free: 1.227 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.3747, allocations: 133.6 kB / 1.359 GB, free: 1.078 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.064e-05/0.3748, allocations: 22.06 kB / 1.359 GB, free: 1.059 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3749, allocations: 71.34 kB / 1.359 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of SimCode: time 2.4e-07/0.3749, allocations: 0 / 1.359 GB, free: 0.9883 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.4016, allocations: 5.111 MB / 1.364 GB, free: 12.07 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.68, allocations: 10.88 kB / 1.364 GB, free: 12.06 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.32035979698412] Failed to read output from testmodel.py, exit status != 0: 11.841172660933807 11.856089599 11.493014069 Calling exit ...