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.001702/0.001702, 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.002115/0.002115, 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 8.02 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.343/3.343, allocations: 0.505 GB / 0.8101 GB, free: 22.11 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.002044/0.002044, allocations: 75.58 kB / 1.177 GB, free: 17.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.381/0.3831, allocations: 180.2 MB / 1.353 GB, free: 8.508 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003536/0.3866, allocations: 1.794 MB / 1.355 GB, free: 6.703 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.388, allocations: 0.7135 MB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.3882, allocations: 4 kB / 1.355 GB, free: 5.984 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.3883, allocations: 31.67 kB / 1.355 GB, free: 5.953 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.965e-05/0.3884, allocations: 23.73 kB / 1.355 GB, free: 5.93 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007707/0.3892, allocations: 269.1 kB / 1.356 GB, free: 5.668 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0005059/0.3897, allocations: 407.4 kB / 1.356 GB, free: 5.27 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003125/0.39, allocations: 179.2 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.3901, allocations: 143.7 kB / 1.356 GB, free: 4.949 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.3903, allocations: 135.5 kB / 1.356 GB, free: 4.816 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.973e-05/0.3904, allocations: 40 kB / 1.356 GB, free: 4.777 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.3905, allocations: 63.92 kB / 1.357 GB, free: 4.715 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.943e-05/0.3906, allocations: 67.83 kB / 1.357 GB, free: 4.648 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001557/0.3908, allocations: 139.4 kB / 1.357 GB, free: 4.512 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.3912, allocations: 422.5 kB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3912, allocations: 0 / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3913, allocations: 0 / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.3913, allocations: 0 / 1.357 GB, free: 4.098 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.0008271/0.3921, allocations: 498.6 kB / 1.358 GB, free: 3.574 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3921, allocations: 8.031 kB / 1.358 GB, free: 3.566 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.733e-05/0.3922, allocations: 58.72 kB / 1.358 GB, free: 3.5 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.3924, allocations: 40.73 kB / 1.358 GB, free: 3.461 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.3928, allocations: 207.9 kB / 1.358 GB, free: 3.234 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.3929, allocations: 28.88 kB / 1.358 GB, free: 3.207 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.237e-05/0.3929, allocations: 36.3 kB / 1.358 GB, free: 3.172 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.3934, allocations: 271.3 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3934, allocations: 3.938 kB / 1.358 GB, free: 2.891 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.3934, allocations: 8 kB / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.3935, allocations: 8 kB / 1.358 GB, free: 2.875 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003465/0.3938, allocations: 185.8 kB / 1.358 GB, free: 2.695 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.395, allocations: 0.8191 MB / 1.359 GB, free: 1.828 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.3953, allocations: 158.9 kB / 1.359 GB, free: 1.664 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.3954, allocations: 76.83 kB / 1.359 GB, free: 1.586 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.3954, allocations: 11.92 kB / 1.359 GB, free: 1.574 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.3957, allocations: 146.3 kB / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of pre-optimization done (n=27): time 1.533e-06/0.3957, allocations: 0 / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of matching and sorting (n=27): time 0.0005183/0.3962, allocations: 263.6 kB / 1.36 GB, free: 1.156 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.3963, allocations: 63.41 kB / 1.36 GB, free: 1.082 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.3964, allocations: 167.4 kB / 1.36 GB, free: 0.9102 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.3965, allocations: 41.69 kB / 1.36 GB, free: 0.8633 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3966, allocations: 132.9 kB / 1.36 GB, free: 0.7266 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.931e-05/0.3967, allocations: 75.42 kB / 1.36 GB, free: 0.6523 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.3968, allocations: 89.66 kB / 1.36 GB, free: 0.5586 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3969, allocations: 338.8 kB / 1.361 GB, free: 224 kB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.3971, allocations: 91.95 kB / 1.361 GB, free: 132 kB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.3974, allocations: 166.8 kB / 1.361 GB, free: 15.94 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3977, allocations: 253.4 kB / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3977, allocations: 0 / 1.361 GB, free: 15.66 MB / 1.061 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005719/0.3983, allocations: 356.2 kB / 1.362 GB, free: 15.3 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.3984, allocations: 33.7 kB / 1.362 GB, free: 15.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3984, allocations: 7.984 kB / 1.362 GB, free: 15.25 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.3984, allocations: 7.938 kB / 1.362 GB, free: 15.25 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3985, allocations: 31.92 kB / 1.362 GB, free: 15.21 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3985, allocations: 4 kB / 1.362 GB, free: 15.21 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.3987, allocations: 47.97 kB / 1.362 GB, free: 15.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.3988, allocations: 20 kB / 1.362 GB, free: 15.14 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.0001776/0.399, allocations: 173.6 kB / 1.362 GB, free: 14.97 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.399, allocations: 19.84 kB / 1.362 GB, free: 14.95 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.548e-05/0.399, allocations: 25.95 kB / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.399, allocations: 0 / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.399, allocations: 0 / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3991, allocations: 4 kB / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000844/0.3999, allocations: 0.6029 MB / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3999, allocations: 0 / 1.362 GB, free: 14.26 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.263e-05/0.4, allocations: 19.92 kB / 1.363 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.4, allocations: 4 kB / 1.363 GB, free: 14.24 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.4, allocations: 7.938 kB / 1.363 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4, allocations: 0 / 1.363 GB, free: 14.23 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4, allocations: 7.984 kB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.4004, allocations: 313.2 kB / 1.363 GB, free: 13.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.543e-05/0.4004, allocations: 19.83 kB / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.4004, allocations: 8 kB / 1.363 GB, free: 13.88 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.026e-05/0.4005, allocations: 4 kB / 1.363 GB, free: 13.87 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.4006, allocations: 35.89 kB / 1.363 GB, free: 13.84 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.4006, allocations: 4 kB / 1.363 GB, free: 13.83 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.27e-05/0.4007, allocations: 108.9 kB / 1.363 GB, free: 13.73 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.4007, allocations: 0 / 1.363 GB, free: 13.73 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000326/0.401, allocations: 67.81 kB / 1.363 GB, free: 13.66 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.0007287/0.4017, allocations: 0.8526 MB / 1.364 GB, free: 12.78 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0004744/0.4022, allocations: 276.1 kB / 1.364 GB, free: 12.5 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4022, allocations: 4.125 kB / 1.364 GB, free: 12.49 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.4024, allocations: 79.91 kB / 1.364 GB, free: 12.41 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.4027, allocations: 23.98 kB / 1.364 GB, free: 12.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.4057, allocations: 2.372 MB / 1.367 GB, free: 9.895 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.4061, allocations: 0.7402 MB / 1.367 GB, free: 9.129 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.454e-05/0.4062, allocations: 25.94 kB / 1.367 GB, free: 9.105 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.4063, allocations: 63.42 kB / 1.367 GB, free: 9.043 MB / 1.061 GB Notification: Performance of SimCode: time 6.71e-07/0.4063, allocations: 0 / 1.367 GB, free: 9.043 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03514/0.4414, allocations: 4.972 MB / 1.372 GB, free: 4.211 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.75, allocations: 13.94 kB / 1.372 GB, free: 4.199 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 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.csv","/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] "Error: Could not read variable sta.y1 in file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1 from file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.y1_actual in file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1_actual from file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.86268901099993]