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.003868/0.003868, allocations: 101 kB / 15.73 MB, free: 6 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.001051/0.001051, allocations: 190 kB / 16.67 MB, free: 5.922 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.208/1.208, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.376/2.376, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 71.88 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5849/0.5866, allocations: 159.1 MB / 1.22 GB, free: 2.031 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001728/0.5884, allocations: 0.8532 MB / 1.221 GB, free: 1.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002288/0.5886, allocations: 95.7 kB / 1.221 GB, free: 1.086 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.424e-05/0.5887, allocations: 7.938 kB / 1.221 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.661e-05/0.5888, allocations: 19.8 kB / 1.221 GB, free: 1.059 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.5889, allocations: 19.84 kB / 1.221 GB, free: 1.039 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 6.687e-05/0.589, allocations: 39.91 kB / 1.221 GB, free: 1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002555/0.5893, allocations: 243.5 kB / 1.221 GB, free: 0.7617 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.5896, allocations: 302.2 kB / 1.222 GB, free: 476 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.5897, allocations: 135.5 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.5899, allocations: 139.3 kB / 1.222 GB, free: 200 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.5899, allocations: 32 kB / 1.222 GB, free: 168 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.588e-05/0.59, allocations: 39.94 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.5901, allocations: 79.78 kB / 1.222 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.5902, allocations: 159.2 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.5906, allocations: 465.7 kB / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.5906, allocations: 0 / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5906, allocations: 0 / 1.223 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.5906, allocations: 0 / 1.223 GB, free: 15.44 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.0006179/0.5913, allocations: 0.6077 MB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.5913, allocations: 8.031 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.5914, allocations: 70.72 kB / 1.223 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.5914, allocations: 40.7 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.5918, allocations: 344.2 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.5918, allocations: 32.97 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.5919, allocations: 36.38 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005256/0.5924, allocations: 396.2 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.5924, allocations: 3.938 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.5925, allocations: 16 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.5925, allocations: 8 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004097/0.5929, allocations: 303.5 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.5941, allocations: 1.05 MB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.5943, allocations: 93.16 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.07e-05/0.5943, allocations: 45.78 kB / 1.226 GB, free: 12.22 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.5944, allocations: 4 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.5944, allocations: 38.56 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.5944, allocations: 0 / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.0002932/0.5947, allocations: 173.2 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.5947, allocations: 81.11 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.5952, allocations: 0.5052 MB / 1.226 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.5953, allocations: 29.7 kB / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.5954, allocations: 211.7 kB / 1.227 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.515e-05/0.5954, allocations: 15.89 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.5955, allocations: 53.64 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.5956, allocations: 346.8 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.5957, allocations: 67.94 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.5959, allocations: 85.61 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/0.596, allocations: 117.6 kB / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.596, allocations: 4 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002706/0.5963, allocations: 209.3 kB / 1.228 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.5963, allocations: 5.875 kB / 1.228 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.5963, allocations: 0 / 1.228 GB, free: 10.22 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.5963, allocations: 7.922 kB / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.5965, allocations: 31.94 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.5965, allocations: 4 kB / 1.228 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.96e-05/0.5965, allocations: 39.56 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.5966, allocations: 7.984 kB / 1.228 GB, free: 10.13 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.0001722/0.5967, allocations: 200.6 kB / 1.228 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.5968, allocations: 35.81 kB / 1.228 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.597, allocations: 114 kB / 1.228 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.597, allocations: 3.938 kB / 1.228 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.597, allocations: 0 / 1.228 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.597, allocations: 7.984 kB / 1.228 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004982/0.5975, allocations: 0.6526 MB / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5975, allocations: 0 / 1.229 GB, free: 9.035 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.045e-05/0.5976, allocations: 8 kB / 1.229 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.5976, allocations: 4 kB / 1.229 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.5976, allocations: 4 kB / 1.229 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.5976, allocations: 3.984 kB / 1.229 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5976, allocations: 8.125 kB / 1.229 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.5977, allocations: 127.4 kB / 1.229 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.851e-05/0.5978, allocations: 120.9 kB / 1.229 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.5979, allocations: 0 / 1.229 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.356e-05/0.5979, allocations: 4 kB / 1.229 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.5979, allocations: 8 kB / 1.229 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-06/0.5979, allocations: 4 kB / 1.229 GB, free: 8.703 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003813/0.5983, allocations: 387.2 kB / 1.229 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5983, allocations: 0 / 1.229 GB, free: 8.324 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002167/0.5985, allocations: 51.83 kB / 1.229 GB, free: 8.273 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.0003927/0.5989, allocations: 0.6776 MB / 1.23 GB, free: 7.555 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001801/0.5991, allocations: 99.89 kB / 1.23 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5991, allocations: 0 / 1.23 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.643e-05/0.5992, allocations: 20.11 kB / 1.23 GB, free: 7.438 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.5994, allocations: 37.66 kB / 1.23 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002809/0.6022, allocations: 2.905 MB / 1.233 GB, free: 4.395 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.6026, allocations: 0.7909 MB / 1.234 GB, free: 3.578 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.758e-05/0.6027, allocations: 58.94 kB / 1.234 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.6028, allocations: 93.16 kB / 1.234 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.6028, allocations: 0 / 1.234 GB, free: 3.43 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.913/6.515, allocations: 5.695 MB / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/18.37, allocations: 5.656 kB / 1.239 GB, free: 13.89 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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