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.001429/0.001429, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001599/0.001599, allocations: 215.8 kB / 23.01 MB, free: 4.602 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.327/1.327, allocations: 230.6 MB / 256.8 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] 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 2.935/2.935, allocations: 0.505 GB / 0.8108 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 177] 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.001869/0.001869, allocations: 72.22 kB / 1.178 GB, free: 16.87 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2853, allocations: 180.2 MB / 1.354 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002002/0.2873, allocations: 0.8711 MB / 1.355 GB, free: 7.109 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002452/0.2875, allocations: 87.64 kB / 1.355 GB, free: 7.023 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.26e-05/0.2876, allocations: 4 kB / 1.355 GB, free: 7.02 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.2877, allocations: 31.66 kB / 1.355 GB, free: 6.988 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001102/0.2878, allocations: 19.81 kB / 1.355 GB, free: 6.969 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 7.802e-05/0.2879, allocations: 47.95 kB / 1.355 GB, free: 6.922 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.2882, allocations: 247.5 kB / 1.355 GB, free: 6.68 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002807/0.2884, allocations: 182.8 kB / 1.356 GB, free: 6.496 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.2886, allocations: 131.5 kB / 1.356 GB, free: 6.367 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.2887, allocations: 143.3 kB / 1.356 GB, free: 6.227 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.743e-05/0.2888, allocations: 32 kB / 1.356 GB, free: 6.195 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.287e-05/0.2888, allocations: 32 kB / 1.356 GB, free: 6.164 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.299e-05/0.2889, allocations: 87.7 kB / 1.356 GB, free: 6.078 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.2891, allocations: 155.1 kB / 1.356 GB, free: 5.926 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.2895, allocations: 462.1 kB / 1.357 GB, free: 5.473 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2895, allocations: 0 / 1.357 GB, free: 5.473 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.022e-06/0.2895, allocations: 0 / 1.357 GB, free: 5.473 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2895, allocations: 0 / 1.357 GB, free: 5.473 MB / 1.045 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.0006394/0.2901, allocations: 0.5344 MB / 1.357 GB, free: 4.906 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.2902, allocations: 8.031 kB / 1.357 GB, free: 4.898 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.2902, allocations: 48.64 kB / 1.357 GB, free: 4.852 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.2906, allocations: 266.5 kB / 1.357 GB, free: 4.566 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.688e-05/0.2907, allocations: 32.97 kB / 1.357 GB, free: 4.535 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.153e-05/0.2907, allocations: 32.38 kB / 1.357 GB, free: 4.504 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005751/0.2913, allocations: 408 kB / 1.358 GB, free: 4.094 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2913, allocations: 4.172 kB / 1.358 GB, free: 4.09 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.2913, allocations: 15.94 kB / 1.358 GB, free: 4.074 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.2914, allocations: 8 kB / 1.358 GB, free: 4.066 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000439/0.2918, allocations: 295.8 kB / 1.358 GB, free: 3.777 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.2931, allocations: 1.032 MB / 1.359 GB, free: 2.695 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.2933, allocations: 85.22 kB / 1.359 GB, free: 2.594 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.301e-05/0.2934, allocations: 45.78 kB / 1.359 GB, free: 2.543 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.2934, allocations: 0 / 1.359 GB, free: 2.543 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.2934, allocations: 42.5 kB / 1.359 GB, free: 2.492 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.2934, allocations: 0 / 1.359 GB, free: 2.492 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003105/0.2937, allocations: 169.3 kB / 1.359 GB, free: 2.32 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.2938, allocations: 81.05 kB / 1.36 GB, free: 2.223 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005429/0.2943, allocations: 0.5053 MB / 1.36 GB, free: 1.711 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2943, allocations: 29.7 kB / 1.36 GB, free: 1.676 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.2945, allocations: 207.7 kB / 1.36 GB, free: 1.469 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2945, allocations: 19.84 kB / 1.36 GB, free: 1.449 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.887e-05/0.2946, allocations: 53.64 kB / 1.36 GB, free: 1.391 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2947, allocations: 346.8 kB / 1.361 GB, free: 1.043 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.2948, allocations: 67.95 kB / 1.361 GB, free: 0.9766 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.295, allocations: 95.38 kB / 1.361 GB, free: 0.8789 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.2951, allocations: 113.6 kB / 1.361 GB, free: 0.7617 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2951, allocations: 4 kB / 1.361 GB, free: 0.7578 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002964/0.2954, allocations: 205.3 kB / 1.361 GB, free: 0.5508 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.2954, allocations: 11.94 kB / 1.361 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.2954, allocations: 0 / 1.361 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2954, allocations: 0 / 1.361 GB, free: 0.5391 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.2956, allocations: 39.92 kB / 1.361 GB, free: 0.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.2956, allocations: 0 / 1.361 GB, free: 0.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.712e-05/0.2956, allocations: 31.73 kB / 1.361 GB, free: 480 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.2957, allocations: 8.188 kB / 1.361 GB, free: 472 kB / 1.045 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.0001853/0.2959, allocations: 204.4 kB / 1.361 GB, free: 256 kB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.2959, allocations: 39.7 kB / 1.361 GB, free: 216 kB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001921/0.2961, allocations: 118.1 kB / 1.362 GB, free: 88 kB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2961, allocations: 3.938 kB / 1.362 GB, free: 84 kB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2961, allocations: 0 / 1.362 GB, free: 84 kB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2961, allocations: 0 / 1.362 GB, free: 84 kB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000588/0.2967, allocations: 0.6322 MB / 1.362 GB, free: 15.39 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2967, allocations: 4.031 kB / 1.362 GB, free: 15.38 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.298e-05/0.2967, allocations: 7.938 kB / 1.362 GB, free: 15.38 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2967, allocations: 0 / 1.362 GB, free: 15.38 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.585e-06/0.2967, allocations: 4 kB / 1.362 GB, free: 15.37 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2967, allocations: 0 / 1.362 GB, free: 15.37 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2967, allocations: 384 / 1.362 GB, free: 15.37 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.2969, allocations: 139.4 kB / 1.362 GB, free: 15.21 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.84e-05/0.297, allocations: 47.69 kB / 1.362 GB, free: 15.16 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.297, allocations: 7.984 kB / 1.362 GB, free: 15.15 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.695e-05/0.2971, allocations: 0 / 1.362 GB, free: 15.15 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.2971, allocations: 8 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.2971, allocations: 4 kB / 1.362 GB, free: 15.14 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004152/0.2975, allocations: 387 kB / 1.363 GB, free: 14.76 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.2975, allocations: 0 / 1.363 GB, free: 14.76 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002282/0.2977, allocations: 51.89 kB / 1.363 GB, free: 14.71 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 9.48e-05/0.2978, allocations: 95.25 kB / 1.363 GB, free: 14.61 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001891/0.298, allocations: 99.88 kB / 1.363 GB, free: 14.51 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.298, allocations: 0 / 1.363 GB, free: 14.51 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.681e-05/0.298, allocations: 15.94 kB / 1.363 GB, free: 14.49 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.2983, allocations: 37.58 kB / 1.363 GB, free: 14.46 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007131/0.299, allocations: 0.5353 MB / 1.364 GB, free: 13.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.2994, allocations: 0.7869 MB / 1.364 GB, free: 13.07 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.2994, allocations: 23.44 kB / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.2994, allocations: 0 / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of Templates: time 0.005547/0.305, allocations: 3.823 MB / 1.368 GB, free: 9.227 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: 10.210304684995208]