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.001545/0.001545, allocations: 101.5 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.00196/0.00196, allocations: 214.8 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.535/1.535, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.328/3.328, allocations: 0.49 GB / 0.7959 GB, free: 33.39 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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_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.00216/0.00216, allocations: 58.53 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4602/0.4624, allocations: 176.1 MB / 1.327 GB, free: 2.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003479/0.4658, allocations: 1.806 MB / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001469/0.4673, allocations: 0.7013 MB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.4674, allocations: 11.94 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.4676, allocations: 31.67 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.417e-05/0.4677, allocations: 27.73 kB / 1.329 GB, free: 15.42 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.4685, allocations: 255.3 kB / 1.329 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.469, allocations: 415.3 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003402/0.4694, allocations: 187.5 kB / 1.33 GB, free: 14.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.4696, allocations: 139.6 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.4698, allocations: 131.5 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.873e-05/0.4698, allocations: 40 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.47, allocations: 63.95 kB / 1.33 GB, free: 14.21 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.4701, allocations: 75.77 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.4703, allocations: 143.4 kB / 1.331 GB, free: 14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005491/0.4708, allocations: 414.6 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.4708, allocations: 0 / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4708, allocations: 0 / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.4708, allocations: 4 kB / 1.331 GB, free: 13.59 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.0009658/0.4718, allocations: 490.6 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.4718, allocations: 12.03 kB / 1.331 GB, free: 13.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.925e-05/0.4719, allocations: 8.688 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.134e-05/0.4719, allocations: 62.72 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.4723, allocations: 36.78 kB / 1.332 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.4727, allocations: 202.2 kB / 1.332 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/0.4728, allocations: 32.88 kB / 1.332 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.4728, allocations: 28.38 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.4733, allocations: 275.1 kB / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.4733, allocations: 0 / 1.332 GB, free: 12.38 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.4734, allocations: 8 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4734, allocations: 8 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.4737, allocations: 181.9 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.475, allocations: 0.8229 MB / 1.333 GB, free: 11.31 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.4753, allocations: 154.9 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.4755, allocations: 77.84 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.4755, allocations: 11.92 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.4757, allocations: 153.8 kB / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.4758, allocations: 0 / 1.333 GB, free: 10.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005305/0.4763, allocations: 263.6 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.4763, allocations: 59.41 kB / 1.334 GB, free: 10.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.4765, allocations: 163.5 kB / 1.334 GB, free: 10.4 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.84e-05/0.4766, allocations: 37.7 kB / 1.334 GB, free: 10.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.4767, allocations: 140.8 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.148e-05/0.4768, allocations: 75.47 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.4769, allocations: 97.56 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4771, allocations: 330.8 kB / 1.335 GB, free: 9.707 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.4773, allocations: 95.89 kB / 1.335 GB, free: 9.613 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.4776, allocations: 163.6 kB / 1.335 GB, free: 9.426 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003663/0.4779, allocations: 244.8 kB / 1.335 GB, free: 9.156 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4779, allocations: 4 kB / 1.335 GB, free: 9.152 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006295/0.4786, allocations: 364.1 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.4786, allocations: 29.7 kB / 1.335 GB, free: 8.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4786, allocations: 4 kB / 1.335 GB, free: 8.746 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4786, allocations: 4 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.4788, allocations: 35.86 kB / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.4788, allocations: 4 kB / 1.335 GB, free: 8.703 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.479, allocations: 52.02 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.4791, allocations: 16 kB / 1.335 GB, free: 8.637 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.000188/0.4793, allocations: 170.9 kB / 1.336 GB, free: 8.465 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.4793, allocations: 23.83 kB / 1.336 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.792e-05/0.4793, allocations: 21.97 kB / 1.336 GB, free: 8.418 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4793, allocations: 4 kB / 1.336 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4794, allocations: 0 / 1.336 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.4794, allocations: 7.984 kB / 1.336 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008656/0.4802, allocations: 0.5914 MB / 1.336 GB, free: 7.762 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.4802, allocations: 4 kB / 1.336 GB, free: 7.758 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.114e-05/0.4803, allocations: 19.92 kB / 1.336 GB, free: 7.738 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.4803, allocations: 4 kB / 1.336 GB, free: 7.734 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.4803, allocations: 4 kB / 1.336 GB, free: 7.73 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.4803, allocations: 4 kB / 1.336 GB, free: 7.727 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4804, allocations: 4 kB / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003757/0.4807, allocations: 309.2 kB / 1.337 GB, free: 7.406 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.4808, allocations: 19.91 kB / 1.337 GB, free: 7.387 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.4808, allocations: 7.984 kB / 1.337 GB, free: 7.379 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.802e-05/0.4809, allocations: 4 kB / 1.337 GB, free: 7.375 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.88e-05/0.481, allocations: 31.95 kB / 1.337 GB, free: 7.344 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.481, allocations: 4 kB / 1.337 GB, free: 7.34 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.621e-05/0.4811, allocations: 116.9 kB / 1.337 GB, free: 7.227 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4811, allocations: 0 / 1.337 GB, free: 7.227 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003361/0.4814, allocations: 67.78 kB / 1.337 GB, free: 7.16 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.0007773/0.4822, allocations: 0.8449 MB / 1.338 GB, free: 6.285 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004885/0.4827, allocations: 283.7 kB / 1.338 GB, free: 5.996 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4827, allocations: 0 / 1.338 GB, free: 5.996 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.4828, allocations: 79.91 kB / 1.338 GB, free: 5.918 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.4831, allocations: 31.92 kB / 1.338 GB, free: 5.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/0.4862, allocations: 2.369 MB / 1.34 GB, free: 3.387 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.4866, allocations: 0.7402 MB / 1.341 GB, free: 2.621 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.87e-05/0.4866, allocations: 25.94 kB / 1.341 GB, free: 2.598 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.4868, allocations: 63.42 kB / 1.341 GB, free: 2.535 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.4868, allocations: 0 / 1.341 GB, free: 2.535 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.5139, allocations: 5.004 MB / 1.346 GB, free: 13.7 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.31, allocations: 9.625 kB / 1.346 GB, free: 13.69 MB / 1.045 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator_fmu --startTime=0 --stopTime=50 --stepSize=0.02 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.64572994800983] Failed to read output from testmodel.py, exit status != 0: 12.480856432986911 12.505471594 12.030583091 Calling exit ...