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.001401/0.001401, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.0015/0.0015, allocations: 214.2 kB / 22.24 MB, free: 5.262 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.72/1.72, allocations: 230.6 MB / 256 MB, free: 7.828 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.396/3.396, allocations: 0.4892 GB / 0.7943 GB, free: 35.78 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_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.002109/0.002109, allocations: 71.14 kB / 1.153 GB, free: 25.87 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4216/0.4237, allocations: 176.1 MB / 1.325 GB, free: 2.449 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003595/0.4273, allocations: 1.75 MB / 1.327 GB, free: 0.6914 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.4287, allocations: 0.6936 MB / 1.327 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.4288, allocations: 7.938 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.429, allocations: 31.67 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.367e-05/0.4291, allocations: 31.66 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007558/0.4298, allocations: 258 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004942/0.4303, allocations: 407.4 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003087/0.4306, allocations: 179.6 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.4308, allocations: 139.6 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.431, allocations: 123.5 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.971e-05/0.4311, allocations: 40 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.4312, allocations: 48 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.764e-05/0.4313, allocations: 75.81 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.4314, allocations: 119.5 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005152/0.432, allocations: 418.5 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.432, allocations: 0 / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.432, allocations: 4 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.432, allocations: 0 / 1.329 GB, free: 14.15 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.0008926/0.4329, allocations: 482.7 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4329, allocations: 16.03 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.668e-05/0.433, allocations: 62.72 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.4333, allocations: 36.78 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004082/0.4337, allocations: 210.1 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.4337, allocations: 28.86 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.4338, allocations: 32.38 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.4343, allocations: 263.3 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.4343, allocations: 7.938 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.4343, allocations: 8 kB / 1.33 GB, free: 12.95 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4343, allocations: 12 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003426/0.4347, allocations: 185.8 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.4358, allocations: 0.7295 MB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003217/0.4362, allocations: 164.8 kB / 1.331 GB, free: 11.81 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.4363, allocations: 76.83 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.4363, allocations: 4 kB / 1.331 GB, free: 11.73 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.4366, allocations: 153 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.673e-06/0.4366, allocations: 0 / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.000525/0.4371, allocations: 267.6 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.4372, allocations: 59.39 kB / 1.332 GB, free: 11.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.4374, allocations: 161.6 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.4374, allocations: 41.7 kB / 1.332 GB, free: 11.01 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.4375, allocations: 140.8 kB / 1.332 GB, free: 10.87 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.569e-05/0.4376, allocations: 75.42 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/0.4377, allocations: 89.67 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001506/0.4379, allocations: 326.8 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.4381, allocations: 125.7 kB / 1.333 GB, free: 10.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.4384, allocations: 201.2 kB / 1.333 GB, free: 10.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.4387, allocations: 252.8 kB / 1.333 GB, free: 9.738 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4387, allocations: 0 / 1.333 GB, free: 9.738 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006164/0.4393, allocations: 386 kB / 1.334 GB, free: 9.344 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.215e-05/0.4394, allocations: 45.69 kB / 1.334 GB, free: 9.293 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.4394, allocations: 4 kB / 1.334 GB, free: 9.289 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.4394, allocations: 3.938 kB / 1.334 GB, free: 9.285 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.4396, allocations: 27.92 kB / 1.334 GB, free: 9.258 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.4396, allocations: 7.938 kB / 1.334 GB, free: 9.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.4398, allocations: 51.81 kB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.4398, allocations: 15.98 kB / 1.334 GB, free: 9.184 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.0001911/0.44, allocations: 174.2 kB / 1.334 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.192e-05/0.4401, allocations: 19.84 kB / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.354e-05/0.4401, allocations: 17.97 kB / 1.334 GB, free: 8.969 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4401, allocations: 4 kB / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4401, allocations: 0 / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4401, allocations: 0 / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008716/0.441, allocations: 0.5806 MB / 1.335 GB, free: 8.332 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.441, allocations: 0 / 1.335 GB, free: 8.332 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-05/0.4411, allocations: 19.92 kB / 1.335 GB, free: 8.312 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.4411, allocations: 8 kB / 1.335 GB, free: 8.305 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.4411, allocations: 4 kB / 1.335 GB, free: 8.301 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.4411, allocations: 7.984 kB / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4411, allocations: 0 / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003864/0.4415, allocations: 308 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.502e-05/0.4415, allocations: 19.89 kB / 1.335 GB, free: 7.957 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.4416, allocations: 7.938 kB / 1.335 GB, free: 7.949 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.255e-05/0.4416, allocations: 11.98 kB / 1.335 GB, free: 7.938 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.856e-05/0.4417, allocations: 23.97 kB / 1.335 GB, free: 7.914 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.905e-05/0.4418, allocations: 11.98 kB / 1.335 GB, free: 7.902 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.025e-05/0.4418, allocations: 108.7 kB / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4418, allocations: 0 / 1.335 GB, free: 7.797 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003264/0.4422, allocations: 67.78 kB / 1.335 GB, free: 7.73 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.0007841/0.4429, allocations: 0.8449 MB / 1.336 GB, free: 6.855 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005102/0.4435, allocations: 314.1 kB / 1.336 GB, free: 6.531 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4435, allocations: 0 / 1.336 GB, free: 6.531 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.4436, allocations: 84.33 kB / 1.336 GB, free: 6.449 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003457/0.444, allocations: 41.38 kB / 1.336 GB, free: 6.41 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.4472, allocations: 2.491 MB / 1.339 GB, free: 3.762 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001579/0.4473, allocations: 133.6 kB / 1.339 GB, free: 3.609 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.554e-05/0.4474, allocations: 21.94 kB / 1.339 GB, free: 3.586 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.4475, allocations: 75.41 kB / 1.339 GB, free: 3.512 MB / 1.029 GB Notification: Performance of SimCode: time 9.42e-07/0.4475, allocations: 0 / 1.339 GB, free: 3.512 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03776/0.4853, allocations: 5.441 MB / 1.344 GB, free: 14.25 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.27, allocations: 12.05 kB / 1.344 GB, free: 14.24 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] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.65042161103338]