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.0009649/0.0009649, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0009328/0.0009328, allocations: 161 kB / 23.82 MB, free: 0.75 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.8897/0.8897, allocations: 177.1 MB / 204.2 MB, free: 5.598 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.755/1.755, allocations: 359 MB / 0.6052 GB, free: 10.98 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.154e-06/2.154e-06, allocations: 0 / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.548e-05/1.763e-05, allocations: 4.906 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.005598/0.005615, allocations: 0.7416 MB / 0.7878 GB, free: 11.75 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.000205/0.00582, allocations: 43.84 kB / 0.7879 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.47e-05/0.005885, allocations: 5.094 kB / 0.7879 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.005999, allocations: 19.86 kB / 0.7879 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.006115, allocations: 7.922 kB / 0.7879 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 5.32e-05/0.006168, allocations: 28.47 kB / 0.7879 GB, free: 11.65 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.006371, allocations: 183.5 kB / 0.7881 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.006595, allocations: 138.2 kB / 0.7882 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.006788, allocations: 175.7 kB / 0.7884 GB, free: 11.16 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.549e-05/0.006883, allocations: 88.69 kB / 0.7885 GB, free: 11.08 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 4.384e-05/0.006927, allocations: 20 kB / 0.7885 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.021e-05/0.006957, allocations: 24.59 kB / 0.7885 GB, free: 11.04 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.081e-05/0.007018, allocations: 63.77 kB / 0.7886 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.846e-05/0.007086, allocations: 65.42 kB / 0.7886 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.007309, allocations: 207.1 kB / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.007311, allocations: 0 / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.02e-07/0.007312, allocations: 0 / 0.7888 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.00732, allocations: 7.438 kB / 0.7888 GB, free: 10.7 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.0004917/0.007811, allocations: 0.578 MB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.007846, allocations: 11.97 kB / 0.7894 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.007924, allocations: 56.7 kB / 0.7895 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.008214, allocations: 253 kB / 0.7897 GB, free: 9.742 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.008256, allocations: 25.03 kB / 0.7897 GB, free: 9.719 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/0.008286, allocations: 28.31 kB / 0.7898 GB, free: 9.691 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003361/0.01165, allocations: 246.6 kB / 0.79 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.01166, allocations: 0.875 kB / 0.79 GB, free: 9.434 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.01168, allocations: 8.375 kB / 0.79 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.01169, allocations: 8.969 kB / 0.79 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.01186, allocations: 89.47 kB / 0.7901 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008501/0.01271, allocations: 0.7839 MB / 0.7909 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.993e-05/0.01277, allocations: 54.12 kB / 0.7909 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.527e-05/0.01279, allocations: 19.5 kB / 0.7909 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.01281, allocations: 0.625 kB / 0.7909 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.01283, allocations: 42.45 kB / 0.791 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 9.41e-07/0.01283, allocations: 0 / 0.791 GB, free: 8.348 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001818/0.01302, allocations: 66.25 kB / 0.791 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.01305, allocations: 81.11 kB / 0.7911 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.01334, allocations: 368.8 kB / 0.7915 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.01336, allocations: 25.7 kB / 0.7915 GB, free: 7.777 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.01347, allocations: 248.1 kB / 0.7917 GB, free: 7.531 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.256e-06/0.01348, allocations: 8 kB / 0.7917 GB, free: 7.523 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.86e-05/0.01357, allocations: 79.3 kB / 0.7918 GB, free: 7.438 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.01371, allocations: 0.5125 MB / 0.7923 GB, free: 6.914 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.521e-05/0.01375, allocations: 8 kB / 0.7923 GB, free: 6.906 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.226e-05/0.0138, allocations: 48.61 kB / 0.7924 GB, free: 6.852 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.734e-05/0.01388, allocations: 59.28 kB / 0.7924 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.01388, allocations: 0 / 0.7924 GB, free: 6.785 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001492/0.01403, allocations: 111.1 kB / 0.7925 GB, free: 6.672 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.01404, allocations: 7.984 kB / 0.7925 GB, free: 6.664 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.01405, allocations: 0 / 0.7925 GB, free: 6.664 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.01406, allocations: 3.938 kB / 0.7925 GB, free: 6.66 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.817e-05/0.01416, allocations: 24.5 kB / 0.7926 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.01416, allocations: 4 kB / 0.7926 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003046/0.01721, allocations: 13.27 kB / 0.7926 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.01723, allocations: 15.98 kB / 0.7926 GB, free: 6.605 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 (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.0001109/0.01734, allocations: 174.9 kB / 0.7928 GB, free: 6.426 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.051e-05/0.0174, allocations: 19.91 kB / 0.7928 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.01754, allocations: 196.9 kB / 0.793 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.726e-05/0.01761, allocations: 276 kB / 0.7932 GB, free: 5.922 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-05/0.01767, allocations: 268 kB / 0.7935 GB, free: 5.652 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-05/0.01774, allocations: 268.1 kB / 0.7938 GB, free: 5.383 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003123/0.01805, allocations: 0.6058 MB / 0.7943 GB, free: 4.734 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.781e-05/0.01809, allocations: 149.5 kB / 0.7945 GB, free: 4.582 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.521e-05/0.01812, allocations: 148.9 kB / 0.7946 GB, free: 4.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.46e-05/0.0182, allocations: 277.2 kB / 0.7949 GB, free: 4.152 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.576e-05/0.01826, allocations: 268 kB / 0.7951 GB, free: 3.883 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.479e-05/0.01833, allocations: 272 kB / 0.7954 GB, free: 3.609 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-05/0.0184, allocations: 268.5 kB / 0.7957 GB, free: 3.34 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.01854, allocations: 465 kB / 0.7961 GB, free: 2.859 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.814e-05/0.0186, allocations: 160.8 kB / 0.7963 GB, free: 2.695 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.966e-05/0.01868, allocations: 272 kB / 0.7965 GB, free: 2.422 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.01877, allocations: 149.8 kB / 0.7967 GB, free: 2.27 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.361e-05/0.01884, allocations: 272 kB / 0.7969 GB, free: 1.996 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.995e-05/0.01888, allocations: 148.8 kB / 0.7971 GB, free: 1.844 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001766/0.01906, allocations: 218 kB / 0.7973 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/0.01906, allocations: 0 / 0.7973 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002847/0.01935, allocations: 42.06 kB / 0.7973 GB, free: 1.59 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.000108/0.01945, allocations: 218.4 kB / 0.7975 GB, free: 1.367 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001309/0.01958, allocations: 55.92 kB / 0.7976 GB, free: 1.309 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.01959, allocations: 0 / 0.7976 GB, free: 1.309 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.443e-06/0.01959, allocations: 2.781 kB / 0.7976 GB, free: 1.309 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.02006, allocations: 0.7261 MB / 0.7983 GB, free: 0.5781 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.02356, allocations: 491.6 kB / 0.7988 GB, free: 68 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.174e-05/0.02362, allocations: 75.81 kB / 0.7988 GB, free: 15.97 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 6.772e-05/0.02369, allocations: 33.45 kB / 0.7989 GB, free: 15.94 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.283e-05/0.02372, allocations: 16.5 kB / 0.7989 GB, free: 15.92 MB / 0.7605 GB Notification: Performance of SimCode: time 7.71e-07/0.02372, allocations: 0 / 0.7989 GB, free: 15.92 MB / 0.7605 GB Notification: Performance of Templates: time 0.006595/0.03032, allocations: 1.116 MB / 0.8 GB, free: 14.84 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.795952206943184]