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.001611/0.001611, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 68.27 kB / 0.9121 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3374, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002089/0.3395, allocations: 0.7163 MB / 1.069 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.3398, allocations: 47.84 kB / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.3398, allocations: 0 / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.34, allocations: 19.86 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.3401, allocations: 7.938 kB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 6.374e-05/0.3402, allocations: 19.98 kB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.3404, allocations: 179.6 kB / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.3408, allocations: 260.9 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.557e-05/0.3409, allocations: 95.59 kB / 1.07 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.341, allocations: 119.5 kB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.563e-05/0.3411, allocations: 24 kB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.887e-05/0.3411, allocations: 24 kB / 1.07 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.81e-05/0.3412, allocations: 71.78 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3413, allocations: 127.2 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.3416, allocations: 354.9 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.3416, allocations: 0 / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3416, allocations: 0 / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.932e-06/0.3416, allocations: 0 / 1.07 GB, free: 8.344 MB / 0.8262 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.0006724/0.3423, allocations: 0.5499 MB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3424, allocations: 8.031 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/0.3424, allocations: 32.56 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.3428, allocations: 309.2 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.018e-05/0.3429, allocations: 32.92 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.648e-05/0.3429, allocations: 28.38 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004963/0.3434, allocations: 339.1 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3435, allocations: 4.172 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.3435, allocations: 15.94 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3435, allocations: 4 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003581/0.3439, allocations: 260.3 kB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.345, allocations: 0.9169 MB / 1.073 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.109e-05/0.3451, allocations: 61.12 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.253e-05/0.3451, allocations: 33.77 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3452, allocations: 3.938 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.3452, allocations: 34.56 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.462e-06/0.3452, allocations: 0 / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.3455, allocations: 125.3 kB / 1.073 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.3455, allocations: 81.09 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005162/0.346, allocations: 481.6 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.3461, allocations: 25.7 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3462, allocations: 183.5 kB / 1.074 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.227e-05/0.3462, allocations: 8 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.3463, allocations: 49.62 kB / 1.074 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3464, allocations: 338.8 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.813e-05/0.3465, allocations: 55.95 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.3467, allocations: 77.61 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.3468, allocations: 101.7 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3468, allocations: 0 / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002589/0.3471, allocations: 193.1 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.3471, allocations: 4 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3471, allocations: 0 / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3471, allocations: 4 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.3473, allocations: 23.98 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3473, allocations: 0 / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.729e-05/0.3473, allocations: 31.59 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.3474, allocations: 11.98 kB / 1.074 GB, free: 3.719 MB / 0.8262 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.000181/0.3475, allocations: 199.4 kB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.3476, allocations: 27.66 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.3478, allocations: 156.7 kB / 1.075 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.545e-05/0.3479, allocations: 180.2 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.657e-05/0.348, allocations: 192.3 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.625e-05/0.348, allocations: 180.2 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003394/0.3484, allocations: 0.5127 MB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-05/0.3484, allocations: 112.8 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.238e-05/0.3484, allocations: 112.9 kB / 1.076 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.123e-05/0.3485, allocations: 184.3 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.884e-05/0.3486, allocations: 180.2 kB / 1.076 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.354e-05/0.3487, allocations: 176.3 kB / 1.077 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.367e-05/0.3487, allocations: 184.2 kB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.3489, allocations: 327.7 kB / 1.077 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.3491, allocations: 233.5 kB / 1.077 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-05/0.3491, allocations: 176.3 kB / 1.077 GB, free: 448 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.814e-05/0.3493, allocations: 105 kB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.3493, allocations: 184.2 kB / 1.078 GB, free: 144 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.395e-05/0.3494, allocations: 105 kB / 1.078 GB, free: 32 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003691/0.3498, allocations: 367.1 kB / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3498, allocations: 0 / 1.078 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002807/0.35, allocations: 24 kB / 1.078 GB, free: 15.65 MB / 0.8419 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.0001463/0.3502, allocations: 178.5 kB / 1.078 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001683/0.3504, allocations: 79.89 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3504, allocations: 0 / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.3504, allocations: 0 / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.3509, allocations: 498.6 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005887/0.3515, allocations: 0.4986 MB / 1.079 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.3518, allocations: 0.7675 MB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.954e-05/0.3519, allocations: 54.25 kB / 1.08 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.3519, allocations: 23.44 kB / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.3519, allocations: 0 / 1.08 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of Templates: time 0.004273/0.3562, allocations: 1.687 MB / 1.082 GB, free: 11.84 MB / 0.8419 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/jenkins/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