Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005574/0.005574, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 200.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.718/2.718, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 68.08 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6679/0.6698, allocations: 159.1 MB / 1.22 GB, free: 2.102 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002059/0.6719, allocations: 0.8571 MB / 1.221 GB, free: 1.246 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002655/0.6722, allocations: 95.64 kB / 1.221 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.6723, allocations: 0 / 1.221 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001143/0.6724, allocations: 23.8 kB / 1.221 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.6726, allocations: 15.8 kB / 1.221 GB, free: 1.113 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.533e-05/0.6727, allocations: 39.97 kB / 1.221 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000323/0.673, allocations: 259.4 kB / 1.221 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003978/0.6734, allocations: 294.3 kB / 1.222 GB, free: 0.5312 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.6735, allocations: 127.5 kB / 1.222 GB, free: 416 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.6737, allocations: 151.2 kB / 1.222 GB, free: 264 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.6738, allocations: 32 kB / 1.222 GB, free: 232 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.756e-05/0.6738, allocations: 32 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.277e-05/0.6739, allocations: 87.78 kB / 1.222 GB, free: 112 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.6741, allocations: 155.1 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.6745, allocations: 461.7 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.6746, allocations: 0 / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6746, allocations: 0 / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.6746, allocations: 4 kB / 1.223 GB, free: 15.51 MB / 0.9512 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.0007464/0.6753, allocations: 0.5999 MB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.6754, allocations: 12.03 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.472e-05/0.6755, allocations: 70.72 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.439e-05/0.6755, allocations: 48.64 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.676, allocations: 336.3 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/0.676, allocations: 33.02 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/0.6761, allocations: 32.38 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.6767, allocations: 404.1 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.6767, allocations: 3.938 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.6768, allocations: 16 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.6768, allocations: 12 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005061/0.6773, allocations: 299.6 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.6787, allocations: 1.05 MB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.6789, allocations: 93.16 kB / 1.226 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.914e-05/0.6789, allocations: 49.78 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.679, allocations: 0 / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.679, allocations: 38.5 kB / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.022e-06/0.679, allocations: 4 kB / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0003364/0.6794, allocations: 165.3 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.6794, allocations: 81.05 kB / 1.226 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005893/0.68, allocations: 0.5092 MB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.68, allocations: 29.7 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.6802, allocations: 207.8 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.6802, allocations: 19.88 kB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.641e-05/0.6803, allocations: 53.64 kB / 1.227 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.6805, allocations: 350.8 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.6806, allocations: 63.95 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.6808, allocations: 85.61 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001833/0.681, allocations: 121.6 kB / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.681, allocations: 0 / 1.227 GB, free: 10.5 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003143/0.6813, allocations: 201.4 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.6813, allocations: 14.33 kB / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.6813, allocations: 0 / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.6813, allocations: 3.938 kB / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.6815, allocations: 31.94 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.6815, allocations: 3.984 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.176e-05/0.6816, allocations: 39.62 kB / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.6816, allocations: 8.188 kB / 1.228 GB, free: 10.2 MB / 0.9512 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.0002045/0.6818, allocations: 204.5 kB / 1.228 GB, free: 9.996 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.117e-05/0.6819, allocations: 31.75 kB / 1.228 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002171/0.6821, allocations: 118 kB / 1.228 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.6821, allocations: 11.81 kB / 1.228 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6822, allocations: 0 / 1.228 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.6822, allocations: 4.062 kB / 1.228 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005986/0.6828, allocations: 0.6526 MB / 1.229 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.6828, allocations: 0 / 1.229 GB, free: 9.102 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.387e-05/0.6828, allocations: 7.984 kB / 1.229 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.6828, allocations: 4.375 kB / 1.229 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.6828, allocations: 8.125 kB / 1.229 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.6828, allocations: 3.938 kB / 1.229 GB, free: 9.078 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.6828, allocations: 0 / 1.229 GB, free: 9.078 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.683, allocations: 131.4 kB / 1.229 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.6831, allocations: 120.9 kB / 1.229 GB, free: 8.785 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.6832, allocations: 4 kB / 1.229 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.343e-05/0.6832, allocations: 4 kB / 1.229 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.351e-05/0.6832, allocations: 11.94 kB / 1.229 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.6832, allocations: 0 / 1.229 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000446/0.6837, allocations: 387 kB / 1.229 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6837, allocations: 0 / 1.229 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002506/0.684, allocations: 43.89 kB / 1.229 GB, free: 8.344 MB / 0.9512 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.0004824/0.6844, allocations: 0.6733 MB / 1.23 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002155/0.6847, allocations: 107.8 kB / 1.23 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.6847, allocations: 0 / 1.23 GB, free: 7.523 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 3.111e-05/0.6847, allocations: 20 kB / 1.23 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.685, allocations: 33.88 kB / 1.23 GB, free: 7.469 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.6884, allocations: 2.905 MB / 1.233 GB, free: 4.461 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.6888, allocations: 0.7909 MB / 1.234 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001241/0.689, allocations: 58.88 kB / 1.234 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.6891, allocations: 95.41 kB / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of SimCode: time 3.9e-07/0.6891, allocations: 0 / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.7158, allocations: 5.688 MB / 1.239 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.462/9.178, allocations: 2.844 kB / 1.239 GB, free: 13.96 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches