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.001064/0.001064, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001833/0.001833, allocations: 173 kB / 24.06 MB, free: 452 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.077/1.077, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.163/2.163, allocations: 429.5 MB / 0.6743 GB, free: 3.926 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.924e-06/1.924e-06, allocations: 0 / 0.8794 GB, free: 6.09 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.735e-05, allocations: 2.312 kB / 0.8794 GB, free: 6.086 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.0034/0.003427, allocations: 1.815 MB / 0.8811 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001352/0.004779, allocations: 0.704 MB / 0.8818 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.004935, allocations: 4 kB / 0.8818 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.005095, allocations: 23.67 kB / 0.8819 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 9.093e-05/0.005186, allocations: 37.25 kB / 0.8819 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009755/0.006162, allocations: 265 kB / 0.8821 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0005826/0.006744, allocations: 407.4 kB / 0.8825 GB, free: 2.863 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003873/0.007131, allocations: 215.9 kB / 0.8827 GB, free: 2.652 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.007389, allocations: 207.6 kB / 0.8829 GB, free: 2.449 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.007606, allocations: 99.72 kB / 0.883 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.576e-05/0.007671, allocations: 43.94 kB / 0.8831 GB, free: 2.309 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.007802, allocations: 52 kB / 0.8831 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.731e-05/0.00789, allocations: 71.8 kB / 0.8832 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.008018, allocations: 103.8 kB / 0.8833 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.008431, allocations: 279.8 kB / 0.8836 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.008433, allocations: 0 / 0.8836 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.092e-06/0.008435, allocations: 1.656 kB / 0.8836 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.00844, allocations: 4 kB / 0.8836 GB, free: 1.809 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.0007802/0.00922, allocations: 0.5752 MB / 0.8841 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.009261, allocations: 8.031 kB / 0.8841 GB, free: 1.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.009558, allocations: 62.12 kB / 0.8842 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.009864, allocations: 220.1 kB / 0.8844 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.009905, allocations: 28.81 kB / 0.8844 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.278e-05/0.009958, allocations: 44.34 kB / 0.8845 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003229/0.01028, allocations: 197.7 kB / 0.8847 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.01029, allocations: 192 / 0.8847 GB, free: 0.6016 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.01032, allocations: 12.38 kB / 0.8847 GB, free: 0.5898 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.01033, allocations: 4.375 kB / 0.8847 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.01049, allocations: 83.3 kB / 0.8847 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.0115, allocations: 0.756 MB / 0.8855 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.01167, allocations: 115.2 kB / 0.8856 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.925e-05/0.01172, allocations: 55.56 kB / 0.8857 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.01173, allocations: 4 kB / 0.8857 GB, free: 15.53 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001316/0.01186, allocations: 119.7 kB / 0.8858 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=27): time 1.403e-06/0.01187, allocations: 0 / 0.8858 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of matching and sorting (n=27): time 0.000261/0.01213, allocations: 199.6 kB / 0.886 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.01216, allocations: 63.39 kB / 0.886 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.01227, allocations: 217.7 kB / 0.8862 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.0123, allocations: 41.7 kB / 0.8863 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.565e-05/0.01239, allocations: 191.5 kB / 0.8864 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/0.01243, allocations: 67.47 kB / 0.8865 GB, free: 14.59 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.01253, allocations: 103.3 kB / 0.8866 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.01266, allocations: 0.5 MB / 0.8871 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.149e-05/0.01275, allocations: 85.64 kB / 0.8872 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.01287, allocations: 167.3 kB / 0.8873 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.01303, allocations: 198.3 kB / 0.8875 GB, free: 13.44 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.01304, allocations: 11.94 kB / 0.8875 GB, free: 13.43 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000309/0.01335, allocations: 317.9 kB / 0.8878 GB, free: 13.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.01338, allocations: 37.69 kB / 0.8879 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.01338, allocations: 0 / 0.8879 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.01339, allocations: 7.938 kB / 0.8879 GB, free: 13.05 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.01349, allocations: 35.86 kB / 0.8879 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.01349, allocations: 4 kB / 0.8879 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01362, allocations: 55.91 kB / 0.888 GB, free: 12.95 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.09e-05/0.01364, allocations: 16 kB / 0.888 GB, free: 12.94 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.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.0001096/0.01375, allocations: 192.5 kB / 0.8882 GB, free: 12.74 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.01377, allocations: 23.91 kB / 0.8882 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.0138, allocations: 21.97 kB / 0.8882 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01381, allocations: 4 kB / 0.8882 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.01381, allocations: 0 / 0.8882 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.01382, allocations: 7.984 kB / 0.8882 GB, free: 12.69 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.01425, allocations: 0.498 MB / 0.8887 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01425, allocations: 0 / 0.8887 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-05/0.0143, allocations: 15.94 kB / 0.8887 GB, free: 12.14 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.01431, allocations: 7.984 kB / 0.8887 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.01432, allocations: 4 kB / 0.8887 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.01432, allocations: 3.938 kB / 0.8888 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01432, allocations: 4 kB / 0.8888 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.01462, allocations: 317.7 kB / 0.8891 GB, free: 11.79 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.01464, allocations: 15.84 kB / 0.8891 GB, free: 11.78 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.01466, allocations: 11.98 kB / 0.8891 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.046e-05/0.01471, allocations: 11.94 kB / 0.8891 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.01476, allocations: 27.89 kB / 0.8891 GB, free: 11.73 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.01477, allocations: 4 kB / 0.8891 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.602e-05/0.01481, allocations: 141.2 kB / 0.8893 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01481, allocations: 0 / 0.8893 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000231/0.01505, allocations: 63.89 kB / 0.8893 GB, free: 11.52 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.0001234/0.01517, allocations: 119.2 kB / 0.8894 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002436/0.01541, allocations: 254.9 kB / 0.8897 GB, free: 11.13 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.01541, allocations: 4 kB / 0.8897 GB, free: 11.12 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.951e-05/0.01548, allocations: 79.5 kB / 0.8898 GB, free: 11.04 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.0157, allocations: 27.98 kB / 0.8898 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004015/0.0161, allocations: 360.7 kB / 0.8901 GB, free: 10.63 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.554e-05/0.01615, allocations: 80.77 kB / 0.8902 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.34e-05/0.0162, allocations: 25.94 kB / 0.8902 GB, free: 10.5 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.01633, allocations: 126.1 kB / 0.8904 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of SimCode: time 6.61e-07/0.01633, allocations: 0 / 0.8904 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of Templates: time 0.004844/0.02117, allocations: 3.124 MB / 0.8934 GB, free: 7.301 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.6464331252500415]