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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008171/0.008171, allocations: 98.12 kB / 15.73 MB, free: 6.012 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.001541/0.001541, allocations: 196 kB / 16.68 MB, free: 5.93 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.702/2.702, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 72.09 kB / 1.065 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8763/0.8776, allocations: 159.1 MB / 1.221 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002203/0.8798, allocations: 0.8647 MB / 1.221 GB, free: 1.254 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003431/0.8802, allocations: 95.69 kB / 1.222 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.8803, allocations: 8 kB / 1.222 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001667/0.8805, allocations: 19.73 kB / 1.222 GB, free: 1.133 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.8806, allocations: 19.86 kB / 1.222 GB, free: 1.113 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 9.218e-05/0.8807, allocations: 35.97 kB / 1.222 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.881, allocations: 255.5 kB / 1.222 GB, free: 0.8281 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003763/0.8814, allocations: 230.4 kB / 1.222 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.8816, allocations: 139.5 kB / 1.222 GB, free: 476 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001674/0.8817, allocations: 139.3 kB / 1.222 GB, free: 336 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.8818, allocations: 32 kB / 1.222 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.956e-05/0.8818, allocations: 36 kB / 1.222 GB, free: 268 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.165e-05/0.8819, allocations: 79.78 kB / 1.222 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.882, allocations: 159 kB / 1.223 GB, free: 28 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004186/0.8825, allocations: 458.8 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.8825, allocations: 4 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8825, allocations: 3.938 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.8825, allocations: 0 / 1.223 GB, free: 15.57 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.0007409/0.8832, allocations: 0.6154 MB / 1.224 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.8833, allocations: 8.625 kB / 1.224 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.781e-05/0.8833, allocations: 40.7 kB / 1.224 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.8837, allocations: 332.3 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.005e-05/0.8838, allocations: 37.02 kB / 1.224 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.8838, allocations: 28.38 kB / 1.224 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005817/0.8844, allocations: 404.2 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.8844, allocations: 192 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.8845, allocations: 19.94 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.8845, allocations: 8 kB / 1.225 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004343/0.8849, allocations: 299.5 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.8863, allocations: 1.058 MB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.8864, allocations: 89.16 kB / 1.226 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.031e-05/0.8865, allocations: 49.72 kB / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.8865, allocations: 0 / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.8865, allocations: 38.56 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.8865, allocations: 0 / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.000322/0.8868, allocations: 165.3 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.8869, allocations: 89.03 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005277/0.8874, allocations: 0.5014 MB / 1.227 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.8874, allocations: 29.7 kB / 1.227 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.8876, allocations: 207.7 kB / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.8876, allocations: 19.88 kB / 1.227 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.067e-05/0.8877, allocations: 53.66 kB / 1.227 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.8878, allocations: 346.8 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.8879, allocations: 63.95 kB / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.888, allocations: 89.67 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.8881, allocations: 121.6 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.8881, allocations: 0 / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002847/0.8884, allocations: 213.2 kB / 1.228 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.8884, allocations: 4 kB / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.8884, allocations: 0 / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.8885, allocations: 0 / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.8886, allocations: 35.92 kB / 1.228 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.8886, allocations: 7.938 kB / 1.228 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.567e-05/0.8887, allocations: 35.69 kB / 1.228 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.8887, allocations: 8 kB / 1.228 GB, free: 10.35 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.0001806/0.8889, allocations: 204.5 kB / 1.228 GB, free: 10.14 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.521e-05/0.8889, allocations: 31.81 kB / 1.228 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001882/0.8891, allocations: 118 kB / 1.228 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.8891, allocations: 3.938 kB / 1.228 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.8891, allocations: 0 / 1.228 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.8891, allocations: 4.375 kB / 1.228 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005142/0.8897, allocations: 0.6602 MB / 1.229 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.8897, allocations: 192 / 1.229 GB, free: 9.246 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.476e-05/0.8897, allocations: 11.98 kB / 1.229 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.8897, allocations: 4 kB / 1.229 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.8897, allocations: 0 / 1.229 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.8897, allocations: 0 / 1.229 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.8897, allocations: 4 kB / 1.229 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.8898, allocations: 135.4 kB / 1.229 GB, free: 9.066 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.522e-05/0.8899, allocations: 120.9 kB / 1.229 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.89, allocations: 0 / 1.229 GB, free: 8.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.388e-05/0.89, allocations: 4 kB / 1.229 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.89, allocations: 8 kB / 1.229 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.89, allocations: 0 / 1.229 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003984/0.8904, allocations: 387 kB / 1.23 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.8904, allocations: 0 / 1.23 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002417/0.8907, allocations: 47.89 kB / 1.23 GB, free: 8.492 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.0001015/0.8908, allocations: 103.2 kB / 1.23 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002004/0.891, allocations: 111.9 kB / 1.23 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.891, allocations: 0 / 1.23 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 2.474e-05/0.891, allocations: 12 kB / 1.23 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.8912, allocations: 35.38 kB / 1.23 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006687/0.8919, allocations: 0.5173 MB / 1.23 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.8923, allocations: 0.7948 MB / 1.231 GB, free: 6.848 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.933e-05/0.8924, allocations: 54.94 kB / 1.231 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.846e-05/0.8924, allocations: 23.44 kB / 1.231 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of SimCode: time 4.41e-07/0.8924, allocations: 0 / 1.231 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of Templates: time 0.004869/0.8973, allocations: 2.006 MB / 1.233 GB, free: 4.785 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile (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 & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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