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.001522/0.001522, 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.001927/0.001927, allocations: 215.2 kB / 22.25 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.586/1.586, allocations: 230.6 MB / 256 MB, free: 8.047 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.259/3.259, allocations: 0.49 GB / 0.7951 GB, free: 33.41 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.003156/0.003156, allocations: 70.06 kB / 1.154 GB, free: 25.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.4518, allocations: 176.1 MB / 1.326 GB, free: 1.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.00319/0.455, allocations: 1.793 MB / 1.328 GB, free: 160 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.4563, allocations: 0.7129 MB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.41e-05/0.4564, allocations: 11.94 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.4566, allocations: 31.67 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.133e-05/0.4566, allocations: 27.73 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.4574, allocations: 262.7 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0004854/0.4579, allocations: 407.4 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.4582, allocations: 189.4 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.4583, allocations: 139.6 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002035/0.4585, allocations: 135.5 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.239e-05/0.4586, allocations: 40 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.4587, allocations: 59.98 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.105e-05/0.4588, allocations: 71.81 kB / 1.33 GB, free: 14.09 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.459, allocations: 147.4 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004914/0.4594, allocations: 418.5 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4595, allocations: 0 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.512e-06/0.4595, allocations: 0 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4595, allocations: 4 kB / 1.33 GB, free: 13.54 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.0008194/0.4603, allocations: 487.8 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4603, allocations: 12.03 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.228e-05/0.4604, allocations: 62.72 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002586/0.4607, allocations: 36.78 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000384/0.461, allocations: 206.2 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.4611, allocations: 24.86 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.468e-05/0.4611, allocations: 36.38 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/0.4616, allocations: 275.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.4616, allocations: 3.938 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.549e-05/0.4616, allocations: 12 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.4617, allocations: 8 kB / 1.331 GB, free: 12.31 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003423/0.462, allocations: 181.9 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.4632, allocations: 0.8152 MB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.4635, allocations: 158.7 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/0.4637, allocations: 76.92 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.4637, allocations: 4 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.464, allocations: 149.1 kB / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.464, allocations: 0 / 1.333 GB, free: 10.87 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.0005078/0.4645, allocations: 271.5 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.4645, allocations: 55.41 kB / 1.333 GB, free: 10.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.4647, allocations: 161.6 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.4647, allocations: 45.7 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.4648, allocations: 140.8 kB / 1.333 GB, free: 10.17 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.584e-05/0.4649, allocations: 67.47 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.465, allocations: 97.62 kB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4652, allocations: 326.8 kB / 1.334 GB, free: 9.676 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.4654, allocations: 95.95 kB / 1.334 GB, free: 9.582 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.4656, allocations: 159.6 kB / 1.334 GB, free: 9.398 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.466, allocations: 252.8 kB / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.466, allocations: 0 / 1.334 GB, free: 9.121 MB / 1.029 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005814/0.4666, allocations: 364.1 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.703e-05/0.4666, allocations: 43.72 kB / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.4666, allocations: 7.984 kB / 1.335 GB, free: 8.699 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.4667, allocations: 4 kB / 1.335 GB, free: 8.695 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.4668, allocations: 23.92 kB / 1.335 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.4668, allocations: 4 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.467, allocations: 56.03 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.4671, allocations: 19.98 kB / 1.335 GB, free: 8.594 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.0001942/0.4673, allocations: 174.2 kB / 1.335 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.4673, allocations: 19.84 kB / 1.335 GB, free: 8.395 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.384e-05/0.4673, allocations: 21.95 kB / 1.335 GB, free: 8.371 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-06/0.4674, allocations: 4 kB / 1.335 GB, free: 8.367 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4674, allocations: 4 kB / 1.335 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.4674, allocations: 0 / 1.335 GB, free: 8.363 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008447/0.4682, allocations: 0.5913 MB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4682, allocations: 0 / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.888e-05/0.4683, allocations: 19.98 kB / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4683, allocations: 0 / 1.336 GB, free: 7.699 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.4683, allocations: 4 kB / 1.336 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4683, allocations: 0 / 1.336 GB, free: 7.695 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4683, allocations: 4 kB / 1.336 GB, free: 7.691 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003892/0.4687, allocations: 317.2 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.027e-05/0.4687, allocations: 19.91 kB / 1.336 GB, free: 7.348 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.4687, allocations: 4 kB / 1.336 GB, free: 7.344 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.236e-05/0.4688, allocations: 11.94 kB / 1.336 GB, free: 7.332 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.24e-05/0.4689, allocations: 31.89 kB / 1.336 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.4689, allocations: 8 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.454e-05/0.469, allocations: 107.2 kB / 1.336 GB, free: 7.188 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.469, allocations: 4 kB / 1.336 GB, free: 7.184 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003295/0.4693, allocations: 71.72 kB / 1.336 GB, free: 7.113 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.0007346/0.4701, allocations: 0.8488 MB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000476/0.4706, allocations: 275.9 kB / 1.337 GB, free: 5.953 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4706, allocations: 0 / 1.337 GB, free: 5.953 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.4707, allocations: 87.84 kB / 1.337 GB, free: 5.867 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.471, allocations: 23.98 kB / 1.337 GB, free: 5.844 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00301/0.474, allocations: 2.383 MB / 1.34 GB, free: 3.332 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.4745, allocations: 0.7402 MB / 1.34 GB, free: 2.566 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.306e-05/0.4746, allocations: 21.95 kB / 1.34 GB, free: 2.547 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.4747, allocations: 63.41 kB / 1.34 GB, free: 2.484 MB / 1.029 GB Notification: Performance of SimCode: time 1.042e-06/0.4747, allocations: 0 / 1.34 GB, free: 2.484 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.5086, allocations: 4.962 MB / 1.345 GB, free: 13.66 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.63, allocations: 13.64 kB / 1.345 GB, free: 13.66 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 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.csv","/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] "Error: Could not read variable sta.y1 in file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1 from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.y1_actual in file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1_actual from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.70647037799972]