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.001039/0.001039, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007986/0.007986, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.443/1.443, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.779/2.779, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003737, allocations: 16.11 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.362, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001414/0.3634, allocations: 0.5635 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004436/0.3639, allocations: 87.64 kB / 1.059 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.3641, allocations: 4 kB / 1.059 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.3643, allocations: 15.86 kB / 1.059 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.3645, allocations: 15.86 kB / 1.059 GB, free: 4.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001268/0.3646, allocations: 39.98 kB / 1.059 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000353/0.365, allocations: 235.5 kB / 1.06 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005724/0.3656, allocations: 278.3 kB / 1.06 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.3657, allocations: 67.53 kB / 1.06 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001968/0.3659, allocations: 91.36 kB / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.366, allocations: 8 kB / 1.06 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.957e-05/0.366, allocations: 4 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.186e-05/0.3661, allocations: 47.73 kB / 1.06 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.3663, allocations: 132.8 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.3668, allocations: 418.4 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.3668, allocations: 0 / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.046e-06/0.3668, allocations: 0 / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.928e-05/0.3669, allocations: 4 kB / 1.061 GB, free: 3.453 MB / 0.8106 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.0009477/0.3678, allocations: 0.5188 MB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.3679, allocations: 12.03 kB / 1.061 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.368, allocations: 40.47 kB / 1.061 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000577/0.3686, allocations: 332.1 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-05/0.3687, allocations: 37.03 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.364e-05/0.3688, allocations: 32.36 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006977/0.3695, allocations: 400.2 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3695, allocations: 192 / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.3695, allocations: 19.94 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.3696, allocations: 8 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.3701, allocations: 303.5 kB / 1.062 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001704/0.3718, allocations: 1.049 MB / 1.063 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001755/0.372, allocations: 97.09 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.202e-05/0.3721, allocations: 45.78 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.3721, allocations: 4 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3722, allocations: 34.56 kB / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.863e-06/0.3722, allocations: 0 / 1.063 GB, free: 364 kB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0004227/0.3726, allocations: 165.2 kB / 1.064 GB, free: 192 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.85e-05/0.3727, allocations: 85.05 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007077/0.3734, allocations: 0.5091 MB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.3734, allocations: 25.7 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.3737, allocations: 207.5 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.3737, allocations: 11.81 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.485e-05/0.3738, allocations: 41.69 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002452/0.3741, allocations: 342.8 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/0.3742, allocations: 67.95 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.3744, allocations: 90.53 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002063/0.3746, allocations: 113.6 kB / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.3746, allocations: 4 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003457/0.375, allocations: 209.1 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.375, allocations: 9.562 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.375, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.3751, allocations: 0 / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.3752, allocations: 31.92 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3752, allocations: 3.938 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.3754, allocations: 35.53 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.3754, allocations: 8 kB / 1.065 GB, free: 14.36 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: 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.0002575/0.3757, allocations: 204 kB / 1.066 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.3757, allocations: 27.62 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.376, allocations: 122.3 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.376, allocations: 3.938 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.376, allocations: 0 / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.376, allocations: 3.984 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006381/0.3767, allocations: 0.6642 MB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3767, allocations: 0 / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.748e-05/0.3767, allocations: 4 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3767, allocations: 0 / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.3768, allocations: 4 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.3768, allocations: 4.125 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3768, allocations: 4.125 kB / 1.066 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.377, allocations: 139.1 kB / 1.066 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3771, allocations: 124.7 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.3771, allocations: 4 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.205e-05/0.3772, allocations: 4 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.3772, allocations: 4 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.3772, allocations: 8 kB / 1.067 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004992/0.3777, allocations: 391 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3778, allocations: 0 / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002708/0.378, allocations: 39.91 kB / 1.067 GB, free: 12.48 MB / 0.8262 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.0001843/0.3782, allocations: 99.23 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002677/0.3785, allocations: 111.8 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3785, allocations: 4 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.826e-05/0.3785, allocations: 12 kB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004027/0.379, allocations: 33.48 kB / 1.067 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.38, allocations: 0.5785 MB / 1.068 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004825/0.3805, allocations: 0.7911 MB / 1.069 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001416/0.3806, allocations: 58.94 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.565e-05/0.3807, allocations: 19.44 kB / 1.069 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.3807, allocations: 4 kB / 1.069 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of Templates: time 0.006198/0.3869, allocations: 1.868 MB / 1.071 GB, free: 8.852 MB / 0.8262 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