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.0009347/0.0009347, allocations: 80.88 kB / 19.94 MB, free: 4.547 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.000987/0.000987, allocations: 181 kB / 23.36 MB, free: 1.133 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.9784/0.9784, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.436/2.436, allocations: 438.8 MB / 0.6827 GB, free: 13.56 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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 1.623e-06/1.623e-06, allocations: 0 / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.564e-05, allocations: 4.562 kB / 0.8386 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001455/0.001471, allocations: 0.8763 MB / 0.8394 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0002694/0.00174, allocations: 123.5 kB / 0.8395 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.539e-05/0.001816, allocations: 7.938 kB / 0.8396 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.001932, allocations: 19.86 kB / 0.8396 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.002042, allocations: 15.84 kB / 0.8396 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001219/0.002164, allocations: 43.97 kB / 0.8396 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.002391, allocations: 287.3 kB / 0.8399 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.002644, allocations: 258.5 kB / 0.8402 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.00287, allocations: 267.5 kB / 0.8404 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.003006, allocations: 139.7 kB / 0.8405 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.003055, allocations: 48 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 3.324e-05/0.003089, allocations: 40 kB / 0.8406 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.156e-05/0.00317, allocations: 111.7 kB / 0.8407 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 8.79e-05/0.003258, allocations: 119.6 kB / 0.8408 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.003549, allocations: 342.7 kB / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.503e-06/0.00355, allocations: 0 / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003551, allocations: 7.938 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.003556, allocations: 0 / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.000465/0.004021, allocations: 0.5351 MB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.004051, allocations: 8.031 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.004123, allocations: 64.89 kB / 0.8418 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.004376, allocations: 253 kB / 0.842 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/0.004423, allocations: 45.36 kB / 0.8421 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/0.004463, allocations: 40.38 kB / 0.8421 GB, free: 10.51 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.004798, allocations: 334.1 kB / 0.8424 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.004808, allocations: 4.188 kB / 0.8424 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.004832, allocations: 16.38 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.004841, allocations: 12.38 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.005002, allocations: 144.5 kB / 0.8426 GB, free: 9.988 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008305/0.005832, allocations: 0.774 MB / 0.8433 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.564e-05/0.005908, allocations: 57.12 kB / 0.8434 GB, free: 9.113 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.006232, allocations: 33.7 kB / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.006252, allocations: 4 kB / 0.8434 GB, free: 9.07 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.006275, allocations: 42.44 kB / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.006276, allocations: 0 / 0.8435 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0001933/0.00647, allocations: 114.4 kB / 0.8436 GB, free: 8.902 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.006509, allocations: 77.11 kB / 0.8437 GB, free: 8.809 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.006668, allocations: 272.7 kB / 0.8439 GB, free: 8.531 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.006684, allocations: 37.69 kB / 0.8439 GB, free: 8.488 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.006762, allocations: 208.2 kB / 0.8441 GB, free: 8.281 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.006793, allocations: 51.58 kB / 0.8442 GB, free: 8.23 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.249e-05/0.006865, allocations: 85.8 kB / 0.8443 GB, free: 8.137 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.041e-05/0.006946, allocations: 334.8 kB / 0.8446 GB, free: 7.801 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.446e-05/0.00698, allocations: 24.45 kB / 0.8446 GB, free: 7.777 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.121e-05/0.007031, allocations: 54.53 kB / 0.8447 GB, free: 7.719 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.319e-05/0.007115, allocations: 80.7 kB / 0.8447 GB, free: 7.637 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.007117, allocations: 0 / 0.8447 GB, free: 7.637 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001262/0.007243, allocations: 125.6 kB / 0.8449 GB, free: 7.508 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.007256, allocations: 11.94 kB / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.007262, allocations: 80 / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.007276, allocations: 0 / 0.8449 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.007401, allocations: 51.91 kB / 0.8449 GB, free: 7.445 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.007406, allocations: 3.984 kB / 0.8449 GB, free: 7.441 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.018e-05/0.007446, allocations: 27.78 kB / 0.845 GB, free: 7.414 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.00746, allocations: 8 kB / 0.845 GB, free: 7.406 MB / 0.8073 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 (28): * Single equations (assignments): 28 * 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.254e-05/0.007552, allocations: 132.6 kB / 0.8451 GB, free: 7.266 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.007587, allocations: 23.92 kB / 0.8451 GB, free: 7.242 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001411/0.007728, allocations: 119.3 kB / 0.8452 GB, free: 7.121 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-06/0.00773, allocations: 0 / 0.8452 GB, free: 7.121 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.007733, allocations: 4 kB / 0.8452 GB, free: 7.117 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.007736, allocations: 0 / 0.8452 GB, free: 7.117 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/0.008232, allocations: 0.6429 MB / 0.8459 GB, free: 6.398 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.008235, allocations: 4 kB / 0.8459 GB, free: 6.395 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.136e-05/0.008297, allocations: 39.91 kB / 0.8459 GB, free: 6.355 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.0083, allocations: 4 kB / 0.8459 GB, free: 6.352 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-06/0.008309, allocations: 8 kB / 0.8459 GB, free: 6.344 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.008315, allocations: 11.92 kB / 0.8459 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.00832, allocations: 8.406 kB / 0.8459 GB, free: 6.324 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.008465, allocations: 220.9 kB / 0.8461 GB, free: 6.047 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.939e-05/0.008484, allocations: 23.84 kB / 0.8462 GB, free: 6.023 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.008503, allocations: 15.98 kB / 0.8462 GB, free: 6.008 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.152e-05/0.008545, allocations: 7.938 kB / 0.8462 GB, free: 6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.008591, allocations: 31.91 kB / 0.8462 GB, free: 5.969 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.0086, allocations: 8 kB / 0.8462 GB, free: 5.961 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.467e-05/0.008655, allocations: 74.78 kB / 0.8463 GB, free: 5.883 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008655, allocations: 0 / 0.8463 GB, free: 5.883 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001724/0.008827, allocations: 79.61 kB / 0.8464 GB, free: 5.805 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (idxLasTru.y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.086e-05/0.008908, allocations: 96.28 kB / 0.8465 GB, free: 5.699 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001309/0.009039, allocations: 107.5 kB / 0.8466 GB, free: 5.594 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.009043, allocations: 0 / 0.8466 GB, free: 5.594 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.456e-05/0.009098, allocations: 57.58 kB / 0.8466 GB, free: 5.535 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001625/0.00926, allocations: 48.42 kB / 0.8467 GB, free: 5.488 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005557/0.009816, allocations: 0.6113 MB / 0.8473 GB, free: 4.805 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.127e-05/0.009877, allocations: 112.1 kB / 0.8474 GB, free: 4.676 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.223e-05/0.009929, allocations: 26.34 kB / 0.8474 GB, free: 4.652 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.623e-05/0.01002, allocations: 91.36 kB / 0.8475 GB, free: 4.562 MB / 0.8073 GB Notification: Performance of SimCode: time 5.51e-07/0.01002, allocations: 0 / 0.8475 GB, free: 4.562 MB / 0.8073 GB Notification: Performance of Templates: time 0.004057/0.01407, allocations: 2.086 MB / 0.8495 GB, free: 2.52 MB / 0.8073 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.2332688039168715]