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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 110.4 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 186.9 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.531/2.531, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7915/0.7929, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002049/0.795, allocations: 0.7012 MB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002512/0.7953, allocations: 51.84 kB / 1.209 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.012e-05/0.7954, allocations: 8 kB / 1.209 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.7955, allocations: 15.8 kB / 1.209 GB, free: 12.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.7957, allocations: 15.92 kB / 1.209 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.765e-05/0.7957, allocations: 11.98 kB / 1.209 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.796, allocations: 187.5 kB / 1.209 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003698/0.7963, allocations: 256.9 kB / 1.21 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.7965, allocations: 103.6 kB / 1.21 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.7966, allocations: 115.5 kB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.7967, allocations: 24 kB / 1.21 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.014e-05/0.7967, allocations: 28 kB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.884e-05/0.7968, allocations: 67.78 kB / 1.21 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.7969, allocations: 127.3 kB / 1.21 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.7972, allocations: 366.6 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.7973, allocations: 3.984 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.797e-06/0.7973, allocations: 4 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.11e-05/0.7973, allocations: 0 / 1.21 GB, free: 11.53 MB / 0.9356 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.0007/0.798, allocations: 0.5474 MB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.798, allocations: 8.031 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.214e-05/0.7981, allocations: 36.5 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003924/0.7985, allocations: 313.2 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.7986, allocations: 32.92 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.53e-05/0.7986, allocations: 24.38 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005065/0.7991, allocations: 343 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.7992, allocations: 192 / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.7992, allocations: 11.94 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.577e-06/0.7992, allocations: 8 kB / 1.212 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003692/0.7996, allocations: 259.8 kB / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.8008, allocations: 0.9052 MB / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.927e-05/0.8009, allocations: 57.14 kB / 1.213 GB, free: 8.84 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.376e-05/0.8009, allocations: 33.77 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.801, allocations: 7.938 kB / 1.213 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.801, allocations: 38.48 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.801, allocations: 3.938 kB / 1.213 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002725/0.8013, allocations: 125.4 kB / 1.213 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.989e-05/0.8013, allocations: 81.05 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004807/0.8018, allocations: 481.3 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.8018, allocations: 29.95 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.802, allocations: 179.6 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.802, allocations: 7.984 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.935e-05/0.8021, allocations: 41.7 kB / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.8022, allocations: 342.8 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-05/0.8023, allocations: 63.95 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.8024, allocations: 76.98 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001295/0.8025, allocations: 101.7 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.8025, allocations: 0 / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002527/0.8028, allocations: 193.1 kB / 1.215 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.8028, allocations: 4 kB / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.8028, allocations: 0 / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.8028, allocations: 4 kB / 1.215 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.803, allocations: 27.92 kB / 1.215 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.803, allocations: 0 / 1.215 GB, free: 6.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.813e-05/0.8031, allocations: 27.59 kB / 1.215 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.8031, allocations: 4 kB / 1.215 GB, free: 6.918 MB / 0.9356 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.0001754/0.8033, allocations: 197.8 kB / 1.215 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.8033, allocations: 31.66 kB / 1.215 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001666/0.8035, allocations: 160.6 kB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.794e-05/0.8036, allocations: 176.3 kB / 1.215 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.677e-05/0.8036, allocations: 188.2 kB / 1.215 GB, free: 6.141 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.406e-05/0.8037, allocations: 180.2 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.804, allocations: 0.5166 MB / 1.216 GB, free: 5.383 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.454e-05/0.8041, allocations: 108.9 kB / 1.216 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.037e-05/0.8041, allocations: 105 kB / 1.216 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.245e-05/0.8042, allocations: 180.2 kB / 1.216 GB, free: 4.977 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.587e-05/0.8042, allocations: 180.3 kB / 1.217 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.923e-05/0.8043, allocations: 184.4 kB / 1.217 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.314e-05/0.8044, allocations: 184.2 kB / 1.217 GB, free: 4.418 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.8045, allocations: 323.5 kB / 1.217 GB, free: 4.078 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.8046, allocations: 225.6 kB / 1.217 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.266e-05/0.8047, allocations: 180.5 kB / 1.218 GB, free: 3.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.8048, allocations: 112.9 kB / 1.218 GB, free: 3.531 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.066e-05/0.8049, allocations: 176.3 kB / 1.218 GB, free: 3.352 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.798e-05/0.8049, allocations: 112.9 kB / 1.218 GB, free: 3.234 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003579/0.8053, allocations: 359.1 kB / 1.218 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8053, allocations: 0 / 1.218 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00026/0.8056, allocations: 35.94 kB / 1.218 GB, free: 2.852 MB / 0.9356 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.0001244/0.8057, allocations: 178.5 kB / 1.219 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.8059, allocations: 83.81 kB / 1.219 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.8059, allocations: 0 / 1.219 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.633e-06/0.8059, allocations: 0 / 1.219 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.8063, allocations: 497.1 kB / 1.219 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006113/0.8069, allocations: 0.5176 MB / 1.22 GB, free: 1.539 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.8072, allocations: 0.7675 MB / 1.22 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/0.8073, allocations: 23.44 kB / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of SimCode: time 3.01e-07/0.8073, allocations: 0 / 1.22 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of Templates: time 0.005446/0.8127, allocations: 3.293 MB / 1.224 GB, free: 13.43 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) 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) Reference file matches