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.001715/0.001715, allocations: 103.6 kB / 18.95 MB, free: 2.656 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.002288/0.002288, allocations: 218 kB / 22.25 MB, free: 5.266 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.492/1.492, allocations: 230.6 MB / 256 MB, free: 7.805 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.312/3.312, allocations: 0.49 GB / 0.7951 GB, free: 35.45 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.003231/0.003231, allocations: 63.72 kB / 1.154 GB, free: 25.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3741, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002174/0.3763, allocations: 0.8431 MB / 1.327 GB, free: 0.6836 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002936/0.3766, allocations: 91.64 kB / 1.327 GB, free: 0.5938 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.026e-05/0.3767, allocations: 4 kB / 1.327 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001226/0.3768, allocations: 19.8 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.3769, allocations: 23.84 kB / 1.327 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 8.146e-05/0.377, allocations: 35.97 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.3773, allocations: 259.4 kB / 1.327 GB, free: 264 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.3776, allocations: 175.1 kB / 1.327 GB, free: 84 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.3778, allocations: 131.5 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.3779, allocations: 147.3 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.855e-05/0.378, allocations: 36 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.378, allocations: 32 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.907e-05/0.3781, allocations: 91.7 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.3783, allocations: 115.3 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004818/0.3787, allocations: 466 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3787, allocations: 3.938 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3787, allocations: 0 / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.393e-06/0.3787, allocations: 4 kB / 1.328 GB, free: 15.07 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.000726/0.3795, allocations: 0.5297 MB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3795, allocations: 11.97 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.443e-05/0.3796, allocations: 74.72 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.043e-05/0.3797, allocations: 48.66 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.3801, allocations: 259.3 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.708e-05/0.3802, allocations: 40.97 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.3802, allocations: 32.31 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/0.3809, allocations: 400.2 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3809, allocations: 3.938 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.3809, allocations: 12 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3809, allocations: 8 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005293/0.3814, allocations: 307.4 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001493/0.3829, allocations: 0.9735 MB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001532/0.3831, allocations: 85.22 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.964e-05/0.3832, allocations: 45.78 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.3832, allocations: 0 / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.3832, allocations: 38.5 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.3832, allocations: 0 / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003469/0.3836, allocations: 169.3 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.3836, allocations: 85.09 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006577/0.3843, allocations: 0.5091 MB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3843, allocations: 29.7 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.3845, allocations: 207.7 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.573e-05/0.3845, allocations: 11.94 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.304e-05/0.3846, allocations: 57.66 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001936/0.3848, allocations: 346.8 kB / 1.332 GB, free: 10.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.3849, allocations: 67.86 kB / 1.332 GB, free: 10.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.385, allocations: 85.67 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/0.3852, allocations: 117.5 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3852, allocations: 0 / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003222/0.3855, allocations: 209.4 kB / 1.333 GB, free: 10.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.3856, allocations: 15.94 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3856, allocations: 0 / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3856, allocations: 3.938 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.3857, allocations: 27.98 kB / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3857, allocations: 0 / 1.333 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.549e-05/0.3858, allocations: 43.62 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.3858, allocations: 4 kB / 1.333 GB, free: 10.03 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.0002209/0.386, allocations: 203.7 kB / 1.333 GB, free: 9.824 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.3861, allocations: 35.75 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002322/0.3863, allocations: 122 kB / 1.333 GB, free: 9.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3863, allocations: 3.938 kB / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3863, allocations: 0 / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3864, allocations: 384 / 1.333 GB, free: 9.656 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006283/0.387, allocations: 0.6049 MB / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.387, allocations: 0 / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.429e-05/0.387, allocations: 7.938 kB / 1.334 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.387, allocations: 4.188 kB / 1.334 GB, free: 8.977 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.387, allocations: 4 kB / 1.334 GB, free: 8.973 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.387, allocations: 4.172 kB / 1.334 GB, free: 8.969 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.387, allocations: 4 kB / 1.334 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001631/0.3872, allocations: 135.4 kB / 1.334 GB, free: 8.805 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.5e-05/0.3873, allocations: 47.75 kB / 1.334 GB, free: 8.758 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.3873, allocations: 3.938 kB / 1.334 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.454e-05/0.3874, allocations: 7.938 kB / 1.334 GB, free: 8.746 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.202e-05/0.3874, allocations: 8 kB / 1.334 GB, free: 8.738 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3874, allocations: 0 / 1.334 GB, free: 8.738 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004556/0.3878, allocations: 391 kB / 1.334 GB, free: 8.359 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3878, allocations: 0 / 1.334 GB, free: 8.359 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002577/0.3881, allocations: 39.95 kB / 1.334 GB, free: 8.32 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.000529/0.3886, allocations: 0.6771 MB / 1.335 GB, free: 7.602 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002103/0.3888, allocations: 99.89 kB / 1.335 GB, free: 7.504 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3888, allocations: 0 / 1.335 GB, free: 7.504 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.315e-05/0.3889, allocations: 19.92 kB / 1.335 GB, free: 7.484 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.3891, allocations: 31.31 kB / 1.335 GB, free: 7.457 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003572/0.3927, allocations: 2.912 MB / 1.338 GB, free: 4.441 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.3929, allocations: 187.4 kB / 1.338 GB, free: 4.23 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001147/0.393, allocations: 54.94 kB / 1.338 GB, free: 4.18 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.3932, allocations: 95.41 kB / 1.338 GB, free: 4.086 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3932, allocations: 3.938 kB / 1.338 GB, free: 4.082 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03491/0.4281, allocations: 6.348 MB / 1.345 GB, free: 13.89 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.66, allocations: 10.11 kB / 1.345 GB, free: 13.88 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.605708123999648]