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.001813/0.001813, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.002301/0.002301, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.516/1.516, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.158/3.158, allocations: 0.49 GB / 0.7958 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 177] 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.002164/0.002164, allocations: 65.64 kB / 1.155 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3257, allocations: 176.1 MB / 1.327 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002369/0.3281, allocations: 0.8739 MB / 1.328 GB, free: 0.6094 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003418/0.3284, allocations: 83.7 kB / 1.328 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.3285, allocations: 4 kB / 1.328 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.3287, allocations: 23.73 kB / 1.328 GB, free: 0.5 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.3288, allocations: 23.86 kB / 1.328 GB, free: 488 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.628e-05/0.3289, allocations: 39.95 kB / 1.328 GB, free: 448 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003103/0.3292, allocations: 255.5 kB / 1.328 GB, free: 192 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.3295, allocations: 174.8 kB / 1.329 GB, free: 12 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.3297, allocations: 131.5 kB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.3299, allocations: 139.3 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.3299, allocations: 32 kB / 1.329 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.838e-05/0.33, allocations: 36 kB / 1.329 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.3301, allocations: 91.7 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.3302, allocations: 155 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004862/0.3307, allocations: 466.1 kB / 1.33 GB, free: 14.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3307, allocations: 7.938 kB / 1.33 GB, free: 14.97 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.783e-06/0.3307, allocations: 0 / 1.33 GB, free: 14.97 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.403e-06/0.3307, allocations: 0 / 1.33 GB, free: 14.97 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.0007811/0.3315, allocations: 0.5246 MB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3315, allocations: 8.031 kB / 1.33 GB, free: 14.41 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.6e-05/0.3316, allocations: 44.66 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.3321, allocations: 267.2 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.443e-05/0.3322, allocations: 41.03 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.834e-05/0.3322, allocations: 28.38 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006456/0.3328, allocations: 404.2 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3329, allocations: 4.172 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.3329, allocations: 15.94 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3329, allocations: 8 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004939/0.3334, allocations: 311.3 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.335, allocations: 1.024 MB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.3351, allocations: 85.16 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.915e-05/0.3352, allocations: 41.8 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3352, allocations: 7.984 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.3352, allocations: 34.56 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.3353, allocations: 3.938 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003713/0.3356, allocations: 165.8 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/0.3357, allocations: 81.05 kB / 1.333 GB, free: 11.73 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.3363, allocations: 0.5053 MB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.3363, allocations: 29.7 kB / 1.333 GB, free: 11.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.3365, allocations: 215.6 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.3365, allocations: 15.84 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.439e-05/0.3366, allocations: 61.69 kB / 1.333 GB, free: 10.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3368, allocations: 338.8 kB / 1.334 GB, free: 10.54 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3369, allocations: 71.95 kB / 1.334 GB, free: 10.47 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.337, allocations: 91.16 kB / 1.334 GB, free: 10.38 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.3372, allocations: 109.7 kB / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3372, allocations: 0 / 1.334 GB, free: 10.26 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003186/0.3375, allocations: 217.3 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3375, allocations: 8 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3375, allocations: 4 kB / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3376, allocations: 0 / 1.334 GB, free: 10.03 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.3377, allocations: 31.92 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3377, allocations: 0 / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.882e-05/0.3378, allocations: 31.73 kB / 1.334 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3378, allocations: 15.92 kB / 1.334 GB, free: 9.953 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.0002243/0.338, allocations: 204.3 kB / 1.334 GB, free: 9.746 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.767e-05/0.3381, allocations: 31.77 kB / 1.334 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002303/0.3383, allocations: 118.1 kB / 1.335 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3383, allocations: 3.938 kB / 1.335 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3383, allocations: 0 / 1.335 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3383, allocations: 0 / 1.335 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006286/0.339, allocations: 0.636 MB / 1.335 GB, free: 8.887 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.339, allocations: 4 kB / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.952e-05/0.339, allocations: 0 / 1.335 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.339, allocations: 4 kB / 1.335 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.339, allocations: 0 / 1.335 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.339, allocations: 4 kB / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.339, allocations: 0 / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.3392, allocations: 135.5 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.82e-05/0.3393, allocations: 47.75 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.995e-05/0.3393, allocations: 0 / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.861e-05/0.3394, allocations: 11.98 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.3394, allocations: 8 kB / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.3394, allocations: 4 kB / 1.335 GB, free: 8.645 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004632/0.3398, allocations: 391 kB / 1.336 GB, free: 8.266 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3398, allocations: 3.938 kB / 1.336 GB, free: 8.262 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002458/0.3401, allocations: 35.94 kB / 1.336 GB, free: 8.227 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.0001325/0.3402, allocations: 103.2 kB / 1.336 GB, free: 8.113 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.3405, allocations: 104.1 kB / 1.336 GB, free: 8.012 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3405, allocations: 0 / 1.336 GB, free: 8.012 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.776e-05/0.3405, allocations: 16.19 kB / 1.336 GB, free: 7.996 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.3407, allocations: 37.52 kB / 1.336 GB, free: 7.961 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008387/0.3416, allocations: 0.5308 MB / 1.337 GB, free: 7.383 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.342, allocations: 0.7833 MB / 1.337 GB, free: 6.574 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.677e-05/0.3421, allocations: 23.44 kB / 1.337 GB, free: 6.551 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.3421, allocations: 0 / 1.337 GB, free: 6.551 MB / 1.029 GB Notification: Performance of Templates: time 0.006546/0.3486, allocations: 3.821 MB / 1.341 GB, free: 2.73 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 -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: 11.45946309500141]