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.0009229/0.0009229, 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.000903/0.000903, 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.02/1.02, 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 1.826/1.826, allocations: 377.9 MB / 0.624 GB, free: 8.355 MB / 0.5886 GB " [Timeout remaining time 178] 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.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 2.695e-06/2.695e-06, allocations: 0 / 0.76 GB, free: 6.699 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.872e-05/3.142e-05, allocations: 6.312 kB / 0.76 GB, free: 6.691 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002368/0.002399, allocations: 0.7364 MB / 0.7607 GB, free: 5.977 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0002204/0.00262, allocations: 55.72 kB / 0.7608 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.763e-05/0.002687, allocations: 4 kB / 0.7608 GB, free: 5.918 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.002797, allocations: 12.73 kB / 0.7608 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.002909, allocations: 14.59 kB / 0.7608 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 5.825e-05/0.002967, allocations: 19.98 kB / 0.7608 GB, free: 5.875 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002382/0.003206, allocations: 186.9 kB / 0.761 GB, free: 5.715 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.003447, allocations: 149.3 kB / 0.7611 GB, free: 5.566 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.003685, allocations: 172.2 kB / 0.7613 GB, free: 5.398 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.003804, allocations: 87.78 kB / 0.7614 GB, free: 5.312 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/0.003852, allocations: 20.78 kB / 0.7614 GB, free: 5.293 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 3.192e-05/0.003884, allocations: 20 kB / 0.7614 GB, free: 5.273 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.003959, allocations: 64.86 kB / 0.7615 GB, free: 5.211 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.209e-05/0.004041, allocations: 71.77 kB / 0.7616 GB, free: 5.141 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.004306, allocations: 207.1 kB / 0.7618 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.004309, allocations: 1.469 kB / 0.7618 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.22e-07/0.00431, allocations: 0 / 0.7618 GB, free: 4.938 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.004316, allocations: 4 kB / 0.7618 GB, free: 4.934 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0005261/0.004842, allocations: 440.2 kB / 0.7622 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.004878, allocations: 12.91 kB / 0.7622 GB, free: 4.461 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.14e-05/0.004959, allocations: 40.91 kB / 0.7622 GB, free: 4.422 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.005262, allocations: 227.1 kB / 0.7625 GB, free: 4.172 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.005306, allocations: 30.05 kB / 0.7625 GB, free: 4.145 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.77e-05/0.005343, allocations: 24.38 kB / 0.7625 GB, free: 4.121 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.005675, allocations: 223.8 kB / 0.7627 GB, free: 3.887 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.005687, allocations: 0.875 kB / 0.7627 GB, free: 3.887 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.005712, allocations: 12.38 kB / 0.7627 GB, free: 3.875 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.005722, allocations: 6.156 kB / 0.7627 GB, free: 3.871 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001592/0.005881, allocations: 94.53 kB / 0.7628 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007944/0.006675, allocations: 0.5293 MB / 0.7633 GB, free: 3.227 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 5.423e-05/0.00673, allocations: 41.14 kB / 0.7634 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.929e-05/0.006749, allocations: 18.62 kB / 0.7634 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.006763, allocations: 0 / 0.7634 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.006785, allocations: 32.62 kB / 0.7634 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.006786, allocations: 4 kB / 0.7634 GB, free: 3.102 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001466/0.006933, allocations: 49.62 kB / 0.7635 GB, free: 3.047 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.006974, allocations: 77.11 kB / 0.7636 GB, free: 2.953 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.007189, allocations: 277.3 kB / 0.7638 GB, free: 2.672 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.007203, allocations: 29.7 kB / 0.7639 GB, free: 2.637 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.00729, allocations: 169 kB / 0.764 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 8.476e-06/0.007299, allocations: 7.938 kB / 0.764 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.496e-05/0.007374, allocations: 66.2 kB / 0.7641 GB, free: 2.387 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.526e-05/0.007469, allocations: 326.8 kB / 0.7644 GB, free: 2.059 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.117e-05/0.0075, allocations: 14.17 kB / 0.7644 GB, free: 2.047 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.216e-05/0.007542, allocations: 29.72 kB / 0.7644 GB, free: 2.012 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.147e-05/0.007604, allocations: 49.55 kB / 0.7645 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.007606, allocations: 4 kB / 0.7645 GB, free: 1.953 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001323/0.007738, allocations: 81.58 kB / 0.7646 GB, free: 1.867 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.007751, allocations: 5.594 kB / 0.7646 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.007756, allocations: 0 / 0.7646 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.007774, allocations: 4 kB / 0.7646 GB, free: 1.859 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.007879, allocations: 23.98 kB / 0.7646 GB, free: 1.836 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.007883, allocations: 5.188 kB / 0.7646 GB, free: 1.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.677e-05/0.007929, allocations: 15.89 kB / 0.7646 GB, free: 1.816 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.007944, allocations: 4 kB / 0.7646 GB, free: 1.812 MB / 0.7136 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 9.978e-05/0.008043, allocations: 133.3 kB / 0.7648 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.008087, allocations: 14.61 kB / 0.7648 GB, free: 1.66 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.008214, allocations: 143.5 kB / 0.7649 GB, free: 1.508 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.876e-05/0.008262, allocations: 180.2 kB / 0.7651 GB, free: 1.324 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.756e-05/0.00831, allocations: 180.3 kB / 0.7652 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.775e-05/0.008358, allocations: 184.2 kB / 0.7654 GB, free: 0.9531 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.008579, allocations: 373.3 kB / 0.7658 GB, free: 0.5625 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.228e-05/0.008611, allocations: 109 kB / 0.7659 GB, free: 460 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.8e-05/0.008639, allocations: 107.7 kB / 0.766 GB, free: 348 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.584e-05/0.008685, allocations: 176.3 kB / 0.7662 GB, free: 164 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.814e-05/0.008753, allocations: 184.2 kB / 0.7663 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.718e-05/0.0088, allocations: 180.2 kB / 0.7665 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.672e-05/0.008847, allocations: 180.2 kB / 0.7667 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.008965, allocations: 315.7 kB / 0.767 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.009017, allocations: 116.9 kB / 0.7671 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/0.009081, allocations: 193.2 kB / 0.7673 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.264e-05/0.009164, allocations: 101 kB / 0.7674 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.009216, allocations: 188.2 kB / 0.7675 GB, free: 14.66 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.009247, allocations: 101.9 kB / 0.7676 GB, free: 14.55 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.872e-05/0.009346, allocations: 78.78 kB / 0.7677 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of sort global known variables: time 9e-08/0.009346, allocations: 0.9375 kB / 0.7677 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002466/0.009593, allocations: 43.78 kB / 0.7678 GB, free: 14.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: 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.0001201/0.009713, allocations: 159.6 kB / 0.7679 GB, free: 14.28 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 9.607e-05/0.009809, allocations: 47.98 kB / 0.768 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.009816, allocations: 4 kB / 0.768 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.312e-06/0.009817, allocations: 0 / 0.768 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.01013, allocations: 480.1 kB / 0.7684 GB, free: 13.75 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005036/0.01064, allocations: 446 kB / 0.7688 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.248e-05/0.01069, allocations: 75.81 kB / 0.7689 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 4.659e-05/0.01073, allocations: 17.48 kB / 0.7689 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.348e-05/0.01081, allocations: 63.38 kB / 0.769 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of SimCode: time 7.21e-07/0.01081, allocations: 2.781 kB / 0.769 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of Templates: time 0.004042/0.01485, allocations: 1.181 MB / 0.7701 GB, free: 12 MB / 0.7292 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.015878821257502]