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.001234/0.001234, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.001231/0.001231, allocations: 169 kB / 23.02 MB, free: 1.551 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.9774/0.9774, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.167/2.167, allocations: 429.5 MB / 0.6732 GB, free: 4.031 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.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 2.635e-06/2.635e-06, allocations: 0 / 0.8781 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.928e-05, allocations: 6.312 kB / 0.8781 GB, free: 6.363 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002496/0.002526, allocations: 0.8889 MB / 0.879 GB, free: 5.496 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003723/0.002898, allocations: 91.62 kB / 0.8791 GB, free: 5.406 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.003003, allocations: 4 kB / 0.8791 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.00316, allocations: 29.64 kB / 0.8791 GB, free: 5.375 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.003315, allocations: 12.62 kB / 0.8791 GB, free: 5.363 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001139/0.003429, allocations: 46.45 kB / 0.8792 GB, free: 5.32 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.003754, allocations: 251.1 kB / 0.8794 GB, free: 5.078 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000344/0.004098, allocations: 174.9 kB / 0.8796 GB, free: 4.902 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.004346, allocations: 191.5 kB / 0.8798 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.004546, allocations: 119.7 kB / 0.8799 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.564e-05/0.004611, allocations: 33.03 kB / 0.8799 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.807e-05/0.00466, allocations: 36 kB / 0.88 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.482e-05/0.004754, allocations: 91.67 kB / 0.88 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.004865, allocations: 84.86 kB / 0.8801 GB, free: 4.359 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.005238, allocations: 282.9 kB / 0.8804 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.005241, allocations: 0 / 0.8804 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/0.005242, allocations: 1.062 kB / 0.8804 GB, free: 4.082 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.00525, allocations: 0 / 0.8804 GB, free: 4.082 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0007726/0.006023, allocations: 0.6374 MB / 0.881 GB, free: 3.406 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.006072, allocations: 8.031 kB / 0.881 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.00619, allocations: 68.66 kB / 0.8811 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.006638, allocations: 273.5 kB / 0.8814 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.409e-05/0.006702, allocations: 40.95 kB / 0.8814 GB, free: 3 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.006754, allocations: 38.02 kB / 0.8814 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005297/0.007283, allocations: 274.7 kB / 0.8817 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.007301, allocations: 192 / 0.8817 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.452e-05/0.007336, allocations: 16.31 kB / 0.8817 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.007352, allocations: 12.88 kB / 0.8817 GB, free: 2.648 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002912/0.007643, allocations: 113.5 kB / 0.8818 GB, free: 2.539 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.00866, allocations: 0.894 MB / 0.8827 GB, free: 1.605 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.008781, allocations: 74.11 kB / 0.8828 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.423e-05/0.008815, allocations: 28.89 kB / 0.8828 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.008841, allocations: 0 / 0.8828 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.008866, allocations: 45.33 kB / 0.8828 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.008867, allocations: 0 / 0.8828 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.00022/0.009087, allocations: 86.83 kB / 0.8829 GB, free: 1.328 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.009121, allocations: 77.11 kB / 0.883 GB, free: 1.234 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.009385, allocations: 388 kB / 0.8834 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.009397, allocations: 26.36 kB / 0.8834 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.009527, allocations: 272.7 kB / 0.8837 GB, free: 0.543 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.051e-05/0.009537, allocations: 11.95 kB / 0.8837 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.324e-05/0.009631, allocations: 95.28 kB / 0.8838 GB, free: 440 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.009779, allocations: 0.5157 MB / 0.8843 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.647e-05/0.009826, allocations: 15.98 kB / 0.8843 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.038e-05/0.009886, allocations: 57.75 kB / 0.8843 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.647e-05/0.009972, allocations: 63.31 kB / 0.8844 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.009975, allocations: 0 / 0.8844 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001874/0.01016, allocations: 137.4 kB / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.01018, allocations: 6.5 kB / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.01019, allocations: 3.984 kB / 0.8845 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.01021, allocations: 6.062 kB / 0.8845 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.01033, allocations: 31.98 kB / 0.8846 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.01034, allocations: 4 kB / 0.8846 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.853e-05/0.01038, allocations: 11.89 kB / 0.8846 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.01039, allocations: 8 kB / 0.8846 GB, free: 15.55 MB / 0.8542 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 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001162/0.01051, allocations: 184.3 kB / 0.8848 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.01055, allocations: 19.86 kB / 0.8848 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001722/0.01072, allocations: 102.3 kB / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01073, allocations: 0 / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.01073, allocations: 3.984 kB / 0.8849 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.01074, allocations: 4 kB / 0.8849 GB, free: 15.22 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.01114, allocations: 0.7132 MB / 0.8856 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.01114, allocations: 0 / 0.8856 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.75e-05/0.01116, allocations: 7.938 kB / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.01116, allocations: 0 / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.01117, allocations: 4.188 kB / 0.8856 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.01117, allocations: 7.938 kB / 0.8856 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.01117, allocations: 0 / 0.8856 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.481e-05/0.01126, allocations: 131.3 kB / 0.8857 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.01129, allocations: 19.86 kB / 0.8858 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.0113, allocations: 0 / 0.8858 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.197e-05/0.01132, allocations: 7.938 kB / 0.8858 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.943e-05/0.01135, allocations: 11.98 kB / 0.8858 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.01135, allocations: 0 / 0.8858 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001235/0.01148, allocations: 217.1 kB / 0.886 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01148, allocations: 0 / 0.886 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001755/0.01165, allocations: 63.73 kB / 0.886 GB, free: 13.95 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 9.396e-05/0.01175, allocations: 95.25 kB / 0.8861 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001414/0.01189, allocations: 63.59 kB / 0.8862 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.01189, allocations: 0 / 0.8862 GB, free: 13.78 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.765e-05/0.01191, allocations: 27.55 kB / 0.8862 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.01212, allocations: 24.5 kB / 0.8862 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005706/0.01269, allocations: 458 kB / 0.8867 GB, free: 13.23 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.748e-05/0.01276, allocations: 87.97 kB / 0.8868 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.002e-05/0.01283, allocations: 37.59 kB / 0.8868 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.01287, allocations: 16.5 kB / 0.8868 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of SimCode: time 7.81e-07/0.01287, allocations: 0 / 0.8868 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of Templates: time 0.003707/0.01658, allocations: 1.199 MB / 0.888 GB, free: 11.9 MB / 0.8542 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.512405971996486]