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.001431/0.001431, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001487/0.001487, allocations: 181 kB / 23.36 MB, free: 1.133 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.957/0.957, allocations: 177.1 MB / 203.8 MB, free: 5.473 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 2.429/2.429, allocations: 438.8 MB / 0.6826 GB, free: 13.57 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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: 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 1.613e-06/1.613e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.862e-05/3.024e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003146/0.003176, allocations: 1.805 MB / 0.8403 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001334/0.004511, allocations: 0.7123 MB / 0.841 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.004618, allocations: 7.938 kB / 0.841 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.004765, allocations: 27.69 kB / 0.8411 GB, free: 11.64 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.673e-05/0.004841, allocations: 27.78 kB / 0.8411 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007361/0.005578, allocations: 271.2 kB / 0.8413 GB, free: 11.34 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0004904/0.006068, allocations: 415.2 kB / 0.8417 GB, free: 10.94 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.006371, allocations: 206 kB / 0.8419 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002369/0.006608, allocations: 207.7 kB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.006792, allocations: 107.7 kB / 0.8422 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.006846, allocations: 36 kB / 0.8423 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.006954, allocations: 55.97 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.007031, allocations: 75.81 kB / 0.8424 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.007143, allocations: 99.8 kB / 0.8425 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.007507, allocations: 283 kB / 0.8428 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.00751, allocations: 0 / 0.8428 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.372e-06/0.007511, allocations: 0 / 0.8428 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.007515, allocations: 0 / 0.8428 GB, free: 9.891 MB / 0.8073 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.0006623/0.008178, allocations: 465.1 kB / 0.8432 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.008211, allocations: 8.031 kB / 0.8432 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002638/0.008475, allocations: 56.88 kB / 0.8433 GB, free: 9.34 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000266/0.008741, allocations: 176.2 kB / 0.8434 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.00878, allocations: 28.88 kB / 0.8435 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.876e-05/0.008829, allocations: 32.36 kB / 0.8435 GB, free: 9.086 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.009129, allocations: 204 kB / 0.8437 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.009142, allocations: 192 / 0.8437 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.009165, allocations: 16.36 kB / 0.8437 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.009176, allocations: 8.312 kB / 0.8437 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001346/0.00931, allocations: 71.34 kB / 0.8438 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008498/0.01016, allocations: 0.5312 MB / 0.8443 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.01035, allocations: 98.5 kB / 0.8444 GB, free: 8.117 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.246e-05/0.01041, allocations: 40.84 kB / 0.8444 GB, free: 8.074 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.01043, allocations: 4 kB / 0.8444 GB, free: 8.07 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001612/0.01059, allocations: 117.2 kB / 0.8445 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=27): time 2.234e-06/0.01059, allocations: 0 / 0.8445 GB, free: 7.941 MB / 0.8073 GB Notification: Performance of matching and sorting (n=27): time 0.0003596/0.01095, allocations: 151.7 kB / 0.8447 GB, free: 7.789 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.011, allocations: 59.39 kB / 0.8447 GB, free: 7.719 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.01112, allocations: 168.5 kB / 0.8449 GB, free: 7.543 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.01116, allocations: 41.7 kB / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.01124, allocations: 140.8 kB / 0.8451 GB, free: 7.355 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.681e-05/0.0113, allocations: 75.41 kB / 0.8452 GB, free: 7.281 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.01142, allocations: 89.61 kB / 0.8452 GB, free: 7.188 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 9.618e-05/0.01152, allocations: 330.7 kB / 0.8456 GB, free: 6.855 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.01162, allocations: 73.67 kB / 0.8456 GB, free: 6.777 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.01177, allocations: 144.7 kB / 0.8458 GB, free: 6.602 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.01198, allocations: 186.9 kB / 0.8459 GB, free: 6.391 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.01198, allocations: 0 / 0.8459 GB, free: 6.391 MB / 0.8073 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003316/0.01231, allocations: 262 kB / 0.8462 GB, free: 6.117 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 3.844e-05/0.01235, allocations: 37.7 kB / 0.8462 GB, free: 6.074 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.01236, allocations: 0 / 0.8462 GB, free: 6.074 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.01238, allocations: 4 kB / 0.8462 GB, free: 6.07 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.01249, allocations: 35.86 kB / 0.8463 GB, free: 6.035 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.0125, allocations: 4.219 kB / 0.8463 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.01267, allocations: 51.81 kB / 0.8463 GB, free: 5.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.01269, allocations: 11.94 kB / 0.8463 GB, free: 5.969 MB / 0.8073 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.suspend,sta.stateGraphRoot.resume) * 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.0001296/0.01282, allocations: 153.7 kB / 0.8465 GB, free: 5.809 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.01285, allocations: 19.98 kB / 0.8465 GB, free: 5.789 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/0.01289, allocations: 17.97 kB / 0.8465 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.01289, allocations: 7.938 kB / 0.8465 GB, free: 5.77 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.0129, allocations: 4 kB / 0.8465 GB, free: 5.766 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.0129, allocations: 3.984 kB / 0.8465 GB, free: 5.762 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004944/0.0134, allocations: 363.8 kB / 0.8469 GB, free: 5.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.0134, allocations: 0 / 0.8469 GB, free: 5.379 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/0.01347, allocations: 19.92 kB / 0.8469 GB, free: 5.359 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.01347, allocations: 0 / 0.8469 GB, free: 5.359 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.01348, allocations: 4 kB / 0.8469 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.01349, allocations: 4 kB / 0.8469 GB, free: 5.352 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.01349, allocations: 3.938 kB / 0.8469 GB, free: 5.348 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002027/0.01369, allocations: 220.4 kB / 0.8471 GB, free: 5.117 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.01371, allocations: 15.91 kB / 0.8471 GB, free: 5.102 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.598e-05/0.01374, allocations: 8 kB / 0.8471 GB, free: 5.094 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.362e-05/0.01382, allocations: 8 kB / 0.8471 GB, free: 5.086 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.01389, allocations: 31.81 kB / 0.8472 GB, free: 5.055 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.0139, allocations: 4 kB / 0.8472 GB, free: 5.051 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.032e-05/0.01393, allocations: 27.17 kB / 0.8472 GB, free: 5.023 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.01393, allocations: 0 / 0.8472 GB, free: 5.023 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002586/0.01419, allocations: 75.77 kB / 0.8473 GB, free: 4.949 MB / 0.8073 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.000125/0.01431, allocations: 96.41 kB / 0.8474 GB, free: 4.848 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002149/0.01453, allocations: 234.9 kB / 0.8476 GB, free: 4.598 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.01453, allocations: 0 / 0.8476 GB, free: 4.598 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.503e-05/0.0146, allocations: 76.69 kB / 0.8477 GB, free: 4.52 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.01478, allocations: 31.97 kB / 0.8477 GB, free: 4.488 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000429/0.01521, allocations: 352.2 kB / 0.848 GB, free: 4.113 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.637e-05/0.01525, allocations: 84.31 kB / 0.8481 GB, free: 4.012 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.628e-05/0.01531, allocations: 21.95 kB / 0.8481 GB, free: 3.988 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.01542, allocations: 95.34 kB / 0.8482 GB, free: 3.895 MB / 0.8073 GB Notification: Performance of SimCode: time 3.71e-07/0.01542, allocations: 0 / 0.8482 GB, free: 3.895 MB / 0.8073 GB Notification: Performance of Templates: time 0.004654/0.02007, allocations: 3.01 MB / 0.8512 GB, free: 0.9414 MB / 0.8073 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.358581752050668]