Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009831/0.0009831, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001135/0.001135, allocations: 181 kB / 24.09 MB, free: 416 kB / 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.9383/0.9383, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.753/1.753, allocations: 359 MB / 0.6055 GB, free: 10.87 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.615e-06/2.615e-06, allocations: 3.938 kB / 0.7875 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.507e-05, allocations: 9.641 kB / 0.7876 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001365/0.00139, allocations: 0.7185 MB / 0.7883 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0001796/0.001569, allocations: 47.84 kB / 0.7883 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.98e-05/0.001639, allocations: 3.938 kB / 0.7883 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 9.604e-05/0.001735, allocations: 20.64 kB / 0.7883 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.001837, allocations: 11.92 kB / 0.7883 GB, free: 11.39 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 4.12e-05/0.001878, allocations: 20.53 kB / 0.7884 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.002029, allocations: 180.7 kB / 0.7885 GB, free: 11.2 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.002212, allocations: 145.3 kB / 0.7887 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.002374, allocations: 175.7 kB / 0.7888 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.867e-05/0.002453, allocations: 92.34 kB / 0.7889 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.002483, allocations: 20 kB / 0.7889 GB, free: 10.78 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.41e-05/0.002507, allocations: 20.94 kB / 0.789 GB, free: 10.76 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.899e-05/0.002556, allocations: 59.77 kB / 0.789 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.815e-05/0.002604, allocations: 68.81 kB / 0.7891 GB, free: 10.63 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.002787, allocations: 211.1 kB / 0.7893 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.002789, allocations: 0 / 0.7893 GB, free: 10.43 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.143e-06/0.002791, allocations: 4.656 kB / 0.7893 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.002796, allocations: 0 / 0.7893 GB, free: 10.42 MB / 0.7448 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.0004464/0.003242, allocations: 0.5794 MB / 0.7899 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.003277, allocations: 8.031 kB / 0.7899 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.561e-05/0.003333, allocations: 56.7 kB / 0.7899 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002108/0.003544, allocations: 242.6 kB / 0.7902 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.003578, allocations: 29.02 kB / 0.7902 GB, free: 9.449 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.003599, allocations: 32.31 kB / 0.7902 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.003819, allocations: 226.7 kB / 0.7904 GB, free: 9.18 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.003828, allocations: 3.625 kB / 0.7904 GB, free: 9.18 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.003842, allocations: 8.375 kB / 0.7904 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.00385, allocations: 8.375 kB / 0.7904 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.044e-05/0.003931, allocations: 71.86 kB / 0.7905 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006073/0.004538, allocations: 0.718 MB / 0.7912 GB, free: 8.34 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.257e-05/0.004581, allocations: 50.19 kB / 0.7913 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.409e-05/0.004595, allocations: 15.38 kB / 0.7913 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.004612, allocations: 8.781 kB / 0.7913 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.00463, allocations: 33.39 kB / 0.7913 GB, free: 8.191 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.713e-06/0.004631, allocations: 0.5938 kB / 0.7913 GB, free: 8.191 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001308/0.004762, allocations: 66.84 kB / 0.7914 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.004791, allocations: 81.05 kB / 0.7915 GB, free: 8.023 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.004995, allocations: 367.9 kB / 0.7918 GB, free: 7.648 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.005005, allocations: 30.33 kB / 0.7918 GB, free: 7.613 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.767e-05/0.005103, allocations: 254.8 kB / 0.7921 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.579e-06/0.005107, allocations: 1.125 kB / 0.7921 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.005176, allocations: 83.25 kB / 0.7922 GB, free: 7.27 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.005294, allocations: 0.5157 MB / 0.7927 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.172e-05/0.005316, allocations: 12.73 kB / 0.7927 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.417e-05/0.00535, allocations: 40.08 kB / 0.7927 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.695e-05/0.005397, allocations: 47.3 kB / 0.7928 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.005399, allocations: 5.281 kB / 0.7928 GB, free: 6.625 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001022/0.005501, allocations: 101.6 kB / 0.7929 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.005513, allocations: 8 kB / 0.7929 GB, free: 6.512 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.005517, allocations: 3.938 kB / 0.7929 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.005528, allocations: 0.5938 kB / 0.7929 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.272e-05/0.005601, allocations: 21.34 kB / 0.7929 GB, free: 6.488 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.005607, allocations: 11.92 kB / 0.7929 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.005633, allocations: 11.89 kB / 0.7929 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.005641, allocations: 4 kB / 0.7929 GB, free: 6.461 MB / 0.7448 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 (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 8.366e-05/0.005725, allocations: 169.9 kB / 0.7931 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.005754, allocations: 22.56 kB / 0.7931 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.005868, allocations: 197 kB / 0.7933 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-05/0.005919, allocations: 264.1 kB / 0.7935 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.598e-05/0.005975, allocations: 276 kB / 0.7938 GB, free: 5.516 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.463e-05/0.00603, allocations: 264.1 kB / 0.7941 GB, free: 5.25 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002192/0.006249, allocations: 0.5511 MB / 0.7946 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.364e-05/0.006283, allocations: 148.9 kB / 0.7947 GB, free: 4.512 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.924e-05/0.006312, allocations: 150.4 kB / 0.7949 GB, free: 4.359 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-05/0.006365, allocations: 268 kB / 0.7951 GB, free: 4.09 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.574e-05/0.006421, allocations: 264.1 kB / 0.7954 GB, free: 3.824 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.479e-05/0.006476, allocations: 276 kB / 0.7957 GB, free: 3.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.191e-05/0.006527, allocations: 268.6 kB / 0.7959 GB, free: 3.277 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.006651, allocations: 467.8 kB / 0.7964 GB, free: 2.793 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.651e-05/0.006697, allocations: 161.3 kB / 0.7965 GB, free: 2.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/0.006763, allocations: 277.3 kB / 0.7968 GB, free: 2.352 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.976e-05/0.006823, allocations: 144.9 kB / 0.7969 GB, free: 2.203 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.792e-05/0.006881, allocations: 272 kB / 0.7972 GB, free: 1.93 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.006911, allocations: 148.8 kB / 0.7973 GB, free: 1.777 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.334e-05/0.007005, allocations: 209.7 kB / 0.7975 GB, free: 1.574 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007005, allocations: 5.969 kB / 0.7975 GB, free: 1.57 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001673/0.007172, allocations: 43.72 kB / 0.7976 GB, free: 1.527 MB / 0.7448 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.0001039/0.007276, allocations: 218.4 kB / 0.7978 GB, free: 1.305 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 7.613e-05/0.007352, allocations: 39.94 kB / 0.7978 GB, free: 1.262 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.007354, allocations: 0.5312 kB / 0.7978 GB, free: 1.262 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.974e-06/0.007356, allocations: 4.719 kB / 0.7978 GB, free: 1.258 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.007683, allocations: 0.7266 MB / 0.7985 GB, free: 0.5273 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.008045, allocations: 484.1 kB / 0.799 GB, free: 24 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.496e-05/0.0081, allocations: 80.88 kB / 0.7991 GB, free: 15.93 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 3.157e-05/0.008132, allocations: 13.48 kB / 0.7991 GB, free: 15.91 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.92e-05/0.008191, allocations: 90.19 kB / 0.7992 GB, free: 15.82 MB / 0.7605 GB Notification: Performance of SimCode: time 7.21e-07/0.008192, allocations: 0.9062 kB / 0.7992 GB, free: 15.82 MB / 0.7605 GB Notification: Performance of Templates: time 0.002981/0.01117, allocations: 1.154 MB / 0.8003 GB, free: 14.72 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/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: 4.755919805727899]