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.001401/0.001401, allocations: 81.55 kB / 19.76 MB, free: 2.027 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.001525/0.001525, allocations: 157.8 kB / 23.01 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.455/1.455, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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 2.863/2.863, allocations: 377.9 MB / 0.6228 GB, free: 12.59 MB / 0.5919 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.002218/0.002218, allocations: 75.88 kB / 0.9819 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9827/0.9849, allocations: 176.1 MB / 1.154 GB, free: 33.36 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001952/0.9869, allocations: 0.8531 MB / 1.155 GB, free: 32.83 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002536/0.9871, allocations: 88.3 kB / 1.155 GB, free: 32.76 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.28e-05/0.9872, allocations: 6.844 kB / 1.155 GB, free: 32.76 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.9873, allocations: 20.97 kB / 1.155 GB, free: 32.75 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.9874, allocations: 17.66 kB / 1.155 GB, free: 32.73 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 6.98e-05/0.9875, allocations: 39.34 kB / 1.155 GB, free: 32.71 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.9877, allocations: 255.2 kB / 1.155 GB, free: 32.59 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.988, allocations: 172.1 kB / 1.155 GB, free: 32.51 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.9881, allocations: 130.4 kB / 1.155 GB, free: 32.44 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.9882, allocations: 147.5 kB / 1.156 GB, free: 32.36 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.659e-05/0.9883, allocations: 34.06 kB / 1.156 GB, free: 32.36 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 3.944e-05/0.9883, allocations: 37.03 kB / 1.156 GB, free: 32.35 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.9884, allocations: 90.73 kB / 1.156 GB, free: 32.3 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.557e-05/0.9885, allocations: 115.3 kB / 1.156 GB, free: 32.22 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.9888, allocations: 466.7 kB / 1.156 GB, free: 32.05 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.9888, allocations: 0 / 1.156 GB, free: 32.05 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.934e-06/0.9888, allocations: 0 / 1.156 GB, free: 32.05 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.9888, allocations: 0 / 1.156 GB, free: 32.05 MB / 1.076 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.0005389/0.9893, allocations: 0.5311 MB / 1.157 GB, free: 31.61 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.9893, allocations: 10.97 kB / 1.157 GB, free: 31.61 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.755e-05/0.9894, allocations: 46.66 kB / 1.157 GB, free: 31.59 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003423/0.9898, allocations: 280.9 kB / 1.157 GB, free: 31.37 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.9898, allocations: 35.69 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/0.9898, allocations: 31.47 kB / 1.157 GB, free: 31.35 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000479/0.9903, allocations: 397.2 kB / 1.158 GB, free: 31.19 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.9903, allocations: 192 / 1.158 GB, free: 31.19 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.538e-05/0.9903, allocations: 18.62 kB / 1.158 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.9904, allocations: 8.844 kB / 1.158 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.9907, allocations: 308.8 kB / 1.158 GB, free: 31.07 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009779/0.9917, allocations: 0.8367 MB / 1.159 GB, free: 30.54 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.9918, allocations: 96.28 kB / 1.159 GB, free: 30.47 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.919e-05/0.9919, allocations: 42.66 kB / 1.159 GB, free: 30.44 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.9919, allocations: 2.75 kB / 1.159 GB, free: 30.44 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.9919, allocations: 30.56 kB / 1.159 GB, free: 30.4 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.9919, allocations: 0 / 1.159 GB, free: 30.4 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0002695/0.9922, allocations: 160.9 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.9922, allocations: 79.7 kB / 1.159 GB, free: 30.23 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.9925, allocations: 342.1 kB / 1.159 GB, free: 30.04 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.9925, allocations: 25.7 kB / 1.159 GB, free: 30.01 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 7.989e-05/0.9926, allocations: 217.6 kB / 1.16 GB, free: 29.83 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.9926, allocations: 18.64 kB / 1.16 GB, free: 29.81 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.9926, allocations: 73.23 kB / 1.16 GB, free: 29.77 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.851e-05/0.9927, allocations: 333.1 kB / 1.16 GB, free: 29.45 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.023e-05/0.9928, allocations: 68.22 kB / 1.16 GB, free: 29.43 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-05/0.9929, allocations: 91.69 kB / 1.16 GB, free: 29.39 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.993, allocations: 114.5 kB / 1.16 GB, free: 29.33 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.993, allocations: 0 / 1.16 GB, free: 29.33 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002535/0.9933, allocations: 195.1 kB / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.9933, allocations: 6.062 kB / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.9933, allocations: 0 / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.9933, allocations: 6.812 kB / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.9934, allocations: 26.59 kB / 1.161 GB, free: 29.23 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.9934, allocations: 7.875 kB / 1.161 GB, free: 29.22 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.332e-05/0.9935, allocations: 21.66 kB / 1.161 GB, free: 29.21 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.9935, allocations: 9.094 kB / 1.161 GB, free: 29.21 MB / 1.076 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.0001354/0.9936, allocations: 200.8 kB / 1.161 GB, free: 29.06 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.9937, allocations: 16.5 kB / 1.161 GB, free: 29.05 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001572/0.9938, allocations: 110.9 kB / 1.161 GB, free: 28.97 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.9938, allocations: 0 / 1.161 GB, free: 28.97 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.9938, allocations: 3.938 kB / 1.161 GB, free: 28.96 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.9938, allocations: 2.938 kB / 1.161 GB, free: 28.96 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00033/0.9942, allocations: 0.5649 MB / 1.161 GB, free: 28.48 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.9942, allocations: 192 / 1.161 GB, free: 28.48 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.025e-05/0.9942, allocations: 2.906 kB / 1.161 GB, free: 28.48 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.9942, allocations: 10.5 kB / 1.161 GB, free: 28.47 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-06/0.9942, allocations: 192 / 1.161 GB, free: 28.47 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.9942, allocations: 6.562 kB / 1.161 GB, free: 28.47 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.9942, allocations: 4 kB / 1.161 GB, free: 28.46 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.741e-05/0.9943, allocations: 113 kB / 1.162 GB, free: 28.36 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.115e-05/0.9943, allocations: 28 kB / 1.162 GB, free: 28.34 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.9943, allocations: 6.75 kB / 1.162 GB, free: 28.34 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.952e-05/0.9944, allocations: 2.562 kB / 1.162 GB, free: 28.34 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.89e-05/0.9944, allocations: 10.39 kB / 1.162 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.9944, allocations: 2.625 kB / 1.162 GB, free: 28.33 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001747/0.9946, allocations: 238.1 kB / 1.162 GB, free: 28.21 MB / 1.076 GB Notification: Performance of sort global known variables: time 7.1e-08/0.9946, allocations: 0 / 1.162 GB, free: 28.21 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002499/0.9948, allocations: 61.33 kB / 1.162 GB, free: 28.18 MB / 1.076 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 7.576e-05/0.9949, allocations: 96.62 kB / 1.162 GB, free: 28.09 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001927/0.9951, allocations: 109.7 kB / 1.162 GB, free: 28.05 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.9951, allocations: 0 / 1.162 GB, free: 28.05 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.185e-05/0.9951, allocations: 12.5 kB / 1.162 GB, free: 28.05 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.9954, allocations: 31.09 kB / 1.162 GB, free: 28.03 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005471/0.9959, allocations: 494.5 kB / 1.163 GB, free: 27.72 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.996, allocations: 181 kB / 1.163 GB, free: 27.63 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.134e-05/0.9961, allocations: 41.66 kB / 1.163 GB, free: 27.63 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.423e-05/0.9961, allocations: 21 kB / 1.163 GB, free: 27.62 MB / 1.076 GB Notification: Performance of SimCode: time 4.41e-07/0.9961, allocations: 0 / 1.163 GB, free: 27.62 MB / 1.076 GB Notification: Performance of Templates: time 0.004143/1, allocations: 1.187 MB / 1.164 GB, free: 27.43 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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: 8.956786248949356]