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.001561/0.001561, allocations: 80.75 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.001938/0.001938, 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 1.038/1.038, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.601/2.601, allocations: 438.8 MB / 0.6827 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.834e-06/1.834e-06, allocations: 0 / 0.8386 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.288e-05/2.472e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002575/0.0026, allocations: 1.848 MB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.003653, allocations: 0.7123 MB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.775e-05/0.00375, allocations: 7.938 kB / 0.8411 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.003879, allocations: 23.73 kB / 0.8411 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 6.28e-05/0.003942, allocations: 39.66 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006532/0.004595, allocations: 263.3 kB / 0.8414 GB, free: 11.25 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.005065, allocations: 407.2 kB / 0.8418 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.00539, allocations: 209.9 kB / 0.842 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.005592, allocations: 207.6 kB / 0.8422 GB, free: 10.44 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.005786, allocations: 103.7 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.974e-05/0.005836, allocations: 44 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001405/0.005977, allocations: 55.98 kB / 0.8424 GB, free: 10.24 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 7.273e-05/0.006049, allocations: 67.81 kB / 0.8425 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.006152, allocations: 103.8 kB / 0.8426 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.006553, allocations: 283 kB / 0.8428 GB, free: 9.797 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.006557, allocations: 0 / 0.8428 GB, free: 9.797 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.312e-06/0.006558, allocations: 0 / 0.8428 GB, free: 9.797 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.006564, allocations: 0 / 0.8428 GB, free: 9.797 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.0006906/0.007255, allocations: 461.1 kB / 0.8433 GB, free: 9.312 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.007299, allocations: 16.03 kB / 0.8433 GB, free: 9.297 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002516/0.00755, allocations: 56.88 kB / 0.8433 GB, free: 9.242 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.00786, allocations: 177.3 kB / 0.8435 GB, free: 9.043 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.007898, allocations: 20.88 kB / 0.8435 GB, free: 9.023 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.007941, allocations: 32.38 kB / 0.8436 GB, free: 8.992 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.00823, allocations: 208 kB / 0.8438 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.008243, allocations: 192 / 0.8438 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.008263, allocations: 12.38 kB / 0.8438 GB, free: 8.762 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.008273, allocations: 4.375 kB / 0.8438 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.008385, allocations: 71.33 kB / 0.8438 GB, free: 8.684 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.009151, allocations: 0.5274 MB / 0.8444 GB, free: 8.137 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.009329, allocations: 106.4 kB / 0.8445 GB, free: 8.023 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.374e-05/0.009383, allocations: 45.45 kB / 0.8445 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.009404, allocations: 4 kB / 0.8445 GB, free: 7.973 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.009571, allocations: 117.1 kB / 0.8446 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=27): time 2.575e-06/0.009574, allocations: 0 / 0.8446 GB, free: 7.844 MB / 0.8073 GB Notification: Performance of matching and sorting (n=27): time 0.0002607/0.009835, allocations: 151.7 kB / 0.8448 GB, free: 7.691 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.009883, allocations: 63.39 kB / 0.8448 GB, free: 7.617 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.01, allocations: 168.5 kB / 0.845 GB, free: 7.441 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.01004, allocations: 37.7 kB / 0.845 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.01013, allocations: 132.8 kB / 0.8452 GB, free: 7.266 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.01018, allocations: 79.39 kB / 0.8452 GB, free: 7.188 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.01028, allocations: 89.61 kB / 0.8453 GB, free: 7.094 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.01039, allocations: 330.7 kB / 0.8456 GB, free: 6.762 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.595e-05/0.01047, allocations: 77.67 kB / 0.8457 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.01057, allocations: 132.8 kB / 0.8458 GB, free: 6.516 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.01073, allocations: 190.8 kB / 0.846 GB, free: 6.301 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.01074, allocations: 4 kB / 0.846 GB, free: 6.297 MB / 0.8073 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002471/0.01098, allocations: 258.1 kB / 0.8463 GB, free: 6.027 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.01103, allocations: 37.69 kB / 0.8463 GB, free: 5.984 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.01104, allocations: 8.156 kB / 0.8463 GB, free: 5.977 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.01105, allocations: 8 kB / 0.8463 GB, free: 5.969 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.0112, allocations: 35.92 kB / 0.8463 GB, free: 5.934 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.0112, allocations: 7.938 kB / 0.8464 GB, free: 5.926 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.01132, allocations: 43.81 kB / 0.8464 GB, free: 5.883 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.01134, allocations: 15.94 kB / 0.8464 GB, free: 5.867 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.0001067/0.01145, allocations: 153.7 kB / 0.8466 GB, free: 5.707 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.01147, allocations: 19.98 kB / 0.8466 GB, free: 5.688 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.01151, allocations: 21.97 kB / 0.8466 GB, free: 5.672 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.01151, allocations: 4 kB / 0.8466 GB, free: 5.668 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.01151, allocations: 0 / 0.8466 GB, free: 5.668 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.01152, allocations: 0 / 0.8466 GB, free: 5.668 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004132/0.01193, allocations: 359.7 kB / 0.8469 GB, free: 5.293 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01193, allocations: 0 / 0.8469 GB, free: 5.293 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.715e-05/0.01201, allocations: 27.92 kB / 0.847 GB, free: 5.266 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.01201, allocations: 0 / 0.847 GB, free: 5.266 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.01203, allocations: 4 kB / 0.847 GB, free: 5.262 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.01203, allocations: 4 kB / 0.847 GB, free: 5.258 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.01203, allocations: 3.938 kB / 0.847 GB, free: 5.254 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.01221, allocations: 220.4 kB / 0.8472 GB, free: 5.023 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.763e-05/0.01222, allocations: 19.89 kB / 0.8472 GB, free: 5.004 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.01224, allocations: 4 kB / 0.8472 GB, free: 5 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.129e-05/0.0123, allocations: 8 kB / 0.8472 GB, free: 4.992 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.894e-05/0.01236, allocations: 31.88 kB / 0.8473 GB, free: 4.961 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.01238, allocations: 8 kB / 0.8473 GB, free: 4.953 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.905e-05/0.0124, allocations: 27.03 kB / 0.8473 GB, free: 4.926 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.0124, allocations: 0 / 0.8473 GB, free: 4.926 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002159/0.01262, allocations: 71.77 kB / 0.8474 GB, free: 4.855 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.0001889/0.01281, allocations: 104.3 kB / 0.8475 GB, free: 4.746 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003043/0.01311, allocations: 230.9 kB / 0.8477 GB, free: 4.5 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.01312, allocations: 4 kB / 0.8477 GB, free: 4.496 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.585e-05/0.01321, allocations: 72.69 kB / 0.8477 GB, free: 4.422 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.01345, allocations: 33.91 kB / 0.8478 GB, free: 4.391 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005765/0.01402, allocations: 351.8 kB / 0.8481 GB, free: 4.016 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.236e-05/0.01409, allocations: 84.31 kB / 0.8482 GB, free: 3.914 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 6.938e-05/0.01415, allocations: 21.89 kB / 0.8482 GB, free: 3.891 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.01429, allocations: 103.3 kB / 0.8483 GB, free: 3.789 MB / 0.8073 GB Notification: Performance of SimCode: time 1.693e-06/0.01429, allocations: 0 / 0.8483 GB, free: 3.789 MB / 0.8073 GB Notification: Performance of Templates: time 0.00543/0.01972, allocations: 3.009 MB / 0.8513 GB, free: 0.8359 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 -s gbode -gbm=radauIIA3 -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.819664512760937]