Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001064/0.001064, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001131/0.001131, allocations: 164.9 kB / 24.86 MB, free: 8.891 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.9455/0.9455, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.878/1.878, allocations: 377.9 MB / 0.6247 GB, free: 8.43 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_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_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 0.8128 GB, free: 1.484 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.335e-05/1.463e-05, allocations: 10.78 kB / 0.8128 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00132/0.001335, allocations: 0.7275 MB / 0.8135 GB, free: 0.7656 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0001736/0.001508, allocations: 45.53 kB / 0.8135 GB, free: 0.7227 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.595e-05/0.001574, allocations: 7.938 kB / 0.8135 GB, free: 0.7148 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.001683, allocations: 16.84 kB / 0.8135 GB, free: 0.6992 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.001789, allocations: 15.86 kB / 0.8136 GB, free: 0.6836 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 4.773e-05/0.001837, allocations: 19.98 kB / 0.8136 GB, free: 0.6641 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.001996, allocations: 189 kB / 0.8138 GB, free: 492 kB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.002187, allocations: 141.3 kB / 0.8139 GB, free: 348 kB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.002347, allocations: 167.7 kB / 0.814 GB, free: 180 kB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 8.007e-05/0.002427, allocations: 87.78 kB / 0.8141 GB, free: 92 kB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.002459, allocations: 25.08 kB / 0.8142 GB, free: 68 kB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.002482, allocations: 20 kB / 0.8142 GB, free: 48 kB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/0.002546, allocations: 63.78 kB / 0.8142 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.493e-05/0.002611, allocations: 69.2 kB / 0.8143 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.002793, allocations: 207.1 kB / 0.8145 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.002795, allocations: 0 / 0.8145 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.012e-06/0.002796, allocations: 0 / 0.8145 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.0028, allocations: 0.5312 kB / 0.8145 GB, free: 15.71 MB / 0.7761 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.0004244/0.003225, allocations: 0.5825 MB / 0.8151 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.089e-05/0.003256, allocations: 12.03 kB / 0.8151 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.698e-05/0.003313, allocations: 57.2 kB / 0.8151 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.003535, allocations: 242.6 kB / 0.8154 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/0.003572, allocations: 32.97 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.003593, allocations: 24.38 kB / 0.8154 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.003806, allocations: 231.3 kB / 0.8156 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.003814, allocations: 192 / 0.8156 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.003828, allocations: 13.19 kB / 0.8157 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.003835, allocations: 4.375 kB / 0.8157 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.355e-05/0.003918, allocations: 69.5 kB / 0.8157 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005868/0.004505, allocations: 0.7141 MB / 0.8164 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.271e-05/0.004558, allocations: 58.7 kB / 0.8165 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.899e-05/0.004577, allocations: 28.12 kB / 0.8165 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.00459, allocations: 1.375 kB / 0.8165 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.004611, allocations: 33.39 kB / 0.8165 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.004612, allocations: 4 kB / 0.8165 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0001302/0.004742, allocations: 63.22 kB / 0.8166 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.004775, allocations: 81.05 kB / 0.8167 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.004979, allocations: 371.9 kB / 0.817 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.004987, allocations: 25.7 kB / 0.8171 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.005086, allocations: 253.2 kB / 0.8173 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 5.27e-06/0.005091, allocations: 0 / 0.8173 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.005159, allocations: 87.25 kB / 0.8174 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.00528, allocations: 0.5118 MB / 0.8179 GB, free: 12.03 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.944e-05/0.005299, allocations: 11.94 kB / 0.8179 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.302e-05/0.005332, allocations: 39.34 kB / 0.8179 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.955e-05/0.005382, allocations: 58.56 kB / 0.818 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005384, allocations: 0 / 0.818 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001026/0.005486, allocations: 105.5 kB / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.739e-06/0.005496, allocations: 4 kB / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.0055, allocations: 0 / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.354e-06/0.005508, allocations: 0 / 0.8181 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.075e-05/0.005579, allocations: 27.98 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.406e-06/0.005582, allocations: 3.938 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.971e-05/0.005612, allocations: 15.89 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.005622, allocations: 5.062 kB / 0.8181 GB, free: 11.75 MB / 0.7761 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 8.508e-05/0.005707, allocations: 177.3 kB / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.153e-05/0.005738, allocations: 15.91 kB / 0.8183 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.005857, allocations: 197.6 kB / 0.8185 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.243e-05/0.005919, allocations: 269.1 kB / 0.8188 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.945e-05/0.005979, allocations: 275.9 kB / 0.819 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.97e-05/0.006038, allocations: 264.1 kB / 0.8193 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.00627, allocations: 0.5481 MB / 0.8198 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.213e-05/0.006302, allocations: 148.9 kB / 0.82 GB, free: 9.797 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.006342, allocations: 155.1 kB / 0.8201 GB, free: 9.641 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-05/0.006399, allocations: 264.1 kB / 0.8204 GB, free: 9.375 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-05/0.006465, allocations: 268.1 kB / 0.8206 GB, free: 9.105 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.556e-05/0.006531, allocations: 272 kB / 0.8209 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.935e-05/0.00659, allocations: 264.1 kB / 0.8211 GB, free: 8.566 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.006722, allocations: 467.8 kB / 0.8216 GB, free: 8.082 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.006772, allocations: 161.6 kB / 0.8217 GB, free: 7.918 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-05/0.006839, allocations: 280 kB / 0.822 GB, free: 7.637 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.28e-05/0.006901, allocations: 152.9 kB / 0.8221 GB, free: 7.48 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.839e-05/0.00696, allocations: 269 kB / 0.8224 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.006989, allocations: 144.9 kB / 0.8225 GB, free: 7.062 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.457e-05/0.007083, allocations: 206.3 kB / 0.8227 GB, free: 6.863 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.007083, allocations: 0 / 0.8227 GB, free: 6.863 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001672/0.007251, allocations: 51.72 kB / 0.8228 GB, free: 6.812 MB / 0.7761 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 8.794e-05/0.007338, allocations: 219.4 kB / 0.823 GB, free: 6.59 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.859e-05/0.007417, allocations: 43.33 kB / 0.823 GB, free: 6.547 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.012e-06/0.007418, allocations: 3.938 kB / 0.823 GB, free: 6.543 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.465e-06/0.007421, allocations: 4.328 kB / 0.823 GB, free: 6.539 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.007743, allocations: 0.7155 MB / 0.8237 GB, free: 5.82 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003595/0.008102, allocations: 491.7 kB / 0.8242 GB, free: 5.305 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.147e-05/0.008144, allocations: 80.84 kB / 0.8243 GB, free: 5.207 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.008176, allocations: 21.42 kB / 0.8243 GB, free: 5.188 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.008231, allocations: 87.31 kB / 0.8244 GB, free: 5.102 MB / 0.7761 GB Notification: Performance of SimCode: time 4.61e-07/0.008231, allocations: 0 / 0.8244 GB, free: 5.102 MB / 0.7761 GB Notification: Performance of Templates: time 0.002823/0.01105, allocations: 1.143 MB / 0.8255 GB, free: 4 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.014615901745856]