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.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.001006/0.001006, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001797/0.001797, allocations: 161 kB / 24.17 MB, free: 332 kB / 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.046/1.046, allocations: 177.2 MB / 204.6 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 2.091/2.091, allocations: 377.9 MB / 0.624 GB, free: 8.355 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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_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 1.463e-06/1.463e-06, allocations: 0 / 0.76 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.26e-05, allocations: 3.078 kB / 0.76 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002667/0.00269, allocations: 1.859 MB / 0.7619 GB, free: 4.812 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001241/0.003931, allocations: 0.7129 MB / 0.7626 GB, free: 4.102 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.004032, allocations: 7.938 kB / 0.7626 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.004164, allocations: 32.64 kB / 0.7626 GB, free: 4.062 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 6.916e-05/0.004233, allocations: 26.09 kB / 0.7626 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006236/0.004856, allocations: 261.3 kB / 0.7629 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003933/0.00525, allocations: 418.2 kB / 0.7633 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002567/0.005506, allocations: 211.7 kB / 0.7635 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.00568, allocations: 203.6 kB / 0.7637 GB, free: 2.988 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.005837, allocations: 100.6 kB / 0.7638 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.153e-05/0.005879, allocations: 40 kB / 0.7638 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.005986, allocations: 62.03 kB / 0.7639 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 5.938e-05/0.006046, allocations: 75.8 kB / 0.7639 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.06e-05/0.006126, allocations: 95.81 kB / 0.764 GB, free: 2.625 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.006417, allocations: 279 kB / 0.7643 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006419, allocations: 0 / 0.7643 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.042e-06/0.00642, allocations: 0 / 0.7643 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.006427, allocations: 0.75 kB / 0.7643 GB, free: 2.352 MB / 0.7136 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.0005427/0.006969, allocations: 462 kB / 0.7647 GB, free: 1.867 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.007006, allocations: 12.03 kB / 0.7647 GB, free: 1.855 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.007211, allocations: 57.5 kB / 0.7648 GB, free: 1.801 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.007427, allocations: 167.6 kB / 0.7649 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.487e-05/0.007462, allocations: 28.81 kB / 0.765 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.007496, allocations: 32.38 kB / 0.765 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.007724, allocations: 204 kB / 0.7652 GB, free: 1.34 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.007735, allocations: 192 / 0.7652 GB, free: 1.34 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.007753, allocations: 20.3 kB / 0.7652 GB, free: 1.32 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.007761, allocations: 5.969 kB / 0.7652 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.928e-05/0.007851, allocations: 63.41 kB / 0.7653 GB, free: 1.258 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.008511, allocations: 0.5311 MB / 0.7658 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.008657, allocations: 103.8 kB / 0.7659 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.302e-05/0.0087, allocations: 44.78 kB / 0.7659 GB, free: 0.5508 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.008719, allocations: 5 kB / 0.766 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001441/0.008863, allocations: 126.1 kB / 0.7661 GB, free: 420 kB / 0.7136 GB Notification: Performance of pre-optimization done (n=27): time 2.254e-06/0.008865, allocations: 2.625 kB / 0.7661 GB, free: 420 kB / 0.7136 GB Notification: Performance of matching and sorting (n=27): time 0.0002158/0.009081, allocations: 149.8 kB / 0.7662 GB, free: 268 kB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.009116, allocations: 59.39 kB / 0.7663 GB, free: 196 kB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.804e-05/0.009214, allocations: 162.5 kB / 0.7664 GB, free: 20 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.009259, allocations: 37.7 kB / 0.7665 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 7.052e-05/0.00933, allocations: 136.8 kB / 0.7666 GB, free: 15.84 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.15e-05/0.009371, allocations: 75.41 kB / 0.7667 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-05/0.009465, allocations: 92.36 kB / 0.7668 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.61e-05/0.009551, allocations: 330.7 kB / 0.7671 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.178e-05/0.009632, allocations: 77.67 kB / 0.7671 GB, free: 15.25 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.732e-05/0.00973, allocations: 145.4 kB / 0.7673 GB, free: 15.08 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.009881, allocations: 180.7 kB / 0.7675 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.009885, allocations: 8.875 kB / 0.7675 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0002366/0.01012, allocations: 258.8 kB / 0.7677 GB, free: 14.6 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.01016, allocations: 42.7 kB / 0.7678 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01016, allocations: 4 kB / 0.7678 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.01018, allocations: 4 kB / 0.7678 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.0103, allocations: 35.86 kB / 0.7678 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.01031, allocations: 4 kB / 0.7678 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.01043, allocations: 55.69 kB / 0.7679 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.01044, allocations: 11.94 kB / 0.7679 GB, free: 14.44 MB / 0.7292 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.0001129/0.01056, allocations: 152.5 kB / 0.768 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.01058, allocations: 19.98 kB / 0.768 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.01061, allocations: 17.97 kB / 0.768 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01062, allocations: 4 kB / 0.768 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.01062, allocations: 0 / 0.768 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.403e-06/0.01063, allocations: 3.984 kB / 0.7681 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003821/0.01101, allocations: 369 kB / 0.7684 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01101, allocations: 0 / 0.7684 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.595e-05/0.01107, allocations: 23.92 kB / 0.7684 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.01107, allocations: 0 / 0.7684 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.01108, allocations: 8.531 kB / 0.7684 GB, free: 13.83 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.01108, allocations: 3.984 kB / 0.7684 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.01109, allocations: 6.719 kB / 0.7684 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.01122, allocations: 216.2 kB / 0.7687 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.377e-05/0.01124, allocations: 15.84 kB / 0.7687 GB, free: 13.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.01126, allocations: 8 kB / 0.7687 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.74e-05/0.0113, allocations: 11.98 kB / 0.7687 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.01137, allocations: 27.83 kB / 0.7687 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.01138, allocations: 11.98 kB / 0.7687 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.226e-05/0.0114, allocations: 24.5 kB / 0.7687 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6e-08/0.0114, allocations: 0 / 0.7687 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001927/0.01159, allocations: 59.89 kB / 0.7688 GB, free: 13.44 MB / 0.7292 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.0001236/0.01172, allocations: 96.16 kB / 0.7689 GB, free: 13.34 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002208/0.01194, allocations: 246 kB / 0.7691 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.01194, allocations: 0 / 0.7691 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 6.568e-05/0.01201, allocations: 73.16 kB / 0.7692 GB, free: 13 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.01219, allocations: 33.55 kB / 0.7692 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.01279, allocations: 364.2 kB / 0.7696 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.72e-05/0.01284, allocations: 80.33 kB / 0.7697 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.703e-05/0.01289, allocations: 24.78 kB / 0.7697 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.01301, allocations: 95.36 kB / 0.7698 GB, free: 12.38 MB / 0.7292 GB Notification: Performance of SimCode: time 9.22e-07/0.01301, allocations: 0.5625 kB / 0.7698 GB, free: 12.38 MB / 0.7292 GB Notification: Performance of Templates: time 0.005048/0.01806, allocations: 2.999 MB / 0.7727 GB, free: 9.543 MB / 0.7292 GB " [Timeout remaining time 300] 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 240] 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","",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.4019319750368595]