Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002005/0.002005, allocations: 80.67 kB / 19.18 MB, free: 2.527 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.002442/0.002442, allocations: 166.9 kB / 22.46 MB, free: 5.355 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.573/1.573, allocations: 177.1 MB / 202.8 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.823/2.823, allocations: 359 MB / 0.6037 GB, free: 14.99 MB / 0.5762 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.519e-06/4.519e-06, allocations: 0 / 0.951 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.604e-05/6.055e-05, allocations: 2.281 kB / 0.951 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.003882/0.003943, allocations: 0.8352 MB / 0.9518 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000595/0.004538, allocations: 100.2 kB / 0.9519 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.004762, allocations: 0 / 0.9519 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002577/0.00502, allocations: 35.72 kB / 0.9519 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002703/0.00529, allocations: 11.88 kB / 0.9519 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001563/0.005446, allocations: 39.95 kB / 0.952 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000503/0.005949, allocations: 259.4 kB / 0.9522 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004622/0.006412, allocations: 174.9 kB / 0.9524 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004085/0.00682, allocations: 191.6 kB / 0.9526 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.007165, allocations: 123.6 kB / 0.9527 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.007294, allocations: 36 kB / 0.9527 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.851e-05/0.007363, allocations: 32 kB / 0.9527 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.007525, allocations: 79.75 kB / 0.9528 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.007725, allocations: 95.69 kB / 0.9529 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008574/0.008583, allocations: 478.4 kB / 0.9534 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.008588, allocations: 0 / 0.9534 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.472e-06/0.008589, allocations: 0 / 0.9534 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.496e-05/0.008624, allocations: 4 kB / 0.9534 GB, free: 9.125 MB / 0.8575 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.001342/0.009966, allocations: 0.5169 MB / 0.9539 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.01002, allocations: 8.031 kB / 0.9539 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.01015, allocations: 48.64 kB / 0.9539 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006043/0.01076, allocations: 265.7 kB / 0.9542 GB, free: 8.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-05/0.01083, allocations: 37.03 kB / 0.9542 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.155e-05/0.01089, allocations: 40.3 kB / 0.9542 GB, free: 8.156 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.01176, allocations: 404 kB / 0.9546 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.01177, allocations: 192 / 0.9546 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.01181, allocations: 16.38 kB / 0.9547 GB, free: 7.734 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.01183, allocations: 8.375 kB / 0.9547 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005893/0.01242, allocations: 299.5 kB / 0.9549 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.01409, allocations: 0.8413 MB / 0.9558 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.01432, allocations: 85.22 kB / 0.9558 GB, free: 6.453 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.715e-05/0.0144, allocations: 41.8 kB / 0.9559 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.01443, allocations: 4 kB / 0.9559 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.01447, allocations: 46.48 kB / 0.9559 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 3.386e-06/0.01447, allocations: 7.922 kB / 0.9559 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004138/0.01489, allocations: 153.4 kB / 0.9561 GB, free: 6.184 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.01495, allocations: 77.11 kB / 0.9562 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004866/0.01544, allocations: 345.6 kB / 0.9565 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.01547, allocations: 25.7 kB / 0.9565 GB, free: 5.707 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/0.01566, allocations: 216.3 kB / 0.9567 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.01569, allocations: 11.94 kB / 0.9567 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.01584, allocations: 77.64 kB / 0.9568 GB, free: 5.398 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001967/0.01603, allocations: 334.8 kB / 0.9571 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.01617, allocations: 67.95 kB / 0.9572 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.01631, allocations: 91.84 kB / 0.9573 GB, free: 4.902 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002076/0.01652, allocations: 113.6 kB / 0.9574 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.01652, allocations: 0 / 0.9574 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000386/0.01691, allocations: 201.5 kB / 0.9576 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.01693, allocations: 7.938 kB / 0.9576 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.01693, allocations: 0 / 0.9576 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.01696, allocations: 4 kB / 0.9576 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.01713, allocations: 23.98 kB / 0.9576 GB, free: 4.547 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.01714, allocations: 4 kB / 0.9576 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.4e-05/0.01722, allocations: 19.89 kB / 0.9576 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.01724, allocations: 8 kB / 0.9576 GB, free: 4.516 MB / 0.8575 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.0002742/0.01752, allocations: 203.6 kB / 0.9578 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.01759, allocations: 23.86 kB / 0.9579 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.01785, allocations: 96.73 kB / 0.958 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.01786, allocations: 7.938 kB / 0.958 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.01787, allocations: 7.938 kB / 0.958 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.01787, allocations: 8.047 kB / 0.958 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006664/0.01854, allocations: 0.5547 MB / 0.9585 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.01854, allocations: 0 / 0.9585 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.887e-05/0.01857, allocations: 4 kB / 0.9585 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.01858, allocations: 0 / 0.9585 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.01859, allocations: 0 / 0.9585 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.111e-05/0.0186, allocations: 11.88 kB / 0.9585 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.0186, allocations: 0 / 0.9585 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.01886, allocations: 111.7 kB / 0.9586 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.087e-05/0.01891, allocations: 31.78 kB / 0.9587 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.818e-05/0.01893, allocations: 0 / 0.9587 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.01898, allocations: 7.938 kB / 0.9587 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.01903, allocations: 11.94 kB / 0.9587 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.01904, allocations: 3.984 kB / 0.9587 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003049/0.01934, allocations: 233.2 kB / 0.9589 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.01934, allocations: 0 / 0.9589 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000308/0.01965, allocations: 55.73 kB / 0.959 GB, free: 3.066 MB / 0.8575 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.0001707/0.01982, allocations: 103.7 kB / 0.9591 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000274/0.02009, allocations: 100.2 kB / 0.9592 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.0201, allocations: 0 / 0.9592 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.666e-05/0.02014, allocations: 20.11 kB / 0.9592 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.02043, allocations: 24.42 kB / 0.9592 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.02147, allocations: 489.8 kB / 0.9597 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.02172, allocations: 187.4 kB / 0.9599 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001003/0.02182, allocations: 41.55 kB / 0.9599 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.164e-05/0.02188, allocations: 20.48 kB / 0.9599 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of SimCode: time 8.71e-07/0.02188, allocations: 0 / 0.9599 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of Templates: time 0.005389/0.02727, allocations: 1.198 MB / 0.9611 GB, free: 0.8594 MB / 0.8575 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.381660606712103]