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.001259/0.001259, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001431/0.001431, allocations: 217.1 kB / 23.04 MB, free: 5.074 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 8.062 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.332/3.332, allocations: 0.5003 GB / 0.8061 GB, free: 26.82 MB / 0.6231 GB " [Timeout remaining time 176] 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.002035/0.002035, allocations: 66.05 kB / 1.171 GB, free: 19.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4519/0.4539, allocations: 179 MB / 1.345 GB, free: 0.5 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003789/0.4577, allocations: 1.804 MB / 1.347 GB, free: 14.68 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001503/0.4592, allocations: 0.7129 MB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.4594, allocations: 4 kB / 1.348 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.4595, allocations: 27.67 kB / 1.348 GB, free: 13.94 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.263e-05/0.4596, allocations: 31.73 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007974/0.4604, allocations: 259.7 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005312/0.4609, allocations: 411.4 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.4613, allocations: 187.3 kB / 1.349 GB, free: 13.07 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001708/0.4614, allocations: 135.7 kB / 1.349 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.4616, allocations: 131.5 kB / 1.349 GB, free: 12.8 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.4617, allocations: 44 kB / 1.349 GB, free: 12.76 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.4618, allocations: 63.91 kB / 1.349 GB, free: 12.7 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.596e-05/0.4619, allocations: 75.81 kB / 1.349 GB, free: 12.62 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.4621, allocations: 139.4 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005488/0.4626, allocations: 418.6 kB / 1.35 GB, free: 12.08 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4626, allocations: 0 / 1.35 GB, free: 12.08 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.853e-06/0.4626, allocations: 0 / 1.35 GB, free: 12.08 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.4627, allocations: 0 / 1.35 GB, free: 12.08 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.0009955/0.4637, allocations: 498.6 kB / 1.35 GB, free: 11.55 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.4637, allocations: 12.03 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.484e-05/0.4637, allocations: 4.688 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.326e-05/0.4638, allocations: 62.66 kB / 1.35 GB, free: 11.46 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.4641, allocations: 44.73 kB / 1.35 GB, free: 11.42 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.4645, allocations: 198.2 kB / 1.35 GB, free: 11.2 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.4646, allocations: 24.88 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.59e-05/0.4646, allocations: 28.38 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005043/0.4651, allocations: 283 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4651, allocations: 0 / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.4652, allocations: 8 kB / 1.351 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.4652, allocations: 8 kB / 1.351 GB, free: 10.85 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003586/0.4655, allocations: 181.9 kB / 1.351 GB, free: 10.67 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.4668, allocations: 0.8152 MB / 1.352 GB, free: 9.809 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.4671, allocations: 166.8 kB / 1.352 GB, free: 9.637 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.4673, allocations: 76.83 kB / 1.352 GB, free: 9.559 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.4673, allocations: 4 kB / 1.352 GB, free: 9.555 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.4676, allocations: 146.2 kB / 1.352 GB, free: 9.398 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 1.844e-06/0.4676, allocations: 8 kB / 1.352 GB, free: 9.391 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0005779/0.4682, allocations: 271.5 kB / 1.352 GB, free: 9.121 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.4682, allocations: 59.41 kB / 1.352 GB, free: 9.051 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.4684, allocations: 167.2 kB / 1.353 GB, free: 8.879 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.4684, allocations: 37.7 kB / 1.353 GB, free: 8.836 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4685, allocations: 136.9 kB / 1.353 GB, free: 8.699 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.409e-05/0.4686, allocations: 75.42 kB / 1.353 GB, free: 8.625 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.4688, allocations: 89.45 kB / 1.353 GB, free: 8.531 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4689, allocations: 334.8 kB / 1.353 GB, free: 8.195 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.4691, allocations: 99.95 kB / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.4694, allocations: 155.8 kB / 1.353 GB, free: 7.918 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.4698, allocations: 250 kB / 1.354 GB, free: 7.645 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4698, allocations: 0 / 1.354 GB, free: 7.645 MB / 1.045 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006367/0.4704, allocations: 364.1 kB / 1.354 GB, free: 7.277 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.4704, allocations: 33.7 kB / 1.354 GB, free: 7.238 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4705, allocations: 4 kB / 1.354 GB, free: 7.234 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.4705, allocations: 8 kB / 1.354 GB, free: 7.227 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.4706, allocations: 31.92 kB / 1.354 GB, free: 7.195 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.4706, allocations: 0 / 1.354 GB, free: 7.195 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002502/0.4709, allocations: 51.8 kB / 1.354 GB, free: 7.145 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.4709, allocations: 20.22 kB / 1.354 GB, free: 7.125 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.0002033/0.4711, allocations: 173.6 kB / 1.354 GB, free: 6.945 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.4712, allocations: 23.83 kB / 1.354 GB, free: 6.922 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.11e-05/0.4712, allocations: 21.97 kB / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.4712, allocations: 0 / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.4712, allocations: 0 / 1.354 GB, free: 6.898 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.4712, allocations: 3.984 kB / 1.354 GB, free: 6.895 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008955/0.4721, allocations: 0.6068 MB / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4721, allocations: 0 / 1.355 GB, free: 6.234 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.384e-05/0.4722, allocations: 19.92 kB / 1.355 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.4722, allocations: 4 kB / 1.355 GB, free: 6.211 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.4722, allocations: 4 kB / 1.355 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.4722, allocations: 0 / 1.355 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4722, allocations: 4 kB / 1.355 GB, free: 6.203 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.4726, allocations: 313.2 kB / 1.355 GB, free: 5.883 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.4727, allocations: 11.91 kB / 1.355 GB, free: 5.871 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.342e-05/0.4727, allocations: 11.98 kB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/0.4728, allocations: 7.938 kB / 1.355 GB, free: 5.852 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.4729, allocations: 27.95 kB / 1.355 GB, free: 5.824 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.4729, allocations: 4 kB / 1.355 GB, free: 5.82 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.599e-05/0.473, allocations: 112.5 kB / 1.355 GB, free: 5.711 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.473, allocations: 3.938 kB / 1.355 GB, free: 5.707 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003405/0.4733, allocations: 63.83 kB / 1.356 GB, free: 5.645 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.0007838/0.4741, allocations: 0.8529 MB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005041/0.4746, allocations: 280.1 kB / 1.357 GB, free: 4.477 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.4746, allocations: 4.062 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001569/0.4748, allocations: 79.91 kB / 1.357 GB, free: 4.395 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.4751, allocations: 35.92 kB / 1.357 GB, free: 4.359 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.4782, allocations: 2.367 MB / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.4786, allocations: 0.744 MB / 1.36 GB, free: 1.094 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.987e-05/0.4787, allocations: 25.94 kB / 1.36 GB, free: 1.07 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.4788, allocations: 63.42 kB / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of SimCode: time 6.92e-07/0.4788, allocations: 0 / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.5076, allocations: 4.99 MB / 1.365 GB, free: 12.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.3, allocations: 12 kB / 1.365 GB, free: 12.17 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: 19.456823070999235] Failed to read output from testmodel.py, exit status != 0: 12.46147604600992 12.484126332 12.016154587 Calling exit ...