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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001071/0.001071, allocations: 108.2 kB / 16.41 MB, free: 6.473 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.000998/0.0009982, allocations: 190.7 kB / 17.35 MB, free: 5.711 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.325/1.325, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.632/2.632, allocations: 472.7 MB / 0.746 GB, free: 448 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 67.89 kB / 1.07 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7294/0.7309, allocations: 159.9 MB / 1.226 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001913/0.7328, allocations: 0.7095 MB / 1.227 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0002172/0.7331, allocations: 43.84 kB / 1.227 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.337e-05/0.7331, allocations: 7.938 kB / 1.227 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.7333, allocations: 15.86 kB / 1.227 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.7334, allocations: 7.938 kB / 1.227 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 5.774e-05/0.7335, allocations: 23.97 kB / 1.227 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.7337, allocations: 179.6 kB / 1.227 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003676/0.7341, allocations: 260.9 kB / 1.228 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.7342, allocations: 95.66 kB / 1.228 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.7343, allocations: 115.5 kB / 1.228 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.192e-05/0.7344, allocations: 28 kB / 1.228 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 3.994e-05/0.7344, allocations: 24 kB / 1.228 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.7345, allocations: 71.78 kB / 1.228 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.7346, allocations: 119.3 kB / 1.228 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.735, allocations: 382.9 kB / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.735, allocations: 0 / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.974e-06/0.735, allocations: 0 / 1.228 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.924e-05/0.7351, allocations: 3.938 kB / 1.228 GB, free: 11.5 MB / 0.9512 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.0007378/0.7358, allocations: 0.5571 MB / 1.229 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.7359, allocations: 8.031 kB / 1.229 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.595e-05/0.736, allocations: 36.7 kB / 1.229 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.7364, allocations: 313.3 kB / 1.229 GB, free: 10.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.598e-05/0.7364, allocations: 32.94 kB / 1.229 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.7365, allocations: 24.38 kB / 1.229 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005097/0.737, allocations: 347 kB / 1.23 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.737, allocations: 192 / 1.23 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.737, allocations: 11.94 kB / 1.23 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.7371, allocations: 8 kB / 1.23 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003934/0.7374, allocations: 256.3 kB / 1.23 GB, free: 9.82 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.7387, allocations: 0.9253 MB / 1.231 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.352e-05/0.7388, allocations: 57.14 kB / 1.231 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.7388, allocations: 33.75 kB / 1.231 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.7389, allocations: 3.938 kB / 1.231 GB, free: 8.723 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.7389, allocations: 38.56 kB / 1.231 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.483e-06/0.7389, allocations: 0 / 1.231 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0002853/0.7392, allocations: 129.4 kB / 1.231 GB, free: 8.543 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.7392, allocations: 77.11 kB / 1.231 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.7397, allocations: 473.5 kB / 1.232 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.7397, allocations: 29.7 kB / 1.232 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.7399, allocations: 183.7 kB / 1.232 GB, free: 7.758 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.044e-05/0.7399, allocations: 7.953 kB / 1.232 GB, free: 7.75 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/0.74, allocations: 49.95 kB / 1.232 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7401, allocations: 338.8 kB / 1.232 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.508e-05/0.7402, allocations: 55.95 kB / 1.232 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.687e-05/0.7403, allocations: 85.58 kB / 1.232 GB, free: 7.211 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.7404, allocations: 93.67 kB / 1.232 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.7404, allocations: 0 / 1.232 GB, free: 7.113 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002913/0.7407, allocations: 189.3 kB / 1.233 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7407, allocations: 8 kB / 1.233 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.7407, allocations: 0 / 1.233 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.7408, allocations: 7.984 kB / 1.233 GB, free: 6.906 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.7409, allocations: 20 kB / 1.233 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.7409, allocations: 0 / 1.233 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.741, allocations: 31.67 kB / 1.233 GB, free: 6.855 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.741, allocations: 12 kB / 1.233 GB, free: 6.844 MB / 0.9512 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.0001731/0.7412, allocations: 205.7 kB / 1.233 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.199e-05/0.7413, allocations: 31.75 kB / 1.233 GB, free: 6.602 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001606/0.7414, allocations: 152.7 kB / 1.233 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-05/0.7415, allocations: 184.2 kB / 1.233 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-05/0.7415, allocations: 108.9 kB / 1.233 GB, free: 6.141 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.7417, allocations: 217.8 kB / 1.233 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.193e-05/0.7418, allocations: 180.3 kB / 1.234 GB, free: 5.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.7419, allocations: 113 kB / 1.234 GB, free: 5.602 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.911e-05/0.742, allocations: 181.4 kB / 1.234 GB, free: 5.418 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.124e-05/0.7421, allocations: 259.5 kB / 1.234 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001852/0.7422, allocations: 410.8 kB / 1.235 GB, free: 4.73 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.506e-05/0.7423, allocations: 108.9 kB / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003706/0.7427, allocations: 355.1 kB / 1.235 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of Backend: time 3.31e-07/0.7427, allocations: 0 / 1.235 GB, free: 4.273 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004416/0.7431, allocations: 159.9 kB / 1.235 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0008936/0.744, allocations: 1.204 MB / 1.236 GB, free: 2.855 MB / 0.9512 GB Notification: Performance of Templates: time 0.005264/0.7493, allocations: 2.098 MB / 1.238 GB, free: 0.7695 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