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.001443/0.001443, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001518/0.001518, allocations: 217.6 kB / 23.01 MB, free: 4.609 MB / 14.72 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.316/1.316, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 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.893/2.893, allocations: 0.505 GB / 0.8108 GB, free: 22.01 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 66.94 kB / 1.178 GB, free: 16.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2948, allocations: 180.2 MB / 1.354 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001836/0.2966, allocations: 0.7194 MB / 1.355 GB, free: 7.262 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0001969/0.2968, allocations: 51.78 kB / 1.355 GB, free: 7.211 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.684e-05/0.2969, allocations: 7.938 kB / 1.355 GB, free: 7.203 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.297, allocations: 11.86 kB / 1.355 GB, free: 7.191 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.2971, allocations: 19.92 kB / 1.355 GB, free: 7.172 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 4.674e-05/0.2971, allocations: 15.98 kB / 1.355 GB, free: 7.156 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.2973, allocations: 179.6 kB / 1.355 GB, free: 6.98 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.2976, allocations: 149.3 kB / 1.355 GB, free: 6.832 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 9.798e-05/0.2977, allocations: 99.64 kB / 1.355 GB, free: 6.734 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.2978, allocations: 123.4 kB / 1.355 GB, free: 6.613 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.2979, allocations: 24 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.091e-05/0.2979, allocations: 24 kB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.298, allocations: 71.78 kB / 1.356 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.2981, allocations: 127.2 kB / 1.356 GB, free: 6.371 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.2984, allocations: 366.5 kB / 1.356 GB, free: 6.012 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2984, allocations: 0 / 1.356 GB, free: 6.012 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2984, allocations: 0 / 1.356 GB, free: 6.012 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.2985, allocations: 0 / 1.356 GB, free: 6.012 MB / 1.045 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.0005905/0.299, allocations: 493.5 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 2.888e-05/0.2991, allocations: 12.03 kB / 1.356 GB, free: 5.484 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.2991, allocations: 40.69 kB / 1.357 GB, free: 5.445 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.2995, allocations: 251.6 kB / 1.357 GB, free: 5.172 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/0.2996, allocations: 33.02 kB / 1.357 GB, free: 5.141 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.2996, allocations: 24.38 kB / 1.357 GB, free: 5.117 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004794/0.3001, allocations: 336.3 kB / 1.357 GB, free: 4.773 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3001, allocations: 4.125 kB / 1.357 GB, free: 4.77 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.3001, allocations: 15.94 kB / 1.357 GB, free: 4.754 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.3001, allocations: 11.94 kB / 1.357 GB, free: 4.742 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/0.3005, allocations: 263.8 kB / 1.357 GB, free: 4.484 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.3017, allocations: 0.8751 MB / 1.358 GB, free: 3.562 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 7.803e-05/0.3018, allocations: 57.14 kB / 1.358 GB, free: 3.488 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.938e-05/0.3018, allocations: 37.75 kB / 1.358 GB, free: 3.445 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3018, allocations: 3.938 kB / 1.358 GB, free: 3.441 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.3019, allocations: 38.56 kB / 1.358 GB, free: 3.395 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3019, allocations: 0 / 1.358 GB, free: 3.395 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0002542/0.3021, allocations: 125.4 kB / 1.359 GB, free: 3.266 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.3022, allocations: 81.36 kB / 1.359 GB, free: 3.168 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.3027, allocations: 489.3 kB / 1.359 GB, free: 2.684 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.3027, allocations: 25.7 kB / 1.359 GB, free: 2.652 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.3028, allocations: 187.7 kB / 1.359 GB, free: 2.465 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 9.478e-06/0.3028, allocations: 7.891 kB / 1.359 GB, free: 2.457 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.3029, allocations: 45.7 kB / 1.359 GB, free: 2.406 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.3031, allocations: 342.8 kB / 1.36 GB, free: 2.062 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.703e-05/0.3032, allocations: 55.97 kB / 1.36 GB, free: 2.008 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.3033, allocations: 82.16 kB / 1.36 GB, free: 1.922 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.3034, allocations: 97.66 kB / 1.36 GB, free: 1.82 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3034, allocations: 0 / 1.36 GB, free: 1.82 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002542/0.3037, allocations: 185.3 kB / 1.36 GB, free: 1.633 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3037, allocations: 11.98 kB / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3037, allocations: 0 / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.3037, allocations: 0 / 1.36 GB, free: 1.621 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3038, allocations: 20 kB / 1.36 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.3038, allocations: 3.938 kB / 1.36 GB, free: 1.598 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.476e-05/0.3039, allocations: 31.73 kB / 1.36 GB, free: 1.566 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.3039, allocations: 15.98 kB / 1.36 GB, free: 1.551 MB / 1.045 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.0001782/0.3041, allocations: 197.5 kB / 1.36 GB, free: 1.348 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.219e-05/0.3041, allocations: 31.75 kB / 1.36 GB, free: 1.316 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.3043, allocations: 156.6 kB / 1.36 GB, free: 1.148 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.767e-05/0.3044, allocations: 184.2 kB / 1.361 GB, free: 0.9609 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.497e-05/0.3044, allocations: 180.3 kB / 1.361 GB, free: 0.7773 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.2e-05/0.3045, allocations: 188.2 kB / 1.361 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003638/0.3049, allocations: 496.2 kB / 1.361 GB, free: 52 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.494e-05/0.3049, allocations: 108.9 kB / 1.362 GB, free: 15.94 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.952e-05/0.305, allocations: 105 kB / 1.362 GB, free: 15.83 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.937e-05/0.3051, allocations: 184.2 kB / 1.362 GB, free: 15.64 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.997e-05/0.3051, allocations: 188.8 kB / 1.362 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.097e-05/0.3052, allocations: 176.3 kB / 1.362 GB, free: 15.27 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.68e-05/0.3053, allocations: 180.2 kB / 1.362 GB, free: 15.09 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.3055, allocations: 339.8 kB / 1.363 GB, free: 14.73 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.3056, allocations: 152.7 kB / 1.363 GB, free: 14.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.765e-05/0.3057, allocations: 176.3 kB / 1.363 GB, free: 14.39 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.3058, allocations: 108.9 kB / 1.363 GB, free: 14.28 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.875e-05/0.3059, allocations: 176.3 kB / 1.363 GB, free: 14.1 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.3059, allocations: 108.9 kB / 1.363 GB, free: 13.99 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003852/0.3063, allocations: 367.1 kB / 1.364 GB, free: 13.63 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3063, allocations: 0 / 1.364 GB, free: 13.63 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002489/0.3066, allocations: 31.89 kB / 1.364 GB, free: 13.6 MB / 1.061 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.0001194/0.3067, allocations: 174.5 kB / 1.364 GB, free: 13.42 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.3068, allocations: 71.95 kB / 1.364 GB, free: 13.35 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3068, allocations: 3.938 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.176e-06/0.3068, allocations: 3.938 kB / 1.364 GB, free: 13.34 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.3073, allocations: 481.1 kB / 1.364 GB, free: 12.87 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006095/0.3079, allocations: 0.5098 MB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.3083, allocations: 0.7753 MB / 1.366 GB, free: 11.52 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.954e-05/0.3083, allocations: 19.44 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.3083, allocations: 0 / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of Templates: time 0.004963/0.3133, allocations: 3.299 MB / 1.369 GB, free: 8.211 MB / 1.061 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.059829668985913]