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.001321/0.001321, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001479/0.001479, allocations: 212.2 kB / 22.24 MB, free: 5.258 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.528/1.528, allocations: 230.6 MB / 256 MB, free: 7.785 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.256/3.256, allocations: 0.4892 GB / 0.7943 GB, free: 35.71 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [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.002124/0.002124, allocations: 77.17 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3474, allocations: 176.1 MB / 1.325 GB, free: 2.379 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002239/0.3496, allocations: 0.8369 MB / 1.326 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003318/0.35, allocations: 91.64 kB / 1.326 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.3501, allocations: 4 kB / 1.326 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.3502, allocations: 19.73 kB / 1.326 GB, free: 1.434 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.3504, allocations: 19.86 kB / 1.326 GB, free: 1.414 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 9.491e-05/0.3505, allocations: 43.95 kB / 1.326 GB, free: 1.371 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003262/0.3508, allocations: 251.5 kB / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003484/0.3511, allocations: 171.1 kB / 1.326 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.3513, allocations: 143.4 kB / 1.327 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.3516, allocations: 147.3 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.32e-05/0.3516, allocations: 32 kB / 1.327 GB, free: 0.6367 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.549e-05/0.3517, allocations: 32 kB / 1.327 GB, free: 0.6055 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.428e-05/0.3518, allocations: 83.72 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.3519, allocations: 127.3 kB / 1.327 GB, free: 408 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.3524, allocations: 458.1 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.3524, allocations: 4 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3524, allocations: 0 / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.592e-05/0.3525, allocations: 0 / 1.327 GB, free: 15.94 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.0008198/0.3533, allocations: 0.5324 MB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3533, allocations: 12.03 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.793e-05/0.3534, allocations: 70.72 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.3535, allocations: 48.59 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.354, allocations: 267.1 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.3541, allocations: 41.02 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.69e-05/0.3541, allocations: 32.36 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006601/0.3548, allocations: 400.2 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.3548, allocations: 3.938 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.3548, allocations: 12 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.3548, allocations: 12 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005355/0.3554, allocations: 311.3 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.357, allocations: 0.9618 MB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.3572, allocations: 89.22 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.751e-05/0.3572, allocations: 53.66 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3573, allocations: 0 / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.3573, allocations: 30.56 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.3573, allocations: 0 / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003832/0.3577, allocations: 177.6 kB / 1.33 GB, free: 12.75 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.16e-05/0.3578, allocations: 77.11 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.3584, allocations: 0.513 MB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.3584, allocations: 29.7 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.3586, allocations: 207.7 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.483e-05/0.3586, allocations: 7.953 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.619e-05/0.3587, allocations: 57.64 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3589, allocations: 350.8 kB / 1.332 GB, free: 11.47 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.359, allocations: 67.86 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.3591, allocations: 87.08 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.3593, allocations: 121.5 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3593, allocations: 0 / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003402/0.3597, allocations: 209.4 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.3597, allocations: 7.984 kB / 1.332 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.3597, allocations: 3.984 kB / 1.332 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.3597, allocations: 7.938 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.3599, allocations: 24 kB / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3599, allocations: 0 / 1.332 GB, free: 10.94 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.36, allocations: 43.61 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.36, allocations: 8 kB / 1.332 GB, free: 10.89 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.0002117/0.3602, allocations: 203.7 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.562e-05/0.3603, allocations: 27.81 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.3605, allocations: 118 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.3605, allocations: 11.92 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3605, allocations: 0 / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3605, allocations: 0 / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006196/0.3611, allocations: 0.6089 MB / 1.333 GB, free: 9.844 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3611, allocations: 4 kB / 1.333 GB, free: 9.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.387e-05/0.3612, allocations: 4 kB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3612, allocations: 0 / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3612, allocations: 0 / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.069e-06/0.3612, allocations: 4 kB / 1.333 GB, free: 9.832 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.3612, allocations: 3.938 kB / 1.333 GB, free: 9.828 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001611/0.3613, allocations: 135.3 kB / 1.333 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.921e-05/0.3614, allocations: 43.73 kB / 1.333 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.087e-05/0.3615, allocations: 7.984 kB / 1.333 GB, free: 9.617 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.529e-05/0.3615, allocations: 8.062 kB / 1.333 GB, free: 9.609 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.3615, allocations: 8.188 kB / 1.333 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3615, allocations: 4 kB / 1.333 GB, free: 9.598 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004689/0.362, allocations: 391 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/0.362, allocations: 0 / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002545/0.3623, allocations: 39.95 kB / 1.334 GB, free: 9.18 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.0005292/0.3628, allocations: 0.6771 MB / 1.334 GB, free: 8.461 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002212/0.363, allocations: 95.89 kB / 1.334 GB, free: 8.367 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.363, allocations: 8 kB / 1.334 GB, free: 8.359 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.302e-05/0.3631, allocations: 19.92 kB / 1.334 GB, free: 8.34 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.3633, allocations: 26.78 kB / 1.335 GB, free: 8.316 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003782/0.3671, allocations: 2.907 MB / 1.337 GB, free: 5.305 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.3673, allocations: 187.6 kB / 1.338 GB, free: 5.098 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001423/0.3675, allocations: 54.94 kB / 1.338 GB, free: 5.047 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.3676, allocations: 95.5 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.3676, allocations: 0 / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.4033, allocations: 6.34 MB / 1.344 GB, free: 14.76 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.89, allocations: 6.984 kB / 1.344 GB, free: 14.76 MB / 1.045 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/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] "Error: Could not read variable idxFirTru.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! Error: Could not read variable idxFirTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.761575216893107]