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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001528, allocations: 109.5 kB / 17.08 MB, free: 6.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 194.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.873/2.873, allocations: 489.3 MB / 0.7687 GB, free: 3.953 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sta.y1|sta.y1_actual",fileNamePrefix="Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 71.88 kB / 1.103 GB, free: 0.8281 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9451/0.9471, allocations: 163.8 MB / 1.263 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003035/0.9502, allocations: 1.767 MB / 1.264 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.9514, allocations: 0.6767 MB / 1.265 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.9515, allocations: 3.562 kB / 1.265 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.9517, allocations: 26.53 kB / 1.265 GB, free: 6.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.884e-05/0.9517, allocations: 29.38 kB / 1.265 GB, free: 6.281 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007055/0.9525, allocations: 255.9 kB / 1.265 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000494/0.953, allocations: 406.9 kB / 1.266 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.9533, allocations: 230.9 kB / 1.266 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.9534, allocations: 133.5 kB / 1.266 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001971/0.9536, allocations: 135.6 kB / 1.266 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.195e-05/0.9537, allocations: 43.44 kB / 1.266 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.9539, allocations: 59.09 kB / 1.266 GB, free: 5.695 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 7.885e-05/0.9539, allocations: 73.86 kB / 1.266 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.9541, allocations: 145.2 kB / 1.266 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005418/0.9546, allocations: 416.5 kB / 1.267 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.9547, allocations: 0 / 1.267 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.224e-06/0.9547, allocations: 0.5938 kB / 1.267 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.9547, allocations: 3.938 kB / 1.267 GB, free: 5.375 MB / 0.9981 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.0007501/0.9554, allocations: 0.5578 MB / 1.267 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.9555, allocations: 9.688 kB / 1.267 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.908e-05/0.9556, allocations: 28.67 kB / 1.267 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.9559, allocations: 258 kB / 1.268 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.9559, allocations: 31.91 kB / 1.268 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-05/0.956, allocations: 30.69 kB / 1.268 GB, free: 4.594 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.9565, allocations: 275.4 kB / 1.268 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.9565, allocations: 0.9375 kB / 1.268 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.9566, allocations: 15.19 kB / 1.268 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.9566, allocations: 5.531 kB / 1.268 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.957, allocations: 187.4 kB / 1.268 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001105/0.9581, allocations: 0.8532 MB / 1.269 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.9584, allocations: 182.6 kB / 1.269 GB, free: 3.684 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.9586, allocations: 99.91 kB / 1.269 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.9586, allocations: 3.094 kB / 1.269 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.9588, allocations: 145.3 kB / 1.269 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=27): time 1.573e-06/0.9589, allocations: 4.906 kB / 1.269 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of matching and sorting (n=27): time 0.0005464/0.9594, allocations: 275.7 kB / 1.27 GB, free: 3.43 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.9594, allocations: 68.09 kB / 1.27 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.9596, allocations: 160.5 kB / 1.27 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.9596, allocations: 40.42 kB / 1.27 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.9597, allocations: 133.6 kB / 1.27 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.9597, allocations: 79.52 kB / 1.27 GB, free: 3.008 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.9599, allocations: 89.88 kB / 1.27 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.9599, allocations: 331.6 kB / 1.271 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.9601, allocations: 99.28 kB / 1.271 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.9604, allocations: 170 kB / 1.271 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.9607, allocations: 243.8 kB / 1.271 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.9607, allocations: 0.5938 kB / 1.271 GB, free: 2.312 MB / 0.9981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005547/0.9612, allocations: 357.9 kB / 1.271 GB, free: 2.137 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.343e-05/0.9613, allocations: 39.3 kB / 1.271 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.9613, allocations: 4.844 kB / 1.271 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.9613, allocations: 4.156 kB / 1.271 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.9615, allocations: 29.83 kB / 1.271 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.9615, allocations: 7.625 kB / 1.271 GB, free: 2.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.9617, allocations: 46.03 kB / 1.271 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.9618, allocations: 20.28 kB / 1.272 GB, free: 2.07 MB / 0.9981 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.0001412/0.9619, allocations: 175.2 kB / 1.272 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.962, allocations: 18.78 kB / 1.272 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004064/0.9624, allocations: 229.7 kB / 1.272 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.9624, allocations: 2.719 kB / 1.272 GB, free: 1.809 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.9624, allocations: 7.922 kB / 1.272 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.9624, allocations: 4.531 kB / 1.272 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007597/0.9632, allocations: 0.6469 MB / 1.273 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9632, allocations: 0 / 1.273 GB, free: 1.344 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.588e-05/0.9633, allocations: 19.56 kB / 1.273 GB, free: 1.34 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.9633, allocations: 1.344 kB / 1.273 GB, free: 1.34 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.9633, allocations: 10.77 kB / 1.273 GB, free: 1.332 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.9633, allocations: 5.953 kB / 1.273 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.9633, allocations: 0.875 kB / 1.273 GB, free: 1.328 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003454/0.9637, allocations: 326.8 kB / 1.273 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.789e-05/0.9637, allocations: 93.58 kB / 1.273 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.828e-05/0.9638, allocations: 6.25 kB / 1.273 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.458e-05/0.9639, allocations: 9.094 kB / 1.273 GB, free: 1.004 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.9639, allocations: 25.53 kB / 1.273 GB, free: 1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.964, allocations: 6.547 kB / 1.273 GB, free: 1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.142e-05/0.964, allocations: 108.2 kB / 1.273 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.964, allocations: 0 / 1.273 GB, free: 0.9141 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003472/0.9644, allocations: 72.97 kB / 1.273 GB, free: 0.8906 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$cse1,$cse2,$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 (29): * Single equations (assignments): 24 * 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.0001593/0.9646, allocations: 125.6 kB / 1.273 GB, free: 0.7812 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004921/0.9651, allocations: 301.1 kB / 1.274 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.9651, allocations: 0.5312 kB / 1.274 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.9652, allocations: 102.4 kB / 1.274 GB, free: 0.6094 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.9656, allocations: 36.19 kB / 1.274 GB, free: 0.5898 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006147/0.9662, allocations: 416 kB / 1.274 GB, free: 320 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.9665, allocations: 0.7448 MB / 1.275 GB, free: 15.61 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.872e-05/0.9666, allocations: 26.78 kB / 1.275 GB, free: 15.6 MB / 1.014 GB Notification: Performance of SimCode: time 2.4e-07/0.9666, allocations: 0 / 1.275 GB, free: 15.6 MB / 1.014 GB Notification: Performance of Templates: time 0.00599/0.9726, allocations: 3.122 MB / 1.278 GB, free: 15.23 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 800] 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_2/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: 11.418329898966476]