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.001371/0.001371, allocations: 81.08 kB / 19.87 MB, free: 4.621 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.001124/0.001124, allocations: 169 kB / 23.27 MB, free: 1.219 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.9467/0.9467, allocations: 177.1 MB / 203.7 MB, free: 5.512 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.236/2.236, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 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 2.655e-06/2.655e-06, allocations: 0 / 0.8897 GB, free: 9.766 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.472e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.762 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00206/0.002084, allocations: 0.8873 MB / 0.8906 GB, free: 8.879 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0003646/0.002449, allocations: 115.6 kB / 0.8907 GB, free: 8.766 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.002548, allocations: 7.938 kB / 0.8907 GB, free: 8.758 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.002687, allocations: 23.8 kB / 0.8907 GB, free: 8.734 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.002825, allocations: 15.86 kB / 0.8908 GB, free: 8.719 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.002982, allocations: 47.91 kB / 0.8908 GB, free: 8.672 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.003295, allocations: 279.4 kB / 0.8911 GB, free: 8.398 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003669/0.003662, allocations: 256.6 kB / 0.8913 GB, free: 8.137 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.003964, allocations: 255.5 kB / 0.8916 GB, free: 7.887 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.004145, allocations: 143.7 kB / 0.8917 GB, free: 7.746 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 6.535e-05/0.004211, allocations: 43.94 kB / 0.8917 GB, free: 7.703 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.535e-05/0.004306, allocations: 44 kB / 0.8918 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 9.29e-05/0.004399, allocations: 107.7 kB / 0.8919 GB, free: 7.555 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.004513, allocations: 123.7 kB / 0.892 GB, free: 7.434 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.004862, allocations: 338.7 kB / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.004864, allocations: 0 / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of FrontEnd: time 7.41e-07/0.004864, allocations: 0 / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.004869, allocations: 0 / 0.8923 GB, free: 7.102 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0006962/0.005565, allocations: 0.7027 MB / 0.893 GB, free: 6.359 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.005602, allocations: 12.03 kB / 0.893 GB, free: 6.348 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.005714, allocations: 84.61 kB / 0.8931 GB, free: 6.266 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.006061, allocations: 291.8 kB / 0.8934 GB, free: 5.953 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.548e-05/0.006116, allocations: 41.36 kB / 0.8934 GB, free: 5.914 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.006166, allocations: 40.38 kB / 0.8935 GB, free: 5.875 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.006722, allocations: 329 kB / 0.8938 GB, free: 5.535 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.006734, allocations: 192 / 0.8938 GB, free: 5.535 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.185e-05/0.006766, allocations: 20.38 kB / 0.8938 GB, free: 5.516 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.006779, allocations: 12.38 kB / 0.8938 GB, free: 5.504 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.007014, allocations: 126.8 kB / 0.8939 GB, free: 5.383 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.008303, allocations: 1 MB / 0.8949 GB, free: 4.344 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001126/0.008415, allocations: 78.03 kB / 0.895 GB, free: 4.242 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.264e-05/0.008468, allocations: 39.36 kB / 0.895 GB, free: 4.195 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.008488, allocations: 4 kB / 0.895 GB, free: 4.191 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.008514, allocations: 37.33 kB / 0.8951 GB, free: 4.145 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 1.462e-06/0.008515, allocations: 8 kB / 0.8951 GB, free: 4.137 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16): time 0.0003037/0.008819, allocations: 141.7 kB / 0.8952 GB, free: 3.992 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.008854, allocations: 81.11 kB / 0.8953 GB, free: 3.895 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003359/0.00919, allocations: 376 kB / 0.8956 GB, free: 3.508 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.00921, allocations: 33.7 kB / 0.8957 GB, free: 3.469 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/0.009375, allocations: 290.8 kB / 0.8959 GB, free: 3.18 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.033e-05/0.009425, allocations: 59.52 kB / 0.896 GB, free: 3.121 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.009564, allocations: 111.5 kB / 0.8961 GB, free: 3 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.009731, allocations: 0.5196 MB / 0.8966 GB, free: 2.469 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.616e-05/0.009787, allocations: 20.45 kB / 0.8966 GB, free: 2.449 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.78e-05/0.009875, allocations: 73.59 kB / 0.8967 GB, free: 2.371 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.01001, allocations: 81.59 kB / 0.8968 GB, free: 2.285 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.01002, allocations: 4 kB / 0.8968 GB, free: 2.281 MB / 0.8542 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004141/0.01043, allocations: 172.7 kB / 0.897 GB, free: 2.109 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.01045, allocations: 4 kB / 0.897 GB, free: 2.105 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01045, allocations: 4 kB / 0.897 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.01046, allocations: 0 / 0.897 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.01065, allocations: 51.91 kB / 0.897 GB, free: 2.051 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.01065, allocations: 0 / 0.897 GB, free: 2.051 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.685e-05/0.01072, allocations: 23.89 kB / 0.897 GB, free: 2.027 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.01074, allocations: 12 kB / 0.897 GB, free: 2.016 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: 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 (28): * Single equations (assignments): 28 * 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.0001281/0.01087, allocations: 176.5 kB / 0.8972 GB, free: 1.832 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.01093, allocations: 35.8 kB / 0.8972 GB, free: 1.797 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.01118, allocations: 131.3 kB / 0.8974 GB, free: 1.66 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.01118, allocations: 4 kB / 0.8974 GB, free: 1.656 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.01118, allocations: 0 / 0.8974 GB, free: 1.656 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.01119, allocations: 7.984 kB / 0.8974 GB, free: 1.648 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008877/0.01207, allocations: 0.9088 MB / 0.8983 GB, free: 0.6367 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.01208, allocations: 7.984 kB / 0.8983 GB, free: 0.6289 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.01218, allocations: 36.42 kB / 0.8983 GB, free: 0.5938 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.01219, allocations: 11.94 kB / 0.8983 GB, free: 0.582 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.0122, allocations: 8 kB / 0.8983 GB, free: 0.5742 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-05/0.01221, allocations: 19.86 kB / 0.8984 GB, free: 0.5547 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.01222, allocations: 8 kB / 0.8984 GB, free: 0.5469 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002704/0.01249, allocations: 295.4 kB / 0.8986 GB, free: 176 kB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.01252, allocations: 27.83 kB / 0.8987 GB, free: 148 kB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.01254, allocations: 8 kB / 0.8987 GB, free: 140 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.749e-05/0.01262, allocations: 11.94 kB / 0.8987 GB, free: 128 kB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.01268, allocations: 31.91 kB / 0.8987 GB, free: 96 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.0127, allocations: 12 kB / 0.8987 GB, free: 84 kB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001477/0.01285, allocations: 205 kB / 0.8989 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9e-08/0.01285, allocations: 0 / 0.8989 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003329/0.01318, allocations: 75.62 kB / 0.899 GB, free: 15.81 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (idxLasTru.y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.812e-05/0.01328, allocations: 111.1 kB / 0.8991 GB, free: 15.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001964/0.01348, allocations: 115.4 kB / 0.8992 GB, free: 15.58 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.01348, allocations: 4 kB / 0.8992 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.01356, allocations: 59.53 kB / 0.8993 GB, free: 15.51 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.01388, allocations: 40.47 kB / 0.8993 GB, free: 15.47 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008179/0.0147, allocations: 0.6711 MB / 0.9 GB, free: 14.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.708e-05/0.01478, allocations: 112.3 kB / 0.9001 GB, free: 14.57 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 8.719e-05/0.01487, allocations: 26.28 kB / 0.9001 GB, free: 14.55 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001308/0.015, allocations: 106.2 kB / 0.9002 GB, free: 14.44 MB / 0.8698 GB Notification: Performance of SimCode: time 9.12e-07/0.015, allocations: 0 / 0.9002 GB, free: 14.44 MB / 0.8698 GB Notification: Performance of Templates: time 0.005393/0.0204, allocations: 2.05 MB / 0.9022 GB, free: 12.44 MB / 0.8698 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: 4.917453630361706]