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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 216.9 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.237/3.237, allocations: 0.5107 GB / 0.8166 GB, free: 17.84 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 67.8 kB / 1.187 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3399, allocations: 181.9 MB / 1.365 GB, free: 13.65 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002135/0.342, allocations: 0.8543 MB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002851/0.3423, allocations: 95.69 kB / 1.366 GB, free: 12.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.3424, allocations: 7.938 kB / 1.366 GB, free: 12.69 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.3425, allocations: 15.8 kB / 1.366 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.3426, allocations: 19.86 kB / 1.366 GB, free: 12.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 8.266e-05/0.3427, allocations: 35.97 kB / 1.366 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003088/0.343, allocations: 259.4 kB / 1.366 GB, free: 12.37 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.3433, allocations: 166.9 kB / 1.366 GB, free: 12.2 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.3435, allocations: 139.5 kB / 1.366 GB, free: 12.06 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.3436, allocations: 147.3 kB / 1.366 GB, free: 11.92 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.242e-05/0.3437, allocations: 32 kB / 1.366 GB, free: 11.89 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.342e-05/0.3438, allocations: 35.94 kB / 1.366 GB, free: 11.85 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.442e-05/0.3438, allocations: 91.69 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.344, allocations: 119.3 kB / 1.367 GB, free: 11.64 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004676/0.3444, allocations: 466 kB / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3444, allocations: 0 / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3444, allocations: 0 / 1.367 GB, free: 11.19 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.3445, allocations: 4 kB / 1.367 GB, free: 11.18 MB / 1.061 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.0007138/0.3452, allocations: 0.5285 MB / 1.368 GB, free: 10.62 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3452, allocations: 12.03 kB / 1.368 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.839e-05/0.3453, allocations: 36.7 kB / 1.368 GB, free: 10.57 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.3458, allocations: 270.5 kB / 1.368 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.3458, allocations: 33.02 kB / 1.368 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.3459, allocations: 36.38 kB / 1.368 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.3465, allocations: 400 kB / 1.368 GB, free: 9.812 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3465, allocations: 192 / 1.368 GB, free: 9.812 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.3466, allocations: 19.94 kB / 1.368 GB, free: 9.793 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3466, allocations: 8 kB / 1.368 GB, free: 9.785 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.347, allocations: 299.8 kB / 1.369 GB, free: 9.492 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.3484, allocations: 0.8413 MB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.3485, allocations: 89.16 kB / 1.369 GB, free: 8.508 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.641e-05/0.3486, allocations: 45.78 kB / 1.37 GB, free: 8.457 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.3486, allocations: 0 / 1.37 GB, free: 8.457 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.3486, allocations: 38.56 kB / 1.37 GB, free: 8.41 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 9.01e-07/0.3486, allocations: 0 / 1.37 GB, free: 8.41 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.000334/0.349, allocations: 153.4 kB / 1.37 GB, free: 8.254 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.349, allocations: 81.11 kB / 1.37 GB, free: 8.156 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.3494, allocations: 353.5 kB / 1.37 GB, free: 7.805 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.3495, allocations: 25.7 kB / 1.37 GB, free: 7.773 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3496, allocations: 216.4 kB / 1.37 GB, free: 7.555 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.3496, allocations: 7.906 kB / 1.37 GB, free: 7.547 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.3497, allocations: 77.67 kB / 1.37 GB, free: 7.465 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.3499, allocations: 330.8 kB / 1.371 GB, free: 7.133 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.35, allocations: 67.94 kB / 1.371 GB, free: 7.066 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.3502, allocations: 93.23 kB / 1.371 GB, free: 6.973 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.3503, allocations: 117.6 kB / 1.371 GB, free: 6.852 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.3503, allocations: 4 kB / 1.371 GB, free: 6.848 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002995/0.3506, allocations: 197.4 kB / 1.371 GB, free: 6.648 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.3506, allocations: 8 kB / 1.371 GB, free: 6.641 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.3507, allocations: 7.969 kB / 1.371 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3507, allocations: 0 / 1.371 GB, free: 6.633 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3508, allocations: 24 kB / 1.371 GB, free: 6.609 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.3508, allocations: 7.875 kB / 1.371 GB, free: 6.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.774e-05/0.3509, allocations: 23.88 kB / 1.371 GB, free: 6.578 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.5e-05/0.3509, allocations: 4 kB / 1.371 GB, free: 6.574 MB / 1.061 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.0002168/0.3511, allocations: 200.8 kB / 1.371 GB, free: 6.371 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.514e-05/0.3512, allocations: 19.86 kB / 1.371 GB, free: 6.352 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002073/0.3514, allocations: 116.8 kB / 1.372 GB, free: 6.223 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3514, allocations: 0 / 1.372 GB, free: 6.223 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3514, allocations: 7.875 kB / 1.372 GB, free: 6.215 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3514, allocations: 4 kB / 1.372 GB, free: 6.211 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005642/0.3519, allocations: 0.5548 MB / 1.372 GB, free: 5.605 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.352, allocations: 4.031 kB / 1.372 GB, free: 5.602 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.356e-05/0.352, allocations: 8 kB / 1.372 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.352, allocations: 7.938 kB / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.352, allocations: 0 / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.352, allocations: 0 / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.352, allocations: 4 kB / 1.372 GB, free: 5.582 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.3521, allocations: 115.5 kB / 1.372 GB, free: 5.441 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-05/0.3522, allocations: 19.84 kB / 1.372 GB, free: 5.422 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.3522, allocations: 15.92 kB / 1.372 GB, free: 5.406 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.807e-05/0.3522, allocations: 0 / 1.372 GB, free: 5.406 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.3523, allocations: 8 kB / 1.372 GB, free: 5.398 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.3523, allocations: 4 kB / 1.372 GB, free: 5.395 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002603/0.3525, allocations: 233.2 kB / 1.373 GB, free: 5.164 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3525, allocations: 0 / 1.373 GB, free: 5.164 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002561/0.3528, allocations: 59.73 kB / 1.373 GB, free: 5.105 MB / 1.061 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.000102/0.3529, allocations: 95.25 kB / 1.373 GB, free: 5.004 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.3531, allocations: 103.8 kB / 1.373 GB, free: 4.902 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3531, allocations: 0 / 1.373 GB, free: 4.902 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.274e-05/0.3531, allocations: 20 kB / 1.373 GB, free: 4.883 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002173/0.3534, allocations: 28.36 kB / 1.373 GB, free: 4.855 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007465/0.3541, allocations: 0.4995 MB / 1.373 GB, free: 4.316 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.3543, allocations: 195.3 kB / 1.374 GB, free: 4.105 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.897e-05/0.3544, allocations: 15.44 kB / 1.374 GB, free: 4.09 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.3544, allocations: 384 / 1.374 GB, free: 4.09 MB / 1.061 GB Notification: Performance of Templates: time 0.005316/0.3597, allocations: 3.188 MB / 1.377 GB, free: 0.9062 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 800] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.373107857070863]