Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00169/0.00169, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001967/0.001967, allocations: 207 kB / 22.98 MB, free: 4.984 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.483/1.483, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.309/3.309, allocations: 0.49 GB / 0.7959 GB, free: 35.41 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002258/0.002258, allocations: 73.22 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3743, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.0024/0.3767, allocations: 0.8432 MB / 1.328 GB, free: 184 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003203/0.3771, allocations: 95.62 kB / 1.328 GB, free: 88 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.3772, allocations: 8 kB / 1.328 GB, free: 80 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.3773, allocations: 19.73 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.3775, allocations: 23.8 kB / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001053/0.3776, allocations: 40.02 kB / 1.328 GB, free: 15.99 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003119/0.3779, allocations: 255.4 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.3782, allocations: 174.8 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.3784, allocations: 135.5 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.3785, allocations: 143.3 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.3786, allocations: 36 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.151e-05/0.3787, allocations: 32 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.3788, allocations: 87.7 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.3789, allocations: 119.3 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005003/0.3794, allocations: 470 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3794, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3794, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.3794, allocations: 0 / 1.329 GB, free: 14.57 MB / 1.029 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.0008041/0.3802, allocations: 0.5285 MB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.3803, allocations: 8.031 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.3803, allocations: 44.66 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.3808, allocations: 267.2 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.3809, allocations: 41.02 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.3809, allocations: 32.31 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006935/0.3816, allocations: 400.2 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.3817, allocations: 192 / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.3817, allocations: 19.94 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.3817, allocations: 8 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004631/0.3822, allocations: 299.4 kB / 1.331 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.3835, allocations: 0.8416 MB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001697/0.3837, allocations: 89.16 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.3838, allocations: 45.78 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3838, allocations: 7.984 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3838, allocations: 38.5 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.3838, allocations: 0 / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003649/0.3842, allocations: 153.4 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.3843, allocations: 81.11 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.3846, allocations: 345.5 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.3847, allocations: 29.7 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.3848, allocations: 212.4 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.3848, allocations: 11.95 kB / 1.333 GB, free: 10.92 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.385, allocations: 77.62 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3851, allocations: 334.8 kB / 1.333 GB, free: 10.5 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.3852, allocations: 67.94 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.3854, allocations: 87.45 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.3855, allocations: 121.5 kB / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3855, allocations: 0 / 1.333 GB, free: 10.22 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002939/0.3858, allocations: 193.4 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.3859, allocations: 8 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.3859, allocations: 3.984 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3859, allocations: 3.938 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.386, allocations: 32 kB / 1.334 GB, free: 9.977 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.386, allocations: 7.938 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.217e-05/0.3861, allocations: 27.77 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3861, allocations: 4 kB / 1.334 GB, free: 9.938 MB / 1.029 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.0002248/0.3864, allocations: 200.2 kB / 1.334 GB, free: 9.734 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.25e-05/0.3864, allocations: 19.91 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002223/0.3866, allocations: 108.6 kB / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.3866, allocations: 0 / 1.334 GB, free: 9.594 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.3867, allocations: 8 kB / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3867, allocations: 0 / 1.334 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.3872, allocations: 0.547 MB / 1.335 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3872, allocations: 3.984 kB / 1.335 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/0.3872, allocations: 7.938 kB / 1.335 GB, free: 8.977 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.249e-06/0.3873, allocations: 3.938 kB / 1.335 GB, free: 8.973 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.3873, allocations: 4.188 kB / 1.335 GB, free: 8.969 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3873, allocations: 0 / 1.335 GB, free: 8.969 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3873, allocations: 7.938 kB / 1.335 GB, free: 8.961 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.3874, allocations: 115.7 kB / 1.335 GB, free: 8.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.3875, allocations: 27.8 kB / 1.335 GB, free: 8.793 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.307e-05/0.3875, allocations: 3.938 kB / 1.335 GB, free: 8.789 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.369e-05/0.3875, allocations: 7.984 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.87e-05/0.3875, allocations: 4.422 kB / 1.335 GB, free: 8.777 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3875, allocations: 0 / 1.335 GB, free: 8.777 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002536/0.3878, allocations: 241.2 kB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3878, allocations: 0 / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002627/0.3881, allocations: 55.73 kB / 1.335 GB, free: 8.488 MB / 1.029 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.0001343/0.3882, allocations: 107.2 kB / 1.335 GB, free: 8.375 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.3884, allocations: 99.88 kB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3884, allocations: 0 / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.3885, allocations: 19.94 kB / 1.335 GB, free: 8.258 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.3887, allocations: 32.34 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007618/0.3895, allocations: 481.8 kB / 1.336 GB, free: 7.723 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.3897, allocations: 191.3 kB / 1.336 GB, free: 7.516 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.637e-05/0.3898, allocations: 41.61 kB / 1.336 GB, free: 7.477 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.7e-05/0.3898, allocations: 19.38 kB / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of SimCode: time 3.01e-07/0.3898, allocations: 0 / 1.336 GB, free: 7.457 MB / 1.029 GB Notification: Performance of Templates: time 0.005175/0.395, allocations: 1.353 MB / 1.337 GB, free: 6.121 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.204748346004635]