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.001608/0.001608, allocations: 93.06 kB / 19.65 MB, free: 280 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.0021/0.0021, allocations: 173 kB / 23.02 MB, free: 1.547 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.9439/0.9439, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.021/2.021, allocations: 429.5 MB / 0.6732 GB, free: 4.047 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.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 4.147e-06/4.147e-06, allocations: 0 / 0.8781 GB, free: 6.344 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.392e-05/3.807e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.34 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001981/0.002019, allocations: 0.7442 MB / 0.8789 GB, free: 5.617 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003192/0.002338, allocations: 47.83 kB / 0.8789 GB, free: 5.57 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.002444, allocations: 3.938 kB / 0.8789 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.002606, allocations: 20.95 kB / 0.8789 GB, free: 5.547 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.002774, allocations: 9.672 kB / 0.879 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.092e-05/0.002845, allocations: 15.98 kB / 0.879 GB, free: 5.523 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000224/0.003069, allocations: 188.6 kB / 0.8792 GB, free: 5.34 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.00336, allocations: 137.4 kB / 0.8793 GB, free: 5.203 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002655/0.003625, allocations: 179.7 kB / 0.8795 GB, free: 5.027 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001204/0.003746, allocations: 83.8 kB / 0.8795 GB, free: 4.945 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.926e-05/0.003795, allocations: 24.92 kB / 0.8796 GB, free: 4.922 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 3.256e-05/0.003828, allocations: 20 kB / 0.8796 GB, free: 4.902 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.003898, allocations: 64.8 kB / 0.8796 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.26e-05/0.003971, allocations: 63.78 kB / 0.8797 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.004259, allocations: 211.1 kB / 0.8799 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.004264, allocations: 5.062 kB / 0.8799 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.464e-06/0.004266, allocations: 0 / 0.8799 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.301e-05/0.004279, allocations: 4 kB / 0.8799 GB, free: 4.562 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006364/0.004916, allocations: 0.5791 MB / 0.8805 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.004975, allocations: 8.031 kB / 0.8805 GB, free: 3.938 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.085e-05/0.005066, allocations: 52.75 kB / 0.8805 GB, free: 3.887 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.005403, allocations: 253.9 kB / 0.8808 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.023e-05/0.005453, allocations: 29.67 kB / 0.8808 GB, free: 3.582 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.005479, allocations: 24.38 kB / 0.8808 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003679/0.005847, allocations: 239.3 kB / 0.8811 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.005859, allocations: 8.109 kB / 0.8811 GB, free: 3.297 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.005878, allocations: 9.688 kB / 0.8811 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.005891, allocations: 8.375 kB / 0.8811 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.006042, allocations: 91.86 kB / 0.8812 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008901/0.006932, allocations: 0.7888 MB / 0.8819 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.812e-05/0.007, allocations: 54.11 kB / 0.882 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.655e-05/0.007026, allocations: 24.06 kB / 0.882 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.007047, allocations: 1.094 kB / 0.882 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.007074, allocations: 41.33 kB / 0.8821 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.884e-06/0.007076, allocations: 0 / 0.8821 GB, free: 2.203 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001952/0.007271, allocations: 70.8 kB / 0.8821 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.007313, allocations: 77.11 kB / 0.8822 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.007577, allocations: 361.2 kB / 0.8825 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.007594, allocations: 29.7 kB / 0.8826 GB, free: 1.637 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.007722, allocations: 254.9 kB / 0.8828 GB, free: 1.383 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.007733, allocations: 11.52 kB / 0.8828 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.535e-05/0.007828, allocations: 75.34 kB / 0.8829 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0003766/0.008205, allocations: 0.5118 MB / 0.8834 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.237e-05/0.008247, allocations: 11.98 kB / 0.8834 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.981e-05/0.008297, allocations: 43.36 kB / 0.8834 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.952e-05/0.008377, allocations: 63.28 kB / 0.8835 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.008379, allocations: 0 / 0.8835 GB, free: 0.6367 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001433/0.008523, allocations: 101.6 kB / 0.8836 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.008544, allocations: 4 kB / 0.8836 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.00855, allocations: 0.9062 kB / 0.8836 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.008567, allocations: 3.938 kB / 0.8836 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.008676, allocations: 28.52 kB / 0.8836 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.964e-06/0.008684, allocations: 7.984 kB / 0.8836 GB, free: 500 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.655e-05/0.008721, allocations: 24.34 kB / 0.8837 GB, free: 476 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.008736, allocations: 5.156 kB / 0.8837 GB, free: 472 kB / 0.8386 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 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.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 0.000111/0.008847, allocations: 170.1 kB / 0.8838 GB, free: 292 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.008877, allocations: 15.91 kB / 0.8839 GB, free: 276 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.009041, allocations: 196.9 kB / 0.884 GB, free: 64 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.253e-05/0.009124, allocations: 276.2 kB / 0.8843 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.078e-05/0.009184, allocations: 272 kB / 0.8846 GB, free: 15.51 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.334e-05/0.009248, allocations: 272.1 kB / 0.8848 GB, free: 15.24 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.009539, allocations: 0.613 MB / 0.8854 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.585e-05/0.009575, allocations: 144.9 kB / 0.8856 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.674e-05/0.009611, allocations: 148.9 kB / 0.8857 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.4e-05/0.009675, allocations: 268 kB / 0.886 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.755e-05/0.009743, allocations: 264.1 kB / 0.8862 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.802e-05/0.009811, allocations: 280 kB / 0.8865 GB, free: 13.46 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-05/0.009876, allocations: 272 kB / 0.8867 GB, free: 13.19 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001992/0.01008, allocations: 459.8 kB / 0.8872 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.01014, allocations: 172.8 kB / 0.8873 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.884e-05/0.01022, allocations: 268 kB / 0.8876 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.093e-05/0.01029, allocations: 148.9 kB / 0.8877 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.064e-05/0.01036, allocations: 268 kB / 0.888 GB, free: 11.85 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.01039, allocations: 148.8 kB / 0.8881 GB, free: 11.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001366/0.01053, allocations: 217.1 kB / 0.8883 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01053, allocations: 0 / 0.8883 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001908/0.01072, allocations: 47.78 kB / 0.8884 GB, free: 11.44 MB / 0.8542 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.0001279/0.01085, allocations: 214.4 kB / 0.8886 GB, free: 11.22 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001556/0.011, allocations: 51.94 kB / 0.8886 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.01101, allocations: 0 / 0.8886 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.022e-06/0.01101, allocations: 0 / 0.8886 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.01141, allocations: 0.7223 MB / 0.8893 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005042/0.01192, allocations: 487.7 kB / 0.8898 GB, free: 9.926 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.222e-05/0.01198, allocations: 79.81 kB / 0.8899 GB, free: 9.828 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.66e-05/0.01204, allocations: 33.45 kB / 0.8899 GB, free: 9.793 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.01208, allocations: 16.48 kB / 0.8899 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of SimCode: time 9.91e-07/0.01208, allocations: 0 / 0.8899 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of Templates: time 0.003992/0.01607, allocations: 1.113 MB / 0.891 GB, free: 8.699 MB / 0.8542 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.433617018163204]