Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007948/0.007948, allocations: 100.9 kB / 15.73 MB, free: 5.988 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.001782/0.001783, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 67.89 kB / 1.054 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3364, allocations: 157.4 MB / 1.208 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002861/0.3393, allocations: 0.8667 MB / 1.209 GB, free: 8.789 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0004386/0.3398, allocations: 83.7 kB / 1.209 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.34, allocations: 7.938 kB / 1.209 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.3402, allocations: 19.8 kB / 1.209 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001799/0.3404, allocations: 19.86 kB / 1.209 GB, free: 8.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.896e-05/0.3405, allocations: 39.97 kB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003289/0.3409, allocations: 259.4 kB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004373/0.3413, allocations: 290.3 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3415, allocations: 127.5 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.3417, allocations: 147.2 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.3417, allocations: 36 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.828e-05/0.3418, allocations: 32 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.3419, allocations: 79.78 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.342, allocations: 159.1 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004477/0.3425, allocations: 462.3 kB / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3425, allocations: 0 / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3425, allocations: 0 / 1.21 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.305e-05/0.3425, allocations: 4 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008004/0.3433, allocations: 0.5964 MB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3434, allocations: 8.625 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.733e-05/0.3435, allocations: 44.41 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.3439, allocations: 328.2 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.344, allocations: 40.94 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.344, allocations: 36.38 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000615/0.3447, allocations: 400.2 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.3447, allocations: 192 / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.3447, allocations: 15.94 kB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3447, allocations: 12 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004465/0.3452, allocations: 303.5 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001453/0.3466, allocations: 1.042 MB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.3468, allocations: 97.16 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.491e-05/0.3469, allocations: 49.78 kB / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.3469, allocations: 0 / 1.213 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.3469, allocations: 34.56 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.3469, allocations: 0 / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003603/0.3473, allocations: 169.5 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.3474, allocations: 89.05 kB / 1.213 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005739/0.3479, allocations: 0.5091 MB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.348, allocations: 25.7 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/0.3481, allocations: 199.5 kB / 1.214 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.3482, allocations: 19.8 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.873e-05/0.3483, allocations: 53.69 kB / 1.214 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3484, allocations: 350.8 kB / 1.215 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.3486, allocations: 71.86 kB / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.3487, allocations: 87.67 kB / 1.215 GB, free: 2.27 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.3488, allocations: 117.6 kB / 1.215 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3489, allocations: 0 / 1.215 GB, free: 2.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003112/0.3492, allocations: 209.1 kB / 1.215 GB, free: 1.938 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3492, allocations: 7.984 kB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3492, allocations: 0 / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.3492, allocations: 0 / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.3494, allocations: 35.88 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3494, allocations: 4 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.861e-05/0.3495, allocations: 39.52 kB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.3496, allocations: 4 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001963/0.3498, allocations: 196 kB / 1.215 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.3498, allocations: 35.56 kB / 1.215 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.3501, allocations: 118 kB / 1.215 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3501, allocations: 7.922 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3501, allocations: 0 / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3501, allocations: 4 kB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005342/0.3506, allocations: 0.6565 MB / 1.216 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3506, allocations: 0 / 1.216 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.467e-05/0.3507, allocations: 4 kB / 1.216 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3507, allocations: 7.984 kB / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.3507, allocations: 0 / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3507, allocations: 0 / 1.216 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3507, allocations: 4 kB / 1.216 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.3508, allocations: 135.2 kB / 1.216 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 9.545e-05/0.3509, allocations: 116.7 kB / 1.216 GB, free: 444 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.351, allocations: 7.938 kB / 1.216 GB, free: 436 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.268e-05/0.3511, allocations: 4 kB / 1.216 GB, free: 432 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.687e-05/0.3511, allocations: 8.188 kB / 1.216 GB, free: 424 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.3511, allocations: 4 kB / 1.216 GB, free: 420 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003991/0.3515, allocations: 391 kB / 1.217 GB, free: 36 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3515, allocations: 4 kB / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002552/0.3518, allocations: 40.08 kB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001129/0.3519, allocations: 107.2 kB / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002128/0.3521, allocations: 103.9 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3521, allocations: 4 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.993e-05/0.3522, allocations: 19.92 kB / 1.217 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/0.3524, allocations: 33.75 kB / 1.217 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007238/0.3531, allocations: 0.4945 MB / 1.217 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3535, allocations: 0.7948 MB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001043/0.3536, allocations: 54.94 kB / 1.218 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.013e-05/0.3537, allocations: 23.44 kB / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3537, allocations: 0 / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of Templates: time 0.005484/0.3592, allocations: 2.008 MB / 1.22 GB, free: 12.3 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches