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.001371/0.001371, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001697/0.001697, allocations: 218.3 kB / 22.26 MB, free: 5.082 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 8.012 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.392/3.392, allocations: 0.505 GB / 0.8101 GB, free: 22.08 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.002187/0.002187, allocations: 71.25 kB / 1.177 GB, free: 17.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3821, allocations: 180.2 MB / 1.353 GB, free: 8.492 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003999/0.3861, allocations: 1.802 MB / 1.355 GB, free: 6.68 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001582/0.3876, allocations: 0.7057 MB / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.3878, allocations: 4 kB / 1.355 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001844/0.388, allocations: 31.67 kB / 1.355 GB, free: 5.938 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.3881, allocations: 27.72 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009456/0.3891, allocations: 270.3 kB / 1.356 GB, free: 5.648 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000625/0.3897, allocations: 411.4 kB / 1.356 GB, free: 5.246 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.3901, allocations: 180.7 kB / 1.356 GB, free: 5.066 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002175/0.3903, allocations: 131.7 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002668/0.3905, allocations: 135.5 kB / 1.356 GB, free: 4.805 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 7.508e-05/0.3906, allocations: 43.98 kB / 1.356 GB, free: 4.762 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.3908, allocations: 75.84 kB / 1.357 GB, free: 4.688 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.014e-05/0.3909, allocations: 63.84 kB / 1.357 GB, free: 4.625 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001818/0.391, allocations: 147.4 kB / 1.357 GB, free: 4.48 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005763/0.3916, allocations: 414.5 kB / 1.357 GB, free: 4.074 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3916, allocations: 0 / 1.357 GB, free: 4.074 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3916, allocations: 4 kB / 1.357 GB, free: 4.07 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.63e-05/0.3916, allocations: 0 / 1.357 GB, free: 4.07 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.001062/0.3927, allocations: 490.6 kB / 1.358 GB, free: 3.555 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.3928, allocations: 12.03 kB / 1.358 GB, free: 3.543 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.3929, allocations: 62.73 kB / 1.358 GB, free: 3.473 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003524/0.3932, allocations: 44.72 kB / 1.358 GB, free: 3.43 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.3937, allocations: 206.2 kB / 1.358 GB, free: 3.203 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.3937, allocations: 20.88 kB / 1.358 GB, free: 3.184 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.3938, allocations: 32.38 kB / 1.358 GB, free: 3.152 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.3943, allocations: 271.3 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.3943, allocations: 7.875 kB / 1.358 GB, free: 2.867 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.3944, allocations: 15.97 kB / 1.358 GB, free: 2.852 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.3944, allocations: 8 kB / 1.358 GB, free: 2.844 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.3947, allocations: 181.9 kB / 1.358 GB, free: 2.668 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.3961, allocations: 0.8152 MB / 1.359 GB, free: 1.805 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003427/0.3964, allocations: 162.8 kB / 1.359 GB, free: 1.637 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.3966, allocations: 80.83 kB / 1.359 GB, free: 1.555 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.3966, allocations: 0 / 1.359 GB, free: 1.555 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3969, allocations: 142.3 kB / 1.36 GB, free: 1.402 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 1.834e-06/0.3969, allocations: 0 / 1.36 GB, free: 1.402 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0005377/0.3974, allocations: 267.6 kB / 1.36 GB, free: 1.137 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.3975, allocations: 63.33 kB / 1.36 GB, free: 1.062 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.3976, allocations: 167.8 kB / 1.36 GB, free: 0.8906 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.3977, allocations: 41.7 kB / 1.36 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.3978, allocations: 136.9 kB / 1.36 GB, free: 0.7031 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 7.238e-05/0.3979, allocations: 71.42 kB / 1.36 GB, free: 0.6328 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.398, allocations: 89.67 kB / 1.36 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3982, allocations: 334.8 kB / 1.361 GB, free: 208 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.3984, allocations: 95.97 kB / 1.361 GB, free: 112 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002685/0.3986, allocations: 162.9 kB / 1.361 GB, free: 15.92 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.399, allocations: 253.4 kB / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.399, allocations: 0 / 1.361 GB, free: 15.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006577/0.3997, allocations: 356.1 kB / 1.362 GB, free: 15.28 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.948e-05/0.3997, allocations: 41.69 kB / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.3997, allocations: 8.219 kB / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.3998, allocations: 0 / 1.362 GB, free: 15.23 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.3999, allocations: 31.86 kB / 1.362 GB, free: 15.2 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.3999, allocations: 4 kB / 1.362 GB, free: 15.19 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.4002, allocations: 59.73 kB / 1.362 GB, free: 15.13 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.4002, allocations: 12 kB / 1.362 GB, free: 15.12 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.0002053/0.4004, allocations: 178.3 kB / 1.362 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.837e-05/0.4005, allocations: 19.84 kB / 1.362 GB, free: 14.93 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.35e-05/0.4005, allocations: 17.97 kB / 1.362 GB, free: 14.91 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.4005, allocations: 4 kB / 1.362 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.4005, allocations: 0 / 1.362 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.4006, allocations: 3.984 kB / 1.362 GB, free: 14.9 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009219/0.4015, allocations: 0.6029 MB / 1.362 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4015, allocations: 0 / 1.362 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.06e-05/0.4016, allocations: 19.94 kB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.4016, allocations: 0 / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.4016, allocations: 11.98 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.4016, allocations: 0 / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4016, allocations: 4 kB / 1.363 GB, free: 14.21 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003897/0.402, allocations: 313.2 kB / 1.363 GB, free: 13.89 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.402, allocations: 19.84 kB / 1.363 GB, free: 13.87 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.402, allocations: 4 kB / 1.363 GB, free: 13.86 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.489e-05/0.4021, allocations: 15.98 kB / 1.363 GB, free: 13.85 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.199e-05/0.4022, allocations: 23.97 kB / 1.363 GB, free: 13.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.4022, allocations: 11.98 kB / 1.363 GB, free: 13.81 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.97e-05/0.4023, allocations: 100.6 kB / 1.363 GB, free: 13.71 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4023, allocations: 0 / 1.363 GB, free: 13.71 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003477/0.4027, allocations: 71.83 kB / 1.363 GB, free: 13.64 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.000776/0.4034, allocations: 0.8487 MB / 1.364 GB, free: 12.77 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005088/0.4039, allocations: 275.7 kB / 1.364 GB, free: 12.48 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4039, allocations: 0 / 1.364 GB, free: 12.48 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.4041, allocations: 83.91 kB / 1.364 GB, free: 12.4 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.4045, allocations: 32.42 kB / 1.364 GB, free: 12.37 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003154/0.4076, allocations: 2.371 MB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.408, allocations: 0.7441 MB / 1.367 GB, free: 9.109 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.408e-05/0.4081, allocations: 29.92 kB / 1.367 GB, free: 9.082 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.4082, allocations: 67.36 kB / 1.367 GB, free: 9.016 MB / 1.061 GB Notification: Performance of SimCode: time 9.71e-07/0.4082, allocations: 0 / 1.367 GB, free: 9.016 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03577/0.444, allocations: 4.968 MB / 1.372 GB, free: 4.184 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.23, allocations: 1.312 kB / 1.372 GB, free: 4.184 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] 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.39877472491935]