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.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.00143/0.00143, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.001597/0.001597, allocations: 191.6 kB / 22.11 MB, free: 4.223 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.617/1.617, allocations: 225.6 MB / 250.8 MB, free: 2.887 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.995/2.995, allocations: 495.8 MB / 0.783 GB, free: 12.28 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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_12_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_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 71.89 kB / 1.137 GB, free: 12.22 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 1.499/1.501, allocations: 173.6 MB / 1.307 GB, free: 33.73 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003818/1.505, allocations: 1.791 MB / 1.308 GB, free: 32.49 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001554/1.506, allocations: 0.6936 MB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/1.506, allocations: 6.719 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 0.0002048/1.507, allocations: 29.64 kB / 1.309 GB, free: 31.99 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 8.025e-05/1.507, allocations: 25.91 kB / 1.309 GB, free: 31.97 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008941/1.508, allocations: 269.2 kB / 1.309 GB, free: 31.82 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 0.0005268/1.508, allocations: 407.8 kB / 1.31 GB, free: 31.63 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003712/1.509, allocations: 180.3 kB / 1.31 GB, free: 31.55 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/1.509, allocations: 139.8 kB / 1.31 GB, free: 31.47 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/1.509, allocations: 142.3 kB / 1.31 GB, free: 31.39 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 6.546e-05/1.509, allocations: 40.22 kB / 1.31 GB, free: 31.39 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/1.509, allocations: 59.97 kB / 1.31 GB, free: 31.39 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 9.401e-05/1.509, allocations: 71.45 kB / 1.31 GB, free: 31.34 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 0.00016/1.509, allocations: 132.9 kB / 1.311 GB, free: 31.25 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004932/1.51, allocations: 422.7 kB / 1.311 GB, free: 31.08 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.51, allocations: 0 / 1.311 GB, free: 31.08 MB / 1.061 GB
Notification: Performance of FrontEnd: time 2.074e-06/1.51, allocations: 0 / 1.311 GB, free: 31.08 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 9.057e-06/1.51, allocations: 0 / 1.311 GB, free: 31.08 MB / 1.061 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.0009094/1.511, allocations: 498.9 kB / 1.311 GB, free: 30.66 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/1.511, allocations: 8.812 kB / 1.311 GB, free: 30.66 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/1.511, allocations: 29.86 kB / 1.312 GB, free: 30.65 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/1.511, allocations: 204.4 kB / 1.312 GB, free: 30.47 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/1.511, allocations: 23.25 kB / 1.312 GB, free: 30.46 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/1.511, allocations: 36.05 kB / 1.312 GB, free: 30.45 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/1.512, allocations: 274 kB / 1.312 GB, free: 30.31 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/1.512, allocations: 192 / 1.312 GB, free: 30.31 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/1.512, allocations: 18.69 kB / 1.312 GB, free: 30.3 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/1.512, allocations: 5.844 kB / 1.312 GB, free: 30.3 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/1.512, allocations: 185.6 kB / 1.312 GB, free: 30.23 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/1.513, allocations: 0.8273 MB / 1.313 GB, free: 29.65 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/1.514, allocations: 160.5 kB / 1.313 GB, free: 29.57 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/1.514, allocations: 88.42 kB / 1.313 GB, free: 29.53 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/1.514, allocations: 2.906 kB / 1.313 GB, free: 29.53 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/1.514, allocations: 136.4 kB / 1.313 GB, free: 29.45 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=27): time 1.673e-06/1.514, allocations: 0 / 1.313 GB, free: 29.45 MB / 1.061 GB
Notification: Performance of matching and sorting (n=27): time 0.0005512/1.515, allocations: 276.3 kB / 1.314 GB, free: 29.34 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/1.515, allocations: 64.25 kB / 1.314 GB, free: 29.27 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/1.515, allocations: 174.1 kB / 1.314 GB, free: 29.13 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 3.986e-05/1.515, allocations: 39.23 kB / 1.314 GB, free: 29.09 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/1.515, allocations: 138 kB / 1.314 GB, free: 28.97 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/1.515, allocations: 70.39 kB / 1.314 GB, free: 28.91 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/1.515, allocations: 89.12 kB / 1.314 GB, free: 28.87 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 7.285e-05/1.515, allocations: 331.2 kB / 1.315 GB, free: 28.55 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/1.515, allocations: 101.5 kB / 1.315 GB, free: 28.51 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/1.516, allocations: 160.4 kB / 1.315 GB, free: 28.4 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/1.516, allocations: 251 kB / 1.315 GB, free: 28.22 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/1.516, allocations: 2.531 kB / 1.315 GB, free: 28.22 MB / 1.061 GB
Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005317/1.516, allocations: 352.2 kB / 1.315 GB, free: 28.05 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/1.516, allocations: 44.58 kB / 1.315 GB, free: 28.01 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.516, allocations: 7.094 kB / 1.315 GB, free: 28.01 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/1.516, allocations: 2.938 kB / 1.315 GB, free: 28.01 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/1.517, allocations: 28.02 kB / 1.315 GB, free: 28 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/1.517, allocations: 2.906 kB / 1.315 GB, free: 28 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/1.517, allocations: 56.2 kB / 1.315 GB, free: 27.98 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.02e-05/1.517, allocations: 14.38 kB / 1.315 GB, free: 27.98 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.000148/1.517, allocations: 179.4 kB / 1.316 GB, free: 27.82 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/1.517, allocations: 17.66 kB / 1.316 GB, free: 27.81 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000371/1.517, allocations: 247.8 kB / 1.316 GB, free: 27.69 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/1.517, allocations: 6.297 kB / 1.316 GB, free: 27.69 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/1.517, allocations: 0 / 1.316 GB, free: 27.69 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/1.517, allocations: 0 / 1.316 GB, free: 27.69 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007006/1.518, allocations: 0.6201 MB / 1.317 GB, free: 27.27 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.518, allocations: 0 / 1.317 GB, free: 27.27 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/1.518, allocations: 13.84 kB / 1.317 GB, free: 27.27 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/1.518, allocations: 3.281 kB / 1.317 GB, free: 27.27 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/1.518, allocations: 6.438 kB / 1.317 GB, free: 27.26 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/1.518, allocations: 2.75 kB / 1.317 GB, free: 27.26 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/1.518, allocations: 7.938 kB / 1.317 GB, free: 27.25 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/1.519, allocations: 316.4 kB / 1.317 GB, free: 27.05 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.015e-05/1.519, allocations: 20.91 kB / 1.317 GB, free: 27.04 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/1.519, allocations: 6.812 kB / 1.317 GB, free: 27.03 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/1.519, allocations: 6.812 kB / 1.317 GB, free: 27.03 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.544e-05/1.519, allocations: 28.41 kB / 1.317 GB, free: 27.02 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/1.519, allocations: 5.219 kB / 1.317 GB, free: 27.02 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 5.317e-05/1.519, allocations: 105.7 kB / 1.317 GB, free: 26.94 MB / 1.061 GB
Notification: Performance of sort global known variables: time 6e-08/1.519, allocations: 0 / 1.317 GB, free: 26.94 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0003162/1.519, allocations: 64.11 kB / 1.317 GB, free: 26.93 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: 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.0001882/1.519, allocations: 137.9 kB / 1.317 GB, free: 26.81 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.0004362/1.52, allocations: 280.1 kB / 1.317 GB, free: 26.68 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.52, allocations: 3.938 kB / 1.317 GB, free: 26.67 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001351/1.52, allocations: 92.58 kB / 1.318 GB, free: 26.64 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/1.52, allocations: 33.48 kB / 1.318 GB, free: 26.62 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006596/1.521, allocations: 387.8 kB / 1.318 GB, free: 26.38 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/1.521, allocations: 0.744 MB / 1.319 GB, free: 25.68 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 8.233e-05/1.521, allocations: 28.52 kB / 1.319 GB, free: 25.67 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.722e-05/1.521, allocations: 23.19 kB / 1.319 GB, free: 25.67 MB / 1.061 GB
Notification: Performance of SimCode: time 5.01e-07/1.521, allocations: 0 / 1.319 GB, free: 25.67 MB / 1.061 GB
Notification: Performance of Templates: time 0.007602/1.529, allocations: 3.018 MB / 1.322 GB, free: 25.41 MB / 1.061 GB
"
[Timeout remaining time 298]
make -j1 -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile [Timeout 300]
(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 & ./Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 400]
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/jenkins/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: 10.756477288901806]