Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.0009865/0.0009865, 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.0009469/0.0009469, 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.9141/0.9141, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.361/2.361, allocations: 438.8 MB / 0.6827 GB, free: 13.61 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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.8386 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1e-05/1.24e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001406/0.001418, allocations: 1.014 MB / 0.8396 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.000307/0.001725, allocations: 167.3 kB / 0.8397 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.323e-05/0.001809, allocations: 11.94 kB / 0.8397 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.001926, allocations: 35.72 kB / 0.8398 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.002036, allocations: 23.78 kB / 0.8398 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001256/0.002162, allocations: 71.88 kB / 0.8399 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.002402, allocations: 343.3 kB / 0.8402 GB, free: 12.61 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.002662, allocations: 301.5 kB / 0.8405 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.002905, allocations: 303.4 kB / 0.8408 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.00304, allocations: 163.6 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 4.962e-05/0.00309, allocations: 51.98 kB / 0.841 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 3.634e-05/0.003126, allocations: 52 kB / 0.841 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.064e-05/0.003207, allocations: 119.6 kB / 0.8411 GB, free: 11.62 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 8.835e-05/0.003295, allocations: 147.6 kB / 0.8413 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.003568, allocations: 382.5 kB / 0.8416 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.003569, allocations: 0 / 0.8416 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.31e-07/0.00357, allocations: 0 / 0.8416 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.998e-06/0.003574, allocations: 0 / 0.8416 GB, free: 11.11 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.0004602/0.004034, allocations: 0.5972 MB / 0.8422 GB, free: 10.48 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.004064, allocations: 8.625 kB / 0.8422 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.452e-05/0.004138, allocations: 72.89 kB / 0.8423 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.004384, allocations: 266 kB / 0.8425 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.004426, allocations: 57.36 kB / 0.8426 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.004465, allocations: 44.38 kB / 0.8426 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.004813, allocations: 378 kB / 0.843 GB, free: 9.629 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.004823, allocations: 192 / 0.843 GB, free: 9.629 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.00485, allocations: 20.38 kB / 0.843 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.004858, allocations: 12.38 kB / 0.843 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.00503, allocations: 152.5 kB / 0.8432 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000884/0.005914, allocations: 0.8441 MB / 0.844 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.006135, allocations: 97.09 kB / 0.8441 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.31e-05/0.006168, allocations: 34.03 kB / 0.8441 GB, free: 8.426 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.006185, allocations: 7.984 kB / 0.8441 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.006204, allocations: 34.56 kB / 0.8442 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=20): time 1.173e-06/0.006205, allocations: 0 / 0.8442 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of matching and sorting (n=20): time 0.0001795/0.006385, allocations: 126.2 kB / 0.8443 GB, free: 8.246 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.006416, allocations: 81.09 kB / 0.8444 GB, free: 8.148 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.006605, allocations: 304.5 kB / 0.8447 GB, free: 7.84 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.006617, allocations: 29.7 kB / 0.8447 GB, free: 7.805 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.25e-05/0.006699, allocations: 232.9 kB / 0.8449 GB, free: 7.574 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.006732, allocations: 63.47 kB / 0.845 GB, free: 7.512 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/0.006805, allocations: 93.58 kB / 0.8451 GB, free: 7.414 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.006936, allocations: 334.7 kB / 0.8454 GB, free: 7.078 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.062e-05/0.006977, allocations: 27.97 kB / 0.8454 GB, free: 7.051 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.871e-05/0.007025, allocations: 49.67 kB / 0.8455 GB, free: 6.996 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.67e-05/0.007112, allocations: 105.3 kB / 0.8456 GB, free: 6.891 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.007114, allocations: 0 / 0.8456 GB, free: 6.891 MB / 0.8073 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001356/0.00725, allocations: 141.5 kB / 0.8457 GB, free: 6.746 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.00726, allocations: 4 kB / 0.8457 GB, free: 6.742 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.007264, allocations: 4 kB / 0.8457 GB, free: 6.738 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.007275, allocations: 0 / 0.8457 GB, free: 6.738 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.007382, allocations: 51.91 kB / 0.8457 GB, free: 6.688 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.007387, allocations: 7.938 kB / 0.8458 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.275e-05/0.007429, allocations: 27.78 kB / 0.8458 GB, free: 6.652 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.007443, allocations: 8 kB / 0.8458 GB, free: 6.645 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: 18 (idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y,idxFirTru.booToInt[6].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[1].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.907e-05/0.007542, allocations: 138.6 kB / 0.8459 GB, free: 6.496 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.007577, allocations: 23.92 kB / 0.8459 GB, free: 6.473 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001528/0.007729, allocations: 131.4 kB / 0.8461 GB, free: 6.336 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.007731, allocations: 4 kB / 0.8461 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.007733, allocations: 0 / 0.8461 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.007737, allocations: 3.938 kB / 0.8461 GB, free: 6.328 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005492/0.008286, allocations: 0.7242 MB / 0.8468 GB, free: 5.516 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.008291, allocations: 7.984 kB / 0.8468 GB, free: 5.508 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.356e-05/0.008354, allocations: 39.92 kB / 0.8468 GB, free: 5.469 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.008359, allocations: 4 kB / 0.8468 GB, free: 5.465 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.00837, allocations: 15.98 kB / 0.8468 GB, free: 5.449 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.008375, allocations: 8.469 kB / 0.8469 GB, free: 5.441 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.008378, allocations: 4 kB / 0.8469 GB, free: 5.438 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.008667, allocations: 270.9 kB / 0.8471 GB, free: 5.098 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.008687, allocations: 27.8 kB / 0.8471 GB, free: 5.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.008707, allocations: 15.98 kB / 0.8472 GB, free: 5.055 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.528e-05/0.008752, allocations: 4 kB / 0.8472 GB, free: 5.051 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.008798, allocations: 35.84 kB / 0.8472 GB, free: 5.016 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.00881, allocations: 15.98 kB / 0.8472 GB, free: 5 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.602e-05/0.008866, allocations: 86.64 kB / 0.8473 GB, free: 4.914 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.008866, allocations: 4 kB / 0.8473 GB, free: 4.91 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001781/0.009044, allocations: 87.62 kB / 0.8474 GB, free: 4.824 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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 6.734e-05/0.009111, allocations: 92.3 kB / 0.8475 GB, free: 4.727 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001389/0.00925, allocations: 123.1 kB / 0.8476 GB, free: 4.605 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.009255, allocations: 4 kB / 0.8476 GB, free: 4.602 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.992e-05/0.009315, allocations: 64.83 kB / 0.8477 GB, free: 4.535 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001647/0.00948, allocations: 45.86 kB / 0.8477 GB, free: 4.492 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006109/0.01009, allocations: 0.7157 MB / 0.8484 GB, free: 3.688 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.288e-05/0.01015, allocations: 112.3 kB / 0.8485 GB, free: 3.559 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.619e-05/0.01021, allocations: 30.28 kB / 0.8485 GB, free: 3.527 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.01029, allocations: 87.36 kB / 0.8486 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of SimCode: time 5.31e-07/0.0103, allocations: 0 / 0.8486 GB, free: 3.441 MB / 0.8073 GB Notification: Performance of Templates: time 0.004222/0.01452, allocations: 2.079 MB / 0.8506 GB, free: 1.402 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.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.202562612015754]