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.085/2.085, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000433/0.0004331, allocations: 12 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2723, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.746/2.018, allocations: 0.6877 GB / 1.048 GB, free: 173.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/2.019, allocations: 86.66 kB / 1.048 GB, free: 173.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.322/4.341, allocations: 0.5508 GB / 1.599 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.275e-06/4.341, allocations: 0 / 1.599 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002865/4.341, allocations: 63.92 kB / 1.599 GB, free: 8.246 MB / 0.4948 GB 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.01242/4.354, allocations: 3.322 MB / 1.603 GB, free: 4.848 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/4.354, allocations: 8.031 kB / 1.603 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004203/4.358, allocations: 448.7 kB / 1.603 GB, free: 4.398 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006986/4.365, allocations: 1.953 MB / 1.605 GB, free: 2.391 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/4.365, allocations: 123 kB / 1.605 GB, free: 2.27 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006688/4.366, allocations: 175.9 kB / 1.605 GB, free: 2.098 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3338/4.7, allocations: 2.61 MB / 1.608 GB, free: 42.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-05/4.7, allocations: 4.453 kB / 1.608 GB, free: 42.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004392/4.7, allocations: 73.67 kB / 1.608 GB, free: 42.29 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003565/4.701, allocations: 153.1 kB / 1.608 GB, free: 42.29 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006886/4.707, allocations: 2.253 MB / 1.61 GB, free: 42.27 MB / 0.4948 GB 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.01988/4.727, allocations: 10.96 MB / 1.621 GB, free: 36.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00402/4.731, allocations: 1.783 MB / 1.623 GB, free: 36.27 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001157/4.733, allocations: 462.4 kB / 1.623 GB, free: 35.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002595/4.735, allocations: 1.181 MB / 1.624 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=162): time 5.783e-06/4.735, allocations: 0 / 1.624 GB, free: 35.86 MB / 0.4948 GB 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.03539/4.771, allocations: 10.99 MB / 1.635 GB, free: 33.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/4.771, allocations: 258.5 kB / 1.635 GB, free: 33.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002619/4.773, allocations: 1.348 MB / 1.636 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005625/4.774, allocations: 61.33 kB / 1.637 GB, free: 33.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006722/4.775, allocations: 0.8072 MB / 1.637 GB, free: 33.17 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008082/4.776, allocations: 0.6167 MB / 1.638 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/4.776, allocations: 44.12 kB / 1.638 GB, free: 32.86 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001454/4.776, allocations: 392.6 kB / 1.638 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/4.778, allocations: 1.033 MB / 1.639 GB, free: 32.54 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002876/4.781, allocations: 1.478 MB / 1.641 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/4.784, allocations: 1.308 MB / 1.642 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/4.784, allocations: 3.656 kB / 1.642 GB, free: 32.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.007254/4.792, allocations: 2.976 MB / 1.645 GB, free: 31.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008394/4.792, allocations: 4.163 MB / 1.649 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/4.792, allocations: 12.78 kB / 1.649 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005867/4.793, allocations: 191.4 kB / 1.649 GB, free: 27.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003117/4.796, allocations: 0.547 MB / 1.65 GB, free: 27.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/4.798, allocations: 2.332 MB / 1.652 GB, free: 25.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003086/4.801, allocations: 210.7 kB / 1.652 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004771/4.801, allocations: 190.2 kB / 1.652 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/4.801, allocations: 5.188 kB / 1.652 GB, free: 25.36 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006698/4.808, allocations: 2.815 MB / 1.655 GB, free: 25.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.273e-05/4.808, allocations: 11.03 kB / 1.655 GB, free: 25.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000563/4.809, allocations: 191.9 kB / 1.655 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/4.812, allocations: 0.5363 MB / 1.656 GB, free: 25.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/4.813, allocations: 2.326 MB / 1.658 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/4.815, allocations: 208.3 kB / 1.658 GB, free: 23.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004034/4.816, allocations: 185.5 kB / 1.659 GB, free: 23.11 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (250): * Single equations (assignments): 244 * 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.001739/4.817, allocations: 0.6921 MB / 1.659 GB, free: 22.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005439/4.818, allocations: 213.1 kB / 1.659 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00988/4.828, allocations: 3.518 MB / 1.663 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/4.828, allocations: 25.05 kB / 1.663 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/4.828, allocations: 1.938 kB / 1.663 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005628/4.834, allocations: 2.766 MB / 1.666 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01553/4.849, allocations: 6.927 MB / 1.672 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.911e-05/4.849, allocations: 6.594 kB / 1.672 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002353/4.852, allocations: 449 kB / 1.673 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005611/4.852, allocations: 182.8 kB / 1.673 GB, free: 20.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002953/4.853, allocations: 111.2 kB / 1.673 GB, free: 20.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/4.856, allocations: 3.07 MB / 1.676 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.524e-06/4.856, allocations: 15.05 kB / 1.676 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008878/4.864, allocations: 4.733 MB / 1.681 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/4.866, allocations: 0.5323 MB / 1.681 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004851/4.867, allocations: 60.33 kB / 1.681 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/4.868, allocations: 129 kB / 1.681 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003618/4.869, allocations: 180 kB / 1.682 GB, free: 32.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003545/4.869, allocations: 171.1 kB / 1.682 GB, free: 32.19 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001837/4.871, allocations: 1.021 MB / 1.683 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.07e-07/4.871, allocations: 0 / 1.683 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007235/4.878, allocations: 1.956 MB / 1.685 GB, free: 32.08 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.006056/4.884, allocations: 2.437 MB / 1.687 GB, free: 31.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009579/4.894, allocations: 4.394 MB / 1.691 GB, free: 31.49 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/4.894, allocations: 0 / 1.691 GB, free: 31.49 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003145/4.897, allocations: 1.571 MB / 1.693 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005487/4.903, allocations: 0.9175 MB / 1.694 GB, free: 31.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/4.919, allocations: 7.213 MB / 1.701 GB, free: 29.06 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0017/4.921, allocations: 1.707 MB / 1.702 GB, free: 28.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/4.923, allocations: 365.3 kB / 1.703 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of SimCode: time 1.833e-06/4.923, allocations: 0 / 1.703 GB, free: 28.32 MB / 0.5105 GB Notification: Performance of Templates: time 0.1136/5.037, allocations: 83.35 MB / 1.784 GB, free: 15.51 MB / 0.5261 GB