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.0007902/0.0007902, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007944/0.0007944, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8454/0.8454, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.74/1.74, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 0.9996 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.955e-05/2.085e-05, allocations: 6.219 kB / 0.9996 GB, free: 13.5 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002161/0.002181, allocations: 1.754 MB / 1.001 GB, free: 11.73 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0009453/0.003127, allocations: 0.6931 MB / 1.002 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.865e-05/0.003215, allocations: 7.938 kB / 1.002 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.003338, allocations: 31.67 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.968e-05/0.003388, allocations: 23.75 kB / 1.002 GB, free: 10.98 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.003975, allocations: 266.6 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.004326, allocations: 411.4 kB / 1.003 GB, free: 10.32 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.004564, allocations: 176.1 kB / 1.003 GB, free: 10.15 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.004726, allocations: 211.6 kB / 1.003 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.00486, allocations: 103.7 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.019e-05/0.004901, allocations: 36 kB / 1.003 GB, free: 9.805 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 9.062e-05/0.004991, allocations: 59.97 kB / 1.003 GB, free: 9.746 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.998e-05/0.005051, allocations: 71.81 kB / 1.003 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 8.444e-05/0.005136, allocations: 99.8 kB / 1.003 GB, free: 9.578 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0006197/0.005755, allocations: 450.6 kB / 1.004 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.005759, allocations: 0 / 1.004 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.603e-06/0.005761, allocations: 3.938 kB / 1.004 GB, free: 9.133 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.005767, allocations: 0 / 1.004 GB, free: 9.133 MB / 0.9636 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.0005904/0.006358, allocations: 486.8 kB / 1.004 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.006396, allocations: 16.75 kB / 1.004 GB, free: 8.598 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.00644, allocations: 54.73 kB / 1.004 GB, free: 8.535 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/0.006623, allocations: 44.77 kB / 1.004 GB, free: 8.492 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.006932, allocations: 209.4 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.006961, allocations: 20.88 kB / 1.005 GB, free: 8.238 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.006996, allocations: 32.38 kB / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.007328, allocations: 275.3 kB / 1.005 GB, free: 7.93 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.007339, allocations: 4.125 kB / 1.005 GB, free: 7.926 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.007358, allocations: 8.375 kB / 1.005 GB, free: 7.918 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.007368, allocations: 16.12 kB / 1.005 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/0.007591, allocations: 185.9 kB / 1.005 GB, free: 7.723 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000756/0.008347, allocations: 0.7294 MB / 1.006 GB, free: 6.945 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.008563, allocations: 162.8 kB / 1.006 GB, free: 6.777 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.656e-05/0.00865, allocations: 76.83 kB / 1.006 GB, free: 6.699 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.008668, allocations: 4 kB / 1.006 GB, free: 6.695 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001795/0.008847, allocations: 153 kB / 1.006 GB, free: 6.531 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=27): time 2.274e-06/0.00885, allocations: 0 / 1.006 GB, free: 6.531 MB / 0.9636 GB Notification: Performance of matching and sorting (n=27): time 0.0003499/0.0092, allocations: 275.5 kB / 1.007 GB, free: 6.258 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.009238, allocations: 59.41 kB / 1.007 GB, free: 6.188 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.492e-05/0.009333, allocations: 157.5 kB / 1.007 GB, free: 6.027 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.009361, allocations: 41.7 kB / 1.007 GB, free: 5.98 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.337e-05/0.009434, allocations: 148.8 kB / 1.007 GB, free: 5.832 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 3.452e-05/0.009469, allocations: 67.47 kB / 1.007 GB, free: 5.766 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.009556, allocations: 93.62 kB / 1.007 GB, free: 5.668 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.557e-05/0.009641, allocations: 326.8 kB / 1.007 GB, free: 5.34 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.009782, allocations: 129.7 kB / 1.008 GB, free: 5.207 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.009935, allocations: 192.5 kB / 1.008 GB, free: 4.984 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.01016, allocations: 259.5 kB / 1.008 GB, free: 4.703 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01016, allocations: 0 / 1.008 GB, free: 4.703 MB / 0.9636 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003721/0.01053, allocations: 381.9 kB / 1.008 GB, free: 4.312 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 4.092e-05/0.01058, allocations: 45.91 kB / 1.008 GB, free: 4.262 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.01059, allocations: 4 kB / 1.008 GB, free: 4.258 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.0106, allocations: 3.938 kB / 1.008 GB, free: 4.254 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.787e-05/0.0107, allocations: 27.92 kB / 1.008 GB, free: 4.227 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.0107, allocations: 4 kB / 1.008 GB, free: 4.223 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.01084, allocations: 51.8 kB / 1.008 GB, free: 4.172 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.01086, allocations: 16 kB / 1.008 GB, free: 4.156 MB / 0.9636 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.0001264/0.01098, allocations: 173.7 kB / 1.009 GB, free: 3.977 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.011, allocations: 15.91 kB / 1.009 GB, free: 3.961 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.01104, allocations: 17.97 kB / 1.009 GB, free: 3.938 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.01104, allocations: 11.88 kB / 1.009 GB, free: 3.926 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.403e-06/0.01105, allocations: 0 / 1.009 GB, free: 3.926 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01105, allocations: 3.984 kB / 1.009 GB, free: 3.922 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005457/0.0116, allocations: 0.5728 MB / 1.009 GB, free: 3.297 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.0116, allocations: 0 / 1.009 GB, free: 3.297 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.01165, allocations: 12 kB / 1.009 GB, free: 3.285 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.01165, allocations: 8 kB / 1.009 GB, free: 3.277 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.01166, allocations: 7.984 kB / 1.009 GB, free: 3.27 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.01166, allocations: 4 kB / 1.009 GB, free: 3.266 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.01167, allocations: 7.938 kB / 1.009 GB, free: 3.258 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002132/0.01188, allocations: 312.2 kB / 1.01 GB, free: 2.938 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.216e-05/0.01189, allocations: 15.91 kB / 1.01 GB, free: 2.922 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.01191, allocations: 4 kB / 1.01 GB, free: 2.918 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.041e-05/0.01196, allocations: 11.98 kB / 1.01 GB, free: 2.906 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.01202, allocations: 27.95 kB / 1.01 GB, free: 2.879 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.01203, allocations: 11.98 kB / 1.01 GB, free: 2.867 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.552e-05/0.01208, allocations: 111.2 kB / 1.01 GB, free: 2.758 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.01208, allocations: 0 / 1.01 GB, free: 2.758 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002044/0.01228, allocations: 67.78 kB / 1.01 GB, free: 2.691 MB / 0.9636 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.0007422/0.01303, allocations: 0.845 MB / 1.011 GB, free: 1.82 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.01335, allocations: 309.4 kB / 1.011 GB, free: 1.5 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01336, allocations: 0 / 1.011 GB, free: 1.5 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 9.333e-05/0.01345, allocations: 84.75 kB / 1.011 GB, free: 1.418 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.01369, allocations: 30.39 kB / 1.011 GB, free: 1.391 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.0156, allocations: 2.499 MB / 1.013 GB, free: 14.74 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.131e-05/0.01569, allocations: 133.6 kB / 1.014 GB, free: 14.59 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 6.18e-05/0.01575, allocations: 21.95 kB / 1.014 GB, free: 14.57 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.01583, allocations: 68.47 kB / 1.014 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of SimCode: time 1.062e-06/0.01583, allocations: 0 / 1.014 GB, free: 14.5 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02003/0.03586, allocations: 5.558 MB / 1.019 GB, free: 9.117 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.569/6.604, allocations: 18.88 kB / 1.019 GB, free: 9.102 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 10.680483479052782]