Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.137/2.137, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.0004299, allocations: 12 kB / 314.3 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2909/0.2914, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15): time 0.558/0.8494, allocations: 180.9 MB / 0.5372 GB, free: 6.965 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03835/0.8878, allocations: 22.05 MB / 0.5587 GB, free: 11.91 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003112/0.891, allocations: 103.2 kB / 0.5588 GB, free: 11.8 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00324/0.8942, allocations: 0.9409 MB / 0.5597 GB, free: 10.86 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01344/0.9077, allocations: 3.56 MB / 0.5632 GB, free: 7.289 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01774/0.9255, allocations: 5.086 MB / 0.5682 GB, free: 2.195 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008364/0.9338, allocations: 4.448 MB / 0.5725 GB, free: 13.74 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002332/0.9362, allocations: 1.256 MB / 0.5737 GB, free: 12.46 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004745/0.941, allocations: 2.057 MB / 0.5757 GB, free: 10.4 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003261/0.9443, allocations: 1.628 MB / 0.5773 GB, free: 8.766 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004313/0.9447, allocations: 108 kB / 0.5774 GB, free: 8.66 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008861/0.9536, allocations: 3.185 MB / 0.5805 GB, free: 5.473 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.955, allocations: 0.7401 MB / 0.5813 GB, free: 4.73 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009536/0.9559, allocations: 476.5 kB / 0.5817 GB, free: 4.258 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008001/0.9639, allocations: 3.765 MB / 0.5854 GB, free: 496 kB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.604e-06/0.964, allocations: 0 / 0.5854 GB, free: 496 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.698e-06/0.964, allocations: 3.938 kB / 0.5854 GB, free: 492 kB / 442.7 MB Notification: Performance of Transformations before backend: time 3.358e-05/0.964, allocations: 0 / 0.5854 GB, free: 492 kB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.008071/0.9721, allocations: 2.914 MB / 0.5882 GB, free: 13.49 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.9722, allocations: 16.03 kB / 0.5883 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003242/0.9754, allocations: 428.8 kB / 0.5887 GB, free: 13.05 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/0.9791, allocations: 1.438 MB / 0.5901 GB, free: 11.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.9793, allocations: 123 kB / 0.5902 GB, free: 11.44 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004364/0.9797, allocations: 171.9 kB / 0.5904 GB, free: 11.27 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005533/0.9853, allocations: 2.524 MB / 0.5928 GB, free: 8.645 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.185e-05/0.9854, allocations: 3.938 kB / 0.5928 GB, free: 8.641 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.9856, allocations: 75.92 kB / 0.5929 GB, free: 8.566 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003214/0.986, allocations: 186.9 kB / 0.5931 GB, free: 8.383 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005303/0.9913, allocations: 2.214 MB / 0.5952 GB, free: 6.164 MB / 458.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.01878/1.01, allocations: 10.71 MB / 0.6057 GB, free: 10.71 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003976/1.014, allocations: 1.771 MB / 0.6074 GB, free: 8.871 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001072/1.015, allocations: 460.4 kB / 0.6079 GB, free: 8.367 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002476/1.018, allocations: 1.155 MB / 0.609 GB, free: 7.191 MB / 474.7 MB Notification: Performance of pre-optimization done (n=162): time 5.605e-06/1.018, allocations: 4 kB / 0.609 GB, free: 7.188 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T 4: junctionIdeal.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.03356/1.051, allocations: 10.84 MB / 0.6196 GB, free: 12.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/1.051, allocations: 180.2 kB / 0.6198 GB, free: 11.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002725/1.054, allocations: 1.498 MB / 0.6212 GB, free: 10.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002624/1.055, allocations: 65.64 kB / 0.6213 GB, free: 10.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008803/1.055, allocations: 0.8377 MB / 0.6221 GB, free: 9.441 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000787/1.056, allocations: 0.6239 MB / 0.6227 GB, free: 8.809 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/1.056, allocations: 40 kB / 0.6227 GB, free: 8.77 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002668/1.057, allocations: 395.1 kB / 0.6231 GB, free: 8.375 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/1.059, allocations: 1.015 MB / 0.6241 GB, free: 7.355 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003009/1.062, allocations: 1.52 MB / 0.6256 GB, free: 5.645 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002948/1.065, allocations: 1.301 MB / 0.6269 GB, free: 4.328 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/1.065, allocations: 4 kB / 0.6269 GB, free: 4.324 MB / 490.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.007399/1.073, allocations: 2.99 MB / 0.6298 GB, free: 1.301 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005227/1.073, allocations: 0.5409 MB / 0.6303 GB, free: 0.5703 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.672e-05/1.073, allocations: 12 kB / 0.6303 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006261/1.074, allocations: 187.3 kB / 0.6305 GB, free: 372 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003155/1.077, allocations: 0.5656 MB / 0.6311 GB, free: 15.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/1.079, allocations: 2.334 MB / 0.6333 GB, free: 13.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002668/1.082, allocations: 211.9 kB / 0.6335 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005471/1.083, allocations: 192 kB / 0.6337 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/1.083, allocations: 8 kB / 0.6337 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006913/1.09, allocations: 2.849 MB / 0.6365 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.04e-05/1.09, allocations: 12 kB / 0.6365 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005806/1.09, allocations: 191.8 kB / 0.6367 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002893/1.093, allocations: 0.5539 MB / 0.6373 GB, free: 9.316 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/1.095, allocations: 2.342 MB / 0.6395 GB, free: 6.871 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/1.097, allocations: 207.9 kB / 0.6397 GB, free: 6.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004/1.098, allocations: 188 kB / 0.6399 GB, free: 6.484 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 253 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00166/1.099, allocations: 0.6959 MB / 0.6406 GB, free: 5.766 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000545/1.1, allocations: 213.4 kB / 0.6408 GB, free: 5.555 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009995/1.11, allocations: 3.485 MB / 0.6442 GB, free: 2.023 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/1.11, allocations: 20 kB / 0.6442 GB, free: 2.004 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.11, allocations: 0 / 0.6442 GB, free: 2.004 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005757/1.116, allocations: 2.724 MB / 0.6469 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/1.131, allocations: 6.786 MB / 0.6535 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-05/1.131, allocations: 8 kB / 0.6535 GB, free: 8.062 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.134, allocations: 443.4 kB / 0.6539 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006493/1.135, allocations: 191.4 kB / 0.6541 GB, free: 7.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002833/1.135, allocations: 107.9 kB / 0.6542 GB, free: 7.324 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/1.138, allocations: 3.07 MB / 0.6572 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/1.138, allocations: 11.98 kB / 0.6572 GB, free: 4.027 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2575/1.396, allocations: 4.215 MB / 0.6614 GB, free: 213.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00167/1.397, allocations: 0.5117 MB / 0.6619 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00049/1.398, allocations: 61.7 kB / 0.6619 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.4, allocations: 122.2 kB / 0.662 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000379/1.4, allocations: 175.4 kB / 0.6622 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003746/1.4, allocations: 168.9 kB / 0.6624 GB, free: 213.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001873/1.402, allocations: 0.9875 MB / 0.6633 GB, free: 213.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.55e-06/1.402, allocations: 1.938 kB / 0.6633 GB, free: 213.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005094/1.407, allocations: 1.707 MB / 0.665 GB, free: 213.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003603/1.411, allocations: 1.265 MB / 0.6662 GB, free: 213 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009/1.42, allocations: 4.424 MB / 0.6705 GB, free: 211.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.99e-06/1.42, allocations: 7.031 kB / 0.6706 GB, free: 211.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002894/1.423, allocations: 1.561 MB / 0.6721 GB, free: 210.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005052/1.428, allocations: 0.9113 MB / 0.673 GB, free: 210.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009458/1.438, allocations: 5.768 MB / 0.6786 GB, free: 207.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/1.439, allocations: 1.698 MB / 0.6803 GB, free: 206.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/1.441, allocations: 366.4 kB / 0.6806 GB, free: 206.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.582e-06/1.441, allocations: 3.5 kB / 0.6806 GB, free: 206.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.08846/1.53, allocations: 77.25 MB / 0.756 GB, free: 132.5 MB / 0.5105 GB