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.0009916/0.0009916, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001119/0.001119, allocations: 173 kB / 23.5 MB, free: 1.051 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.9407/0.9407, allocations: 177.1 MB / 203.8 MB, free: 5.625 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.03/2.03, allocations: 429.5 MB / 0.6736 GB, free: 4.043 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.633e-06/1.633e-06, allocations: 1.203 kB / 0.8782 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.168e-05, allocations: 2.812 kB / 0.8782 GB, free: 6.645 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002026/0.002047, allocations: 1.831 MB / 0.88 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009973/0.003045, allocations: 0.694 MB / 0.8806 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.983e-05/0.003134, allocations: 7.938 kB / 0.8806 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.003258, allocations: 27.67 kB / 0.8807 GB, free: 4.098 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.595e-05/0.003314, allocations: 35.66 kB / 0.8807 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.00386, allocations: 261.2 kB / 0.881 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.004196, allocations: 411.4 kB / 0.8813 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.004439, allocations: 212.3 kB / 0.8815 GB, free: 3.195 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.004592, allocations: 211.6 kB / 0.8817 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.004733, allocations: 99.72 kB / 0.8818 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.00477, allocations: 37.06 kB / 0.8819 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.938e-05/0.004849, allocations: 52 kB / 0.8819 GB, free: 2.805 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.817e-05/0.004907, allocations: 72.92 kB / 0.882 GB, free: 2.734 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 8.813e-05/0.004995, allocations: 107.8 kB / 0.8821 GB, free: 2.629 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.005272, allocations: 279 kB / 0.8824 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.005274, allocations: 2.469 kB / 0.8824 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.42e-07/0.005275, allocations: 0 / 0.8824 GB, free: 2.355 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.005279, allocations: 0 / 0.8824 GB, free: 2.355 MB / 0.8386 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.0006073/0.005886, allocations: 0.5791 MB / 0.8829 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.005919, allocations: 11.97 kB / 0.8829 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002012/0.00612, allocations: 56.78 kB / 0.883 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.006351, allocations: 222.2 kB / 0.8832 GB, free: 1.422 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.006381, allocations: 24.86 kB / 0.8832 GB, free: 1.398 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.275e-05/0.006414, allocations: 32.38 kB / 0.8833 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.006697, allocations: 221.6 kB / 0.8835 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.006706, allocations: 192 / 0.8835 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.006726, allocations: 17.08 kB / 0.8835 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.006737, allocations: 4.375 kB / 0.8835 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.006894, allocations: 100.5 kB / 0.8836 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007254/0.007619, allocations: 0.7866 MB / 0.8844 GB, free: 196 kB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.007807, allocations: 135.8 kB / 0.8845 GB, free: 48 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.49e-05/0.007892, allocations: 60.78 kB / 0.8845 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.007908, allocations: 4 kB / 0.8846 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001492/0.008057, allocations: 120 kB / 0.8847 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 2.484e-06/0.008059, allocations: 5.578 kB / 0.8847 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.0003297/0.008389, allocations: 225.2 kB / 0.8849 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.008426, allocations: 55.41 kB / 0.8849 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.008549, allocations: 221.7 kB / 0.8852 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.008583, allocations: 49.69 kB / 0.8852 GB, free: 15.26 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/0.008662, allocations: 187.5 kB / 0.8854 GB, free: 15.08 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.008701, allocations: 63.48 kB / 0.8854 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/0.008795, allocations: 99.33 kB / 0.8855 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.008901, allocations: 0.5001 MB / 0.886 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.00902, allocations: 93.66 kB / 0.8861 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.009165, allocations: 179.4 kB / 0.8863 GB, free: 14.08 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.00936, allocations: 218.3 kB / 0.8865 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.009363, allocations: 0 / 0.8865 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003491/0.009712, allocations: 349.8 kB / 0.8868 GB, free: 13.47 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.997e-05/0.009742, allocations: 44.5 kB / 0.8869 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.009747, allocations: 4 kB / 0.8869 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.009762, allocations: 8.156 kB / 0.8869 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.139e-05/0.009853, allocations: 31.92 kB / 0.8869 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.009862, allocations: 7.938 kB / 0.8869 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.009976, allocations: 43.77 kB / 0.887 GB, free: 13.33 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.009997, allocations: 19.98 kB / 0.887 GB, free: 13.31 MB / 0.8542 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 9.842e-05/0.0101, allocations: 192.5 kB / 0.8872 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.01012, allocations: 23.91 kB / 0.8872 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.018e-05/0.01015, allocations: 25.95 kB / 0.8872 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01015, allocations: 4 kB / 0.8872 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.01016, allocations: 0 / 0.8872 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.01016, allocations: 3.938 kB / 0.8872 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006222/0.01078, allocations: 0.5524 MB / 0.8878 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01079, allocations: 0 / 0.8878 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.051e-05/0.01083, allocations: 12 kB / 0.8878 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.01083, allocations: 3.938 kB / 0.8878 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.01084, allocations: 11.98 kB / 0.8878 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.01085, allocations: 3.938 kB / 0.8878 GB, free: 12.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.01085, allocations: 4 kB / 0.8878 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.01105, allocations: 328.5 kB / 0.8881 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.182e-05/0.01107, allocations: 19.84 kB / 0.8881 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.963e-05/0.01108, allocations: 7.938 kB / 0.8881 GB, free: 12.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.006e-05/0.01113, allocations: 15.97 kB / 0.8881 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.01119, allocations: 23.95 kB / 0.8882 GB, free: 12.03 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.0112, allocations: 8 kB / 0.8882 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.354e-05/0.01124, allocations: 135.2 kB / 0.8883 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01124, allocations: 4 kB / 0.8883 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002062/0.01145, allocations: 59.89 kB / 0.8884 GB, free: 11.82 MB / 0.8542 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.0001269/0.01158, allocations: 123.1 kB / 0.8885 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002875/0.01186, allocations: 269.8 kB / 0.8887 GB, free: 11.41 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.01187, allocations: 0 / 0.8887 GB, free: 11.41 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 8.95e-05/0.01196, allocations: 88.03 kB / 0.8888 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.01217, allocations: 32.36 kB / 0.8889 GB, free: 11.29 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004468/0.01262, allocations: 376.7 kB / 0.8892 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.558e-05/0.01267, allocations: 80.33 kB / 0.8893 GB, free: 10.79 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.605e-05/0.01272, allocations: 21.94 kB / 0.8893 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.01276, allocations: 28.44 kB / 0.8893 GB, free: 10.74 MB / 0.8542 GB Notification: Performance of SimCode: time 7.32e-07/0.01277, allocations: 4 kB / 0.8893 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of Templates: time 0.004496/0.01726, allocations: 2.777 MB / 0.8921 GB, free: 8.004 MB / 0.8542 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.359491943148896]