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.001295/0.001295, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00166/0.00166, allocations: 212.5 kB / 22.24 MB, free: 4.855 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 7.812 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.402/3.402, allocations: 0.5107 GB / 0.8158 GB, free: 17.83 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",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.003218/0.003218, allocations: 71.3 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.475/0.4782, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003507/0.4817, allocations: 1.767 MB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001439/0.4832, allocations: 0.6818 MB / 1.366 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.4833, allocations: 7.938 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001533/0.4834, allocations: 31.67 kB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.451e-05/0.4835, allocations: 35.72 kB / 1.366 GB, free: 11.57 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008341/0.4844, allocations: 260.5 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0005607/0.4849, allocations: 407.4 kB / 1.366 GB, free: 10.92 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.4852, allocations: 171.3 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.4854, allocations: 143.5 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.4856, allocations: 123.5 kB / 1.367 GB, free: 10.49 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.25e-05/0.4857, allocations: 40 kB / 1.367 GB, free: 10.45 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.4858, allocations: 55.98 kB / 1.367 GB, free: 10.39 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.675e-05/0.4859, allocations: 63.84 kB / 1.367 GB, free: 10.33 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.4861, allocations: 119.5 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.4866, allocations: 422.5 kB / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4866, allocations: 0 / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.913e-06/0.4866, allocations: 0 / 1.368 GB, free: 9.801 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.4866, allocations: 0 / 1.368 GB, free: 9.801 MB / 1.061 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.0009072/0.4876, allocations: 486.7 kB / 1.368 GB, free: 9.281 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.4876, allocations: 16.03 kB / 1.368 GB, free: 9.266 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.195e-05/0.4877, allocations: 62.72 kB / 1.368 GB, free: 9.195 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002876/0.488, allocations: 40.77 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004196/0.4884, allocations: 202.2 kB / 1.368 GB, free: 8.934 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.677e-05/0.4885, allocations: 28.86 kB / 1.368 GB, free: 8.906 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-05/0.4885, allocations: 28.38 kB / 1.368 GB, free: 8.879 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.489, allocations: 267.3 kB / 1.369 GB, free: 8.609 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.489, allocations: 3.938 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.489, allocations: 15.94 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.4891, allocations: 4 kB / 1.369 GB, free: 8.586 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003527/0.4894, allocations: 189.8 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.4906, allocations: 0.7334 MB / 1.37 GB, free: 7.617 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.4909, allocations: 164.9 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.4911, allocations: 80.69 kB / 1.37 GB, free: 7.367 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.4911, allocations: 7.984 kB / 1.37 GB, free: 7.359 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002883/0.4914, allocations: 153 kB / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of pre-optimization done (n=27): time 1.863e-06/0.4914, allocations: 0 / 1.37 GB, free: 7.195 MB / 1.061 GB Notification: Performance of matching and sorting (n=27): time 0.000574/0.492, allocations: 263.7 kB / 1.37 GB, free: 6.934 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.4921, allocations: 59.41 kB / 1.37 GB, free: 6.863 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.4922, allocations: 163.8 kB / 1.37 GB, free: 6.695 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.4923, allocations: 41.7 kB / 1.37 GB, free: 6.648 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.4924, allocations: 144.8 kB / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.467e-05/0.4925, allocations: 63.47 kB / 1.371 GB, free: 6.441 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.4926, allocations: 93.67 kB / 1.371 GB, free: 6.344 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001706/0.4928, allocations: 326.8 kB / 1.371 GB, free: 6.016 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.493, allocations: 129.7 kB / 1.371 GB, free: 5.883 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.4933, allocations: 192.5 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.4937, allocations: 253.3 kB / 1.372 GB, free: 5.383 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4937, allocations: 4 kB / 1.372 GB, free: 5.379 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006432/0.4944, allocations: 385.9 kB / 1.372 GB, free: 4.984 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.4944, allocations: 45.91 kB / 1.372 GB, free: 4.934 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.4944, allocations: 0 / 1.372 GB, free: 4.934 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.4945, allocations: 4 kB / 1.372 GB, free: 4.93 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.4946, allocations: 27.92 kB / 1.372 GB, free: 4.902 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.4946, allocations: 7.938 kB / 1.372 GB, free: 4.895 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.4949, allocations: 59.73 kB / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.4949, allocations: 12 kB / 1.372 GB, free: 4.824 MB / 1.061 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.0002081/0.4951, allocations: 177.6 kB / 1.372 GB, free: 4.645 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.4951, allocations: 15.89 kB / 1.372 GB, free: 4.629 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.693e-05/0.4952, allocations: 21.97 kB / 1.372 GB, free: 4.605 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.4952, allocations: 4 kB / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.4952, allocations: 0 / 1.372 GB, free: 4.602 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.4952, allocations: 3.984 kB / 1.372 GB, free: 4.598 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008627/0.4961, allocations: 0.5767 MB / 1.373 GB, free: 3.969 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4961, allocations: 0 / 1.373 GB, free: 3.969 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.741e-05/0.4962, allocations: 19.94 kB / 1.373 GB, free: 3.949 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.4962, allocations: 8 kB / 1.373 GB, free: 3.941 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.4962, allocations: 3.984 kB / 1.373 GB, free: 3.938 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.4962, allocations: 0 / 1.373 GB, free: 3.938 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4962, allocations: 3.984 kB / 1.373 GB, free: 3.934 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.4966, allocations: 312.3 kB / 1.373 GB, free: 3.613 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.4966, allocations: 19.84 kB / 1.373 GB, free: 3.594 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.4966, allocations: 4 kB / 1.373 GB, free: 3.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.172e-05/0.4967, allocations: 11.98 kB / 1.373 GB, free: 3.578 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.733e-05/0.4968, allocations: 27.97 kB / 1.373 GB, free: 3.551 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.4968, allocations: 7.984 kB / 1.373 GB, free: 3.543 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.744e-05/0.4969, allocations: 105.4 kB / 1.373 GB, free: 3.441 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4969, allocations: 4 kB / 1.373 GB, free: 3.438 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003202/0.4972, allocations: 67.83 kB / 1.373 GB, free: 3.371 MB / 1.061 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.000738/0.498, allocations: 0.845 MB / 1.374 GB, free: 2.496 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005005/0.4985, allocations: 305.4 kB / 1.375 GB, free: 2.18 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4985, allocations: 0 / 1.375 GB, free: 2.18 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.4986, allocations: 88.81 kB / 1.375 GB, free: 2.094 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.4989, allocations: 27.98 kB / 1.375 GB, free: 2.066 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.5021, allocations: 2.492 MB / 1.377 GB, free: 15.43 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.5023, allocations: 129.9 kB / 1.377 GB, free: 15.28 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 9.14e-05/0.5024, allocations: 29.88 kB / 1.377 GB, free: 15.25 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.5025, allocations: 75.34 kB / 1.377 GB, free: 15.18 MB / 1.076 GB Notification: Performance of SimCode: time 7.91e-07/0.5025, allocations: 0 / 1.377 GB, free: 15.18 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.5399, allocations: 5.437 MB / 1.383 GB, free: 9.91 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.28, allocations: 18.2 kB / 1.383 GB, free: 9.895 MB / 1.076 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] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 19.540571012999862]