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.001722/0.001722, allocations: 104 kB / 16.45 MB, free: 6.449 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.002149/0.002149, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.474/1.474, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.229/3.229, allocations: 0.49 GB / 0.7916 GB, free: 33.34 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.002009/0.002009, allocations: 77.55 kB / 1.149 GB, free: 26.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3099, allocations: 176.1 MB / 1.321 GB, free: 3.383 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002212/0.3121, allocations: 0.8728 MB / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002641/0.3124, allocations: 95.64 kB / 1.322 GB, free: 2.422 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.304e-05/0.3125, allocations: 4 kB / 1.322 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.3126, allocations: 15.8 kB / 1.322 GB, free: 2.402 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.3127, allocations: 19.86 kB / 1.322 GB, free: 2.383 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.967e-05/0.3128, allocations: 35.97 kB / 1.322 GB, free: 2.348 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.3131, allocations: 255.4 kB / 1.322 GB, free: 2.098 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003736/0.3135, allocations: 238.6 kB / 1.322 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.3136, allocations: 127.6 kB / 1.322 GB, free: 1.73 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.3138, allocations: 147.2 kB / 1.323 GB, free: 1.586 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.3138, allocations: 32 kB / 1.323 GB, free: 1.555 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.743e-05/0.3139, allocations: 32 kB / 1.323 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.767e-05/0.314, allocations: 87.72 kB / 1.323 GB, free: 1.438 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.3141, allocations: 159.1 kB / 1.323 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00048/0.3146, allocations: 466 kB / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3146, allocations: 0 / 1.323 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3146, allocations: 4 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.3146, allocations: 0 / 1.323 GB, free: 0.8203 MB / 1.014 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.0007933/0.3154, allocations: 0.6038 MB / 1.324 GB, free: 164 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3154, allocations: 15.92 kB / 1.324 GB, free: 148 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.425e-05/0.3155, allocations: 70.72 kB / 1.324 GB, free: 68 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.295e-05/0.3156, allocations: 44.66 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.316, allocations: 332.3 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.94e-05/0.3161, allocations: 37.02 kB / 1.324 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.847e-05/0.3162, allocations: 32.31 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.3168, allocations: 400.2 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3168, allocations: 3.938 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.125e-05/0.3169, allocations: 16 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3169, allocations: 8 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004942/0.3174, allocations: 299.4 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.3189, allocations: 1.065 MB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3191, allocations: 81.22 kB / 1.326 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.271e-05/0.3191, allocations: 45.78 kB / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.3192, allocations: 0 / 1.326 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.002e-05/0.3192, allocations: 50.5 kB / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.3192, allocations: 0 / 1.326 GB, free: 13.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003646/0.3196, allocations: 165.3 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.019e-05/0.3197, allocations: 81.11 kB / 1.327 GB, free: 13.28 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006311/0.3203, allocations: 0.5053 MB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.3203, allocations: 29.7 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.3205, allocations: 211.7 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.3205, allocations: 19.91 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.654e-05/0.3206, allocations: 53.69 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3208, allocations: 346.8 kB / 1.328 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.3209, allocations: 63.95 kB / 1.328 GB, free: 12.03 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.321, allocations: 85.58 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001832/0.3212, allocations: 125.5 kB / 1.328 GB, free: 11.81 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3212, allocations: 0 / 1.328 GB, free: 11.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003252/0.3215, allocations: 213.3 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3216, allocations: 9.656 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.3216, allocations: 0 / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3216, allocations: 3.938 kB / 1.328 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.3218, allocations: 31.98 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.3218, allocations: 4 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.307e-05/0.3218, allocations: 31.67 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.3219, allocations: 8 kB / 1.328 GB, free: 11.51 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.0002373/0.3221, allocations: 205.7 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-05/0.3222, allocations: 39.75 kB / 1.328 GB, free: 11.26 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00023/0.3224, allocations: 114 kB / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3224, allocations: 3.938 kB / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3224, allocations: 0 / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.3224, allocations: 4 kB / 1.329 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000611/0.323, allocations: 0.6488 MB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.323, allocations: 0 / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.913e-05/0.3231, allocations: 11.92 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.3231, allocations: 4 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.3231, allocations: 0 / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3231, allocations: 0 / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3231, allocations: 4 kB / 1.329 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001586/0.3232, allocations: 135.9 kB / 1.329 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.3234, allocations: 124.8 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.3234, allocations: 192 / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.193e-05/0.3234, allocations: 7.938 kB / 1.329 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.3235, allocations: 15.94 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-06/0.3235, allocations: 0 / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004544/0.324, allocations: 387 kB / 1.33 GB, free: 9.691 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.324, allocations: 3.938 kB / 1.33 GB, free: 9.688 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002531/0.3242, allocations: 40 kB / 1.33 GB, free: 9.648 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.0006803/0.3249, allocations: 0.681 MB / 1.331 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.3251, allocations: 99.88 kB / 1.331 GB, free: 8.828 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3251, allocations: 0 / 1.331 GB, free: 8.828 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.948e-05/0.3252, allocations: 15.94 kB / 1.331 GB, free: 8.812 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002722/0.3254, allocations: 33.81 kB / 1.331 GB, free: 8.781 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/0.329, allocations: 2.901 MB / 1.334 GB, free: 5.773 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005219/0.3295, allocations: 0.7946 MB / 1.334 GB, free: 4.949 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001129/0.3296, allocations: 54.94 kB / 1.334 GB, free: 4.898 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3297, allocations: 96.78 kB / 1.334 GB, free: 4.805 MB / 1.029 GB Notification: Performance of SimCode: time 6.91e-07/0.3298, allocations: 384 / 1.334 GB, free: 4.805 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03358/0.3633, allocations: 5.692 MB / 1.34 GB, free: 15.27 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.396/8.759, allocations: 12.48 kB / 1.34 GB, free: 15.27 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.491240130970255]