Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01515/0.01516, allocations: 103 kB / 15.05 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.002083/0.002083, allocations: 167.7 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.692/1.692, allocations: 170.9 MB / 187.5 MB, free: 0.9922 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.3009/0.3009, allocations: 38.08 MB / 265.1 MB, free: 3.977 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004609/0.0004611, allocations: 16 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.094, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1): time 0.4758/0.5699, allocations: 76.99 MB / 449.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07928/0.6492, allocations: 31.77 MB / 481 MB, free: 5.043 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004022/0.6533, allocations: 92.47 kB / 481.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006145/0.6595, allocations: 1.141 MB / 482.3 MB, free: 4.242 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03321/0.6928, allocations: 5.846 MB / 488.1 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.04598/0.7388, allocations: 7.322 MB / 495.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01191/0.7507, allocations: 3.589 MB / 499 MB, free: 9.203 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004618/0.7554, allocations: 1.282 MB / 0.4886 GB, free: 7.906 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07707/0.8326, allocations: 18.3 MB / 0.5065 GB, free: 5.598 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0555/0.8881, allocations: 18.23 MB / 0.5243 GB, free: 3.359 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.8892, allocations: 116 kB / 0.5244 GB, free: 3.246 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03087/0.9201, allocations: 9.75 MB / 0.5339 GB, free: 9.48 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002042/0.9223, allocations: 0.7635 MB / 0.5346 GB, free: 8.715 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001603/0.9239, allocations: 0.516 MB / 0.5351 GB, free: 8.191 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01776/0.9417, allocations: 6.377 MB / 0.5414 GB, free: 1.801 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.9418, allocations: 4 kB / 0.5414 GB, free: 1.797 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.9418, allocations: 0 / 0.5414 GB, free: 1.797 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000125/0.9419, allocations: 0 / 0.5414 GB, free: 1.797 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01625/0.9582, allocations: 3.692 MB / 0.545 GB, free: 14.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.9583, allocations: 8.031 kB / 0.545 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001102/0.9594, allocations: 295 kB / 0.5453 GB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008056/0.9675, allocations: 0.8046 MB / 0.546 GB, free: 12.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00485/0.9724, allocations: 1.553 MB / 0.5476 GB, free: 11.31 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003143/0.9727, allocations: 175.7 kB / 0.5477 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008077/0.9735, allocations: 195.9 kB / 0.5479 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01289/0.9864, allocations: 3.575 MB / 0.5514 GB, free: 7.215 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.224e-05/0.9866, allocations: 11.94 kB / 0.5514 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004431/0.9871, allocations: 79.97 kB / 0.5515 GB, free: 7.125 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004852/0.9876, allocations: 199.6 kB / 0.5517 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/1.002, allocations: 3.488 MB / 0.5551 GB, free: 3.438 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03186/1.034, allocations: 14.61 MB / 0.5694 GB, free: 3.594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/1.043, allocations: 2.183 MB / 0.5715 GB, free: 1.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3409/1.384, allocations: 19.08 MB / 0.5901 GB, free: 159 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00721/1.391, allocations: 1.632 MB / 0.5917 GB, free: 158.9 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001438/1.392, allocations: 176 kB / 0.5919 GB, free: 158.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=158): time 6.582e-06/1.392, allocations: 0 / 0.5919 GB, free: 158.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=170): time 0.04299/1.435, allocations: 9.131 MB / 0.6008 GB, free: 156.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/1.436, allocations: 339.5 kB / 0.6011 GB, free: 155.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/1.439, allocations: 1.628 MB / 0.6027 GB, free: 155.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004805/1.439, allocations: 62.48 kB / 0.6028 GB, free: 155.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/1.44, allocations: 1.013 MB / 0.6038 GB, free: 154.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009557/1.441, allocations: 0.5748 MB / 0.6043 GB, free: 153.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002423/1.442, allocations: 41.16 kB / 0.6044 GB, free: 153.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/1.442, allocations: 390 kB / 0.6047 GB, free: 153.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/1.446, allocations: 1.129 MB / 0.6058 GB, free: 153.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004239/1.45, allocations: 1.648 MB / 0.6074 GB, free: 152.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004255/1.454, allocations: 1.385 MB / 0.6088 GB, free: 151.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.879e-05/1.454, allocations: 3.969 kB / 0.6088 GB, free: 151.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01133/1.466, allocations: 3.51 MB / 0.6122 GB, free: 150.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001358/1.467, allocations: 5.556 MB / 0.6177 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-05/1.467, allocations: 15.88 kB / 0.6177 GB, free: 144.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008604/1.476, allocations: 0.984 MB / 0.6186 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003879/1.48, allocations: 493.7 kB / 0.6191 GB, free: 143.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003953/1.484, allocations: 3.145 MB / 0.6222 GB, free: 140.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003959/1.488, allocations: 236.8 kB / 0.6224 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006304/1.488, allocations: 101 kB / 0.6225 GB, free: 140.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/1.488, allocations: 3.656 kB / 0.6225 GB, free: 140.8 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01062/1.499, allocations: 3.205 MB / 0.6256 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.298e-05/1.499, allocations: 19.98 kB / 0.6256 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/1.501, allocations: 389.4 kB / 0.626 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/1.505, allocations: 0.4992 MB / 0.6265 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005056/1.51, allocations: 4.136 MB / 0.6305 GB, free: 133.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/1.514, allocations: 229.5 kB / 0.6308 GB, free: 133.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000486/1.515, allocations: 107.1 kB / 0.6309 GB, free: 133 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002004/1.517, allocations: 0.7693 MB / 0.6316 GB, free: 132.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006421/1.517, allocations: 205.5 kB / 0.6318 GB, free: 132 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01601/1.533, allocations: 7.818 MB / 0.6395 GB, free: 124.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.622e-05/1.533, allocations: 83.83 kB / 0.6395 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.533, allocations: 0 / 0.6395 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01313/1.547, allocations: 6.855 MB / 0.6462 GB, free: 117 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/1.568, allocations: 10.78 MB / 0.6568 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/1.568, allocations: 2.406 kB / 0.6568 GB, free: 106.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002761/1.571, allocations: 341.3 kB / 0.6571 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007717/1.578, allocations: 2.128 MB / 0.6592 GB, free: 103.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004931/1.579, allocations: 63.97 kB / 0.6592 GB, free: 103.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004306/1.583, allocations: 4.092 MB / 0.6632 GB, free: 99.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.583, allocations: 0 / 0.6632 GB, free: 99.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01623/1.6, allocations: 7.883 MB / 0.6709 GB, free: 91.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/1.602, allocations: 0.7145 MB / 0.6716 GB, free: 90.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007185/1.602, allocations: 55.98 kB / 0.6717 GB, free: 90.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002802/1.605, allocations: 179.6 kB / 0.6718 GB, free: 90.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004801/1.606, allocations: 137.8 kB / 0.672 GB, free: 90.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002127/1.606, allocations: 71.97 kB / 0.672 GB, free: 90.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002285/1.608, allocations: 1.193 MB / 0.6732 GB, free: 89 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.823e-06/1.608, allocations: 0 / 0.6732 GB, free: 89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009232/1.618, allocations: 2.501 MB / 0.6756 GB, free: 86.69 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03059/1.648, allocations: 9.583 MB / 0.685 GB, free: 77.33 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01416/1.662, allocations: 5.454 MB / 0.6903 GB, free: 71.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/1.662, allocations: 5.875 kB / 0.6903 GB, free: 71.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005182/1.668, allocations: 2.365 MB / 0.6926 GB, free: 69.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007362/1.675, allocations: 0.8875 MB / 0.6935 GB, free: 68.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/1.699, allocations: 20.05 MB / 0.7131 GB, free: 48.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002061/1.701, allocations: 2.292 MB / 0.7153 GB, free: 45.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006401/1.707, allocations: 2.212 MB / 0.7175 GB, free: 43.66 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002449/1.71, allocations: 1.296 MB / 0.7188 GB, free: 42.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.493e-06/1.71, allocations: 3.938 kB / 0.7188 GB, free: 42.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5527/2.262, allocations: 111.5 MB / 0.8277 GB, free: 91.49 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002188/2.263, allocations: 261.2 kB / 0.8279 GB, free: 91.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.544/11.81, allocations: 0 / 0.8279 GB, free: 91.14 MB / 442.7 MB