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.001907/0.001907, allocations: 109.5 kB / 16.45 MB, free: 6.453 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.002346/0.002346, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.425/1.425, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] 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 3.082/3.082, allocations: 0.505 GB / 0.8066 GB, free: 23.04 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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_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.002189/0.002189, allocations: 76.64 kB / 1.172 GB, free: 17.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3215, allocations: 180.2 MB / 1.348 GB, free: 9.98 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002173/0.3236, allocations: 0.8672 MB / 1.349 GB, free: 9.113 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002577/0.3239, allocations: 91.7 kB / 1.349 GB, free: 9.023 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.202e-05/0.324, allocations: 7.938 kB / 1.349 GB, free: 9.016 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.3241, allocations: 19.73 kB / 1.349 GB, free: 8.996 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.3242, allocations: 19.86 kB / 1.349 GB, free: 8.977 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 8.291e-05/0.3243, allocations: 39.97 kB / 1.349 GB, free: 8.938 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.3246, allocations: 255.5 kB / 1.349 GB, free: 8.688 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.325, allocations: 234.6 kB / 1.349 GB, free: 8.453 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3251, allocations: 127.5 kB / 1.349 GB, free: 8.328 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.3253, allocations: 147.3 kB / 1.349 GB, free: 8.184 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.68e-05/0.3253, allocations: 32 kB / 1.35 GB, free: 8.152 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.131e-05/0.3253, allocations: 32 kB / 1.35 GB, free: 8.121 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.423e-05/0.3254, allocations: 95.64 kB / 1.35 GB, free: 8.027 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.3256, allocations: 155.1 kB / 1.35 GB, free: 7.875 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004303/0.326, allocations: 454.1 kB / 1.35 GB, free: 7.43 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.326, allocations: 7.984 kB / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.343e-06/0.326, allocations: 0 / 1.35 GB, free: 7.422 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.326, allocations: 4 kB / 1.35 GB, free: 7.418 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.0007088/0.3267, allocations: 0.5999 MB / 1.351 GB, free: 6.766 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3268, allocations: 15.98 kB / 1.351 GB, free: 6.75 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.866e-05/0.3268, allocations: 74.66 kB / 1.351 GB, free: 6.668 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.3269, allocations: 44.66 kB / 1.351 GB, free: 6.625 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003882/0.3273, allocations: 332.3 kB / 1.351 GB, free: 6.262 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.852e-05/0.3273, allocations: 33.02 kB / 1.351 GB, free: 6.23 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.076e-05/0.3274, allocations: 32.38 kB / 1.351 GB, free: 6.199 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.328, allocations: 404 kB / 1.352 GB, free: 5.789 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.328, allocations: 3.938 kB / 1.352 GB, free: 5.785 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.328, allocations: 12 kB / 1.352 GB, free: 5.773 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.328, allocations: 8 kB / 1.352 GB, free: 5.766 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.3285, allocations: 299.8 kB / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.3298, allocations: 1.057 MB / 1.353 GB, free: 4.359 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.33, allocations: 93.14 kB / 1.353 GB, free: 4.25 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.148e-05/0.33, allocations: 41.8 kB / 1.353 GB, free: 4.203 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.33, allocations: 4 kB / 1.353 GB, free: 4.199 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.3301, allocations: 38.56 kB / 1.353 GB, free: 4.152 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.3301, allocations: 0 / 1.353 GB, free: 4.152 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003182/0.3304, allocations: 173.2 kB / 1.353 GB, free: 3.977 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3304, allocations: 77.11 kB / 1.353 GB, free: 3.883 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00054/0.331, allocations: 0.5014 MB / 1.354 GB, free: 3.375 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.331, allocations: 33.69 kB / 1.354 GB, free: 3.336 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.3311, allocations: 207.7 kB / 1.354 GB, free: 3.129 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.3312, allocations: 15.89 kB / 1.354 GB, free: 3.113 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.763e-05/0.3312, allocations: 53.66 kB / 1.354 GB, free: 3.055 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3314, allocations: 350.8 kB / 1.355 GB, free: 2.703 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.3315, allocations: 67.95 kB / 1.355 GB, free: 2.637 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.3316, allocations: 95.53 kB / 1.355 GB, free: 2.539 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.3318, allocations: 117.5 kB / 1.355 GB, free: 2.418 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3318, allocations: 8 kB / 1.355 GB, free: 2.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000297/0.3321, allocations: 205.3 kB / 1.355 GB, free: 2.203 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3321, allocations: 8 kB / 1.355 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3321, allocations: 0 / 1.355 GB, free: 2.195 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3321, allocations: 3.938 kB / 1.355 GB, free: 2.191 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.3323, allocations: 35.92 kB / 1.355 GB, free: 2.156 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3323, allocations: 0 / 1.355 GB, free: 2.156 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.42e-05/0.3323, allocations: 35.67 kB / 1.355 GB, free: 2.121 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.47e-05/0.3324, allocations: 4 kB / 1.355 GB, free: 2.117 MB / 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.0002317/0.3326, allocations: 204 kB / 1.355 GB, free: 1.906 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.142e-05/0.3327, allocations: 39.77 kB / 1.355 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002224/0.3329, allocations: 114 kB / 1.355 GB, free: 1.746 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3329, allocations: 3.938 kB / 1.355 GB, free: 1.742 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3329, allocations: 384 / 1.355 GB, free: 1.742 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3329, allocations: 4 kB / 1.355 GB, free: 1.738 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005521/0.3334, allocations: 0.6487 MB / 1.356 GB, free: 1.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3334, allocations: 3.984 kB / 1.356 GB, free: 1.016 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.047e-05/0.3335, allocations: 4 kB / 1.356 GB, free: 1.012 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.3335, allocations: 7.984 kB / 1.356 GB, free: 1.004 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.755e-06/0.3335, allocations: 4 kB / 1.356 GB, free: 1 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3335, allocations: 0 / 1.356 GB, free: 1 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3335, allocations: 8.125 kB / 1.356 GB, free: 0.9922 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.3336, allocations: 131.3 kB / 1.356 GB, free: 0.8359 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 9.995e-05/0.3337, allocations: 124.8 kB / 1.356 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3338, allocations: 0 / 1.356 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.245e-05/0.3338, allocations: 8.188 kB / 1.356 GB, free: 0.6875 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.3338, allocations: 7.984 kB / 1.356 GB, free: 0.6797 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.3338, allocations: 7.938 kB / 1.356 GB, free: 0.6719 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004116/0.3342, allocations: 387 kB / 1.357 GB, free: 300 kB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3342, allocations: 0 / 1.357 GB, free: 300 kB / 1.045 GB Notification: Performance of remove unused functions: time 0.000232/0.3345, allocations: 39.95 kB / 1.357 GB, free: 260 kB / 1.045 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.0004617/0.3349, allocations: 0.6732 MB / 1.357 GB, free: 15.54 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001972/0.3351, allocations: 95.88 kB / 1.358 GB, free: 15.45 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3351, allocations: 4 kB / 1.358 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.118e-05/0.3352, allocations: 24.06 kB / 1.358 GB, free: 15.42 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.3354, allocations: 33.5 kB / 1.358 GB, free: 15.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.3386, allocations: 2.912 MB / 1.36 GB, free: 12.37 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004029/0.339, allocations: 0.7868 MB / 1.361 GB, free: 11.56 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001105/0.3391, allocations: 58.94 kB / 1.361 GB, free: 11.5 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3392, allocations: 91.41 kB / 1.361 GB, free: 11.41 MB / 1.061 GB Notification: Performance of SimCode: time 3e-07/0.3392, allocations: 0 / 1.361 GB, free: 11.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.3675, allocations: 5.706 MB / 1.367 GB, free: 5.859 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.732/8.099, allocations: 11.98 kB / 1.367 GB, free: 5.852 MB / 1.061 GB " [Timeout remaining time 292] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/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] "Error: Could not read variable idxFirTru.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTru.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! Error: Could not read variable idxFirTruAllFal.y in file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv. Warning: Get data of variable idxFirTruAllFal.y from file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.510903212008998]