Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.001521/0.001521, allocations: 77.09 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.00177/0.00177, allocations: 169 kB / 24.06 MB, free: 456 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.014/1.014, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.211/2.211, allocations: 429.5 MB / 0.6743 GB, free: 3.895 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.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.474e-06/2.474e-06, allocations: 0 / 0.8794 GB, free: 6.023 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.684e-05/2.932e-05, allocations: 4.844 kB / 0.8794 GB, free: 6.02 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001559/0.001588, allocations: 0.739 MB / 0.8801 GB, free: 5.301 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002293/0.001818, allocations: 44.59 kB / 0.8801 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.28e-05/0.00189, allocations: 0 / 0.8801 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.002018, allocations: 21.86 kB / 0.8802 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.00214, allocations: 9.016 kB / 0.8802 GB, free: 5.23 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 4.695e-05/0.002187, allocations: 20.48 kB / 0.8802 GB, free: 5.211 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.00238, allocations: 183.8 kB / 0.8804 GB, free: 5.031 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002417/0.002622, allocations: 151.6 kB / 0.8805 GB, free: 4.883 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.002798, allocations: 168.8 kB / 0.8807 GB, free: 4.719 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.096e-05/0.002889, allocations: 95.7 kB / 0.8808 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.249e-05/0.002922, allocations: 20 kB / 0.8808 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 2.288e-05/0.002945, allocations: 21.06 kB / 0.8808 GB, free: 4.586 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 5.977e-05/0.003005, allocations: 67.72 kB / 0.8809 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.022e-05/0.003065, allocations: 71.75 kB / 0.8809 GB, free: 4.449 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.003268, allocations: 200.2 kB / 0.8811 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.003271, allocations: 0 / 0.8811 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.072e-06/0.003272, allocations: 0 / 0.8811 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.00328, allocations: 1.125 kB / 0.8811 GB, free: 4.254 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0004697/0.00375, allocations: 0.5896 MB / 0.8817 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.003788, allocations: 12.03 kB / 0.8817 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.14e-05/0.003849, allocations: 49.78 kB / 0.8818 GB, free: 3.566 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.004139, allocations: 254 kB / 0.882 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.004179, allocations: 29.03 kB / 0.882 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.004201, allocations: 24.38 kB / 0.882 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.004485, allocations: 215.4 kB / 0.8823 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.004497, allocations: 192 / 0.8823 GB, free: 3.008 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.004516, allocations: 9.938 kB / 0.8823 GB, free: 3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.004526, allocations: 12.31 kB / 0.8823 GB, free: 2.988 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.4e-05/0.00462, allocations: 71.86 kB / 0.8823 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.005296, allocations: 0.7183 MB / 0.883 GB, free: 2.168 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.653e-05/0.005362, allocations: 59.61 kB / 0.8831 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.047e-05/0.005383, allocations: 19.38 kB / 0.8831 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.005408, allocations: 4.062 kB / 0.8831 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.005438, allocations: 33.39 kB / 0.8832 GB, free: 2.012 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.814e-06/0.00544, allocations: 0.5 kB / 0.8832 GB, free: 2.012 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001675/0.005607, allocations: 66.33 kB / 0.8832 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.005649, allocations: 82.14 kB / 0.8833 GB, free: 1.844 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.005881, allocations: 364 kB / 0.8836 GB, free: 1.477 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.005895, allocations: 29.7 kB / 0.8837 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.006019, allocations: 256.2 kB / 0.8839 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.187e-05/0.00603, allocations: 11.94 kB / 0.8839 GB, free: 1.176 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-05/0.0061, allocations: 75.3 kB / 0.884 GB, free: 1.094 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.006251, allocations: 0.5157 MB / 0.8845 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.403e-05/0.006275, allocations: 11.34 kB / 0.8845 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.055e-05/0.006316, allocations: 39.34 kB / 0.8846 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.435e-05/0.00638, allocations: 47.36 kB / 0.8846 GB, free: 468 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.006382, allocations: 0 / 0.8846 GB, free: 468 kB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000121/0.006503, allocations: 97.52 kB / 0.8847 GB, free: 364 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.006519, allocations: 8 kB / 0.8847 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.006524, allocations: 0 / 0.8847 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.297e-06/0.006533, allocations: 0 / 0.8847 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.187e-05/0.006625, allocations: 25.17 kB / 0.8847 GB, free: 332 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.00663, allocations: 11.88 kB / 0.8847 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.471e-05/0.006665, allocations: 23.84 kB / 0.8848 GB, free: 296 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.222e-05/0.006677, allocations: 4 kB / 0.8848 GB, free: 292 kB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0001118/0.006789, allocations: 177.8 kB / 0.8849 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.326e-05/0.006822, allocations: 15.91 kB / 0.8849 GB, free: 88 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.006978, allocations: 200.9 kB / 0.8851 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.289e-05/0.007051, allocations: 264.1 kB / 0.8854 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.513e-05/0.007126, allocations: 276 kB / 0.8857 GB, free: 15.33 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.567e-05/0.007192, allocations: 268 kB / 0.8859 GB, free: 15.06 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.007461, allocations: 0.5434 MB / 0.8864 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.096e-05/0.007512, allocations: 148.8 kB / 0.8866 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-05/0.007556, allocations: 152.9 kB / 0.8867 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.437e-05/0.00763, allocations: 264.1 kB / 0.887 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.438e-05/0.007704, allocations: 268 kB / 0.8872 GB, free: 13.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-05/0.007775, allocations: 276.1 kB / 0.8875 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.593e-05/0.007841, allocations: 268 kB / 0.8878 GB, free: 13.09 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.007988, allocations: 463.8 kB / 0.8882 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.037e-05/0.008049, allocations: 160.7 kB / 0.8883 GB, free: 12.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.979e-05/0.008129, allocations: 272.1 kB / 0.8886 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.629e-05/0.008205, allocations: 152.8 kB / 0.8888 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.00828, allocations: 268.1 kB / 0.889 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.008322, allocations: 144.9 kB / 0.8891 GB, free: 11.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001042/0.008426, allocations: 205 kB / 0.8893 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.008426, allocations: 4 kB / 0.8893 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000186/0.008612, allocations: 47.72 kB / 0.8894 GB, free: 11.35 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000146/0.008758, allocations: 222.4 kB / 0.8896 GB, free: 11.12 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001144/0.008872, allocations: 43.98 kB / 0.8896 GB, free: 11.08 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.008875, allocations: 0 / 0.8896 GB, free: 11.08 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.274e-06/0.008877, allocations: 3.938 kB / 0.8896 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004011/0.009278, allocations: 0.7201 MB / 0.8904 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004596/0.009738, allocations: 487.8 kB / 0.8908 GB, free: 9.84 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.3e-05/0.009791, allocations: 79.81 kB / 0.8909 GB, free: 9.742 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.903e-05/0.00983, allocations: 13.48 kB / 0.8909 GB, free: 9.727 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.404e-05/0.009904, allocations: 94.19 kB / 0.891 GB, free: 9.633 MB / 0.8542 GB Notification: Performance of SimCode: time 1.222e-06/0.009905, allocations: 0 / 0.891 GB, free: 9.633 MB / 0.8542 GB Notification: Performance of Templates: time 0.003548/0.01345, allocations: 1.161 MB / 0.8921 GB, free: 8.5 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.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.764376477804035]