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.00108/0.00108, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001156/0.001156, allocations: 173 kB / 23.49 MB, free: 1.055 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 1.008/1.008, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.099/2.099, allocations: 429.5 MB / 0.6736 GB, free: 4.027 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 3.226e-06/3.226e-06, allocations: 0 / 0.8782 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.293e-05/3.616e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.637 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.0029/0.002936, allocations: 0.8828 MB / 0.879 GB, free: 5.773 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0004181/0.003354, allocations: 87.64 kB / 0.8791 GB, free: 5.688 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.003489, allocations: 5.75 kB / 0.8791 GB, free: 5.684 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.003652, allocations: 24.39 kB / 0.8791 GB, free: 5.66 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.003843, allocations: 13.45 kB / 0.8792 GB, free: 5.648 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001327/0.003976, allocations: 44.55 kB / 0.8792 GB, free: 5.605 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.004341, allocations: 259 kB / 0.8794 GB, free: 5.355 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.004697, allocations: 167.6 kB / 0.8796 GB, free: 5.188 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.004953, allocations: 191.6 kB / 0.8798 GB, free: 5 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.00514, allocations: 124.7 kB / 0.8799 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.249e-05/0.005202, allocations: 32 kB / 0.8799 GB, free: 4.848 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.124e-05/0.005244, allocations: 33.16 kB / 0.88 GB, free: 4.816 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.101e-05/0.005335, allocations: 87.69 kB / 0.8801 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.005437, allocations: 87.77 kB / 0.8801 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.005836, allocations: 283.9 kB / 0.8804 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.005842, allocations: 0 / 0.8804 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.904e-06/0.005844, allocations: 0 / 0.8804 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.307e-05/0.005857, allocations: 5 kB / 0.8804 GB, free: 4.363 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.0008179/0.006675, allocations: 0.6402 MB / 0.881 GB, free: 3.684 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.006721, allocations: 8.031 kB / 0.881 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.00685, allocations: 69.78 kB / 0.8811 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.007281, allocations: 272.5 kB / 0.8814 GB, free: 3.316 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/0.007342, allocations: 34.11 kB / 0.8814 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.62e-05/0.007388, allocations: 36.38 kB / 0.8814 GB, free: 3.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005245/0.007913, allocations: 271.4 kB / 0.8817 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.007925, allocations: 192 / 0.8817 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.963e-05/0.007955, allocations: 19.62 kB / 0.8817 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.007973, allocations: 8.375 kB / 0.8817 GB, free: 2.941 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.008254, allocations: 119.6 kB / 0.8818 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.0096, allocations: 0.8902 MB / 0.8827 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.009761, allocations: 82.03 kB / 0.8828 GB, free: 1.789 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.313e-05/0.009804, allocations: 27.55 kB / 0.8828 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.009828, allocations: 0 / 0.8828 GB, free: 1.754 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.009861, allocations: 42.67 kB / 0.8829 GB, free: 1.703 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.009863, allocations: 0 / 0.8829 GB, free: 1.703 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002837/0.01015, allocations: 85.47 kB / 0.8829 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.0102, allocations: 77.11 kB / 0.883 GB, free: 1.52 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.0106, allocations: 385.6 kB / 0.8834 GB, free: 1.133 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.01062, allocations: 29.7 kB / 0.8834 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.01079, allocations: 275 kB / 0.8837 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.01081, allocations: 11.95 kB / 0.8837 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.01094, allocations: 96.88 kB / 0.8838 GB, free: 0.7109 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.01111, allocations: 0.5157 MB / 0.8843 GB, free: 188 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.701e-05/0.01118, allocations: 16 kB / 0.8843 GB, free: 172 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.459e-05/0.01126, allocations: 59.28 kB / 0.8843 GB, free: 104 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.01138, allocations: 68.39 kB / 0.8844 GB, free: 28 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.01139, allocations: 0 / 0.8844 GB, free: 28 kB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002615/0.01165, allocations: 125.4 kB / 0.8845 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.01167, allocations: 9.562 kB / 0.8845 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.01168, allocations: 3.984 kB / 0.8845 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.0117, allocations: 0 / 0.8845 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.01185, allocations: 28 kB / 0.8846 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.01186, allocations: 11.92 kB / 0.8846 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.197e-05/0.01193, allocations: 19.88 kB / 0.8846 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.898e-05/0.01194, allocations: 4 kB / 0.8846 GB, free: 15.82 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.0001484/0.01209, allocations: 178.5 kB / 0.8848 GB, free: 15.64 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.545e-05/0.01216, allocations: 19.86 kB / 0.8848 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002087/0.01237, allocations: 102.2 kB / 0.8849 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01237, allocations: 64 / 0.8849 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.01238, allocations: 4 kB / 0.8849 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.01238, allocations: 0 / 0.8849 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.01308, allocations: 0.7171 MB / 0.8856 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.01308, allocations: 4 kB / 0.8856 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.126e-05/0.01311, allocations: 7.984 kB / 0.8856 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.483e-06/0.01312, allocations: 0 / 0.8856 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.01313, allocations: 0 / 0.8856 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.047e-06/0.01314, allocations: 7.938 kB / 0.8856 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.01314, allocations: 0 / 0.8856 GB, free: 14.71 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.0133, allocations: 131.8 kB / 0.8857 GB, free: 14.55 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.292e-05/0.01334, allocations: 19.86 kB / 0.8858 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.01336, allocations: 0 / 0.8858 GB, free: 14.53 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.654e-05/0.01341, allocations: 7.984 kB / 0.8858 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.954e-05/0.01344, allocations: 11.97 kB / 0.8858 GB, free: 14.51 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.01344, allocations: 4 kB / 0.8858 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001694/0.01361, allocations: 217.1 kB / 0.886 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01361, allocations: 3.938 kB / 0.886 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002782/0.01389, allocations: 55.73 kB / 0.886 GB, free: 14.23 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 0.000145/0.01404, allocations: 103.2 kB / 0.8861 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.00019/0.01423, allocations: 65.89 kB / 0.8862 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.01423, allocations: 4 kB / 0.8862 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.253e-05/0.01425, allocations: 15.67 kB / 0.8862 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.01453, allocations: 28.5 kB / 0.8863 GB, free: 14 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007774/0.01531, allocations: 461.7 kB / 0.8867 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.985e-05/0.01539, allocations: 87.95 kB / 0.8868 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.828e-05/0.01548, allocations: 33.86 kB / 0.8868 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.01553, allocations: 20.5 kB / 0.8868 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of SimCode: time 1.322e-06/0.01553, allocations: 0 / 0.8868 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of Templates: time 0.005016/0.02055, allocations: 1.193 MB / 0.888 GB, free: 12.18 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.446625922108069]