Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.238/2.238, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004335/0.0004336, allocations: 20 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3448, allocations: 54.87 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.209/2.554, allocations: 0.6877 GB / 1.049 GB, free: 125.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002804/2.555, allocations: 87.98 kB / 1.049 GB, free: 125.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.085/5.639, allocations: 0.5508 GB / 1.6 GB, free: 41.68 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.026e-06/5.639, allocations: 0 / 1.6 GB, free: 41.68 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003537/5.64, allocations: 66 kB / 1.6 GB, free: 41.68 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.01531/5.655, allocations: 3.319 MB / 1.603 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/5.655, allocations: 11.12 kB / 1.603 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004944/5.66, allocations: 438.8 kB / 1.603 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008696/5.669, allocations: 1.958 MB / 1.605 GB, free: 40.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/5.669, allocations: 140.4 kB / 1.606 GB, free: 40.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/5.67, allocations: 165.1 kB / 1.606 GB, free: 40.04 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008468/5.679, allocations: 2.634 MB / 1.608 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-05/5.679, allocations: 3.375 kB / 1.608 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004379/5.679, allocations: 74.94 kB / 1.608 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002923/5.679, allocations: 154.2 kB / 1.608 GB, free: 39.61 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007537/5.687, allocations: 2.244 MB / 1.611 GB, free: 39.59 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.02538/5.712, allocations: 10.95 MB / 1.621 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005149/5.718, allocations: 1.796 MB / 1.623 GB, free: 33.41 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001546/5.719, allocations: 463.3 kB / 1.624 GB, free: 33.12 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003522/5.723, allocations: 1.179 MB / 1.625 GB, free: 33 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=162): time 6.603e-06/5.723, allocations: 0 / 1.625 GB, free: 33 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.04898/5.772, allocations: 10.99 MB / 1.635 GB, free: 31.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/5.772, allocations: 258 kB / 1.636 GB, free: 30.74 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00305/5.775, allocations: 1.537 MB / 1.637 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007682/5.776, allocations: 61.48 kB / 1.637 GB, free: 30.53 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007636/5.777, allocations: 0.8051 MB / 1.638 GB, free: 30.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009712/5.778, allocations: 0.6296 MB / 1.639 GB, free: 29.74 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/5.778, allocations: 37.72 kB / 1.639 GB, free: 29.74 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001755/5.778, allocations: 396.7 kB / 1.639 GB, free: 29.43 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/5.781, allocations: 1.029 MB / 1.64 GB, free: 29.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0036/5.785, allocations: 1.486 MB / 1.641 GB, free: 28.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003725/5.789, allocations: 1.305 MB / 1.643 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/5.789, allocations: 3.531 kB / 1.643 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.008736/5.797, allocations: 2.975 MB / 1.646 GB, free: 28.69 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003113/5.798, allocations: 471.4 kB / 1.646 GB, free: 28.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/5.798, allocations: 10.84 kB / 1.646 GB, free: 28.17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006636/5.799, allocations: 189.4 kB / 1.646 GB, free: 28.14 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00469/5.803, allocations: 0.5455 MB / 1.647 GB, free: 28.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/5.805, allocations: 2.332 MB / 1.649 GB, free: 26.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004307/5.809, allocations: 211.2 kB / 1.649 GB, free: 26.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009466/5.81, allocations: 191.1 kB / 1.65 GB, free: 26.05 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/5.81, allocations: 3.875 kB / 1.65 GB, free: 26.05 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007835/5.818, allocations: 2.818 MB / 1.652 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.933e-05/5.818, allocations: 11.66 kB / 1.652 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005826/5.819, allocations: 195.2 kB / 1.652 GB, free: 25.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004397/5.823, allocations: 0.5338 MB / 1.653 GB, free: 25.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001625/5.825, allocations: 2.331 MB / 1.655 GB, free: 23.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003337/5.828, allocations: 210.3 kB / 1.655 GB, free: 23.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005527/5.829, allocations: 178.1 kB / 1.656 GB, free: 23.79 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.002186/5.831, allocations: 0.7028 MB / 1.656 GB, free: 23.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007368/5.832, allocations: 210.9 kB / 1.657 GB, free: 23.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/5.844, allocations: 3.52 MB / 1.66 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.633e-05/5.844, allocations: 18.44 kB / 1.66 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/5.844, allocations: 2.531 kB / 1.66 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00701/5.851, allocations: 2.777 MB / 1.663 GB, free: 22.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/5.871, allocations: 6.928 MB / 1.669 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.941e-05/5.871, allocations: 7.062 kB / 1.669 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003748/5.875, allocations: 445.4 kB / 1.67 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007274/5.876, allocations: 185.3 kB / 1.67 GB, free: 21.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005613/5.876, allocations: 105.5 kB / 1.67 GB, free: 21.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/5.879, allocations: 3.082 MB / 1.673 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/5.879, allocations: 8.562 kB / 1.673 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/5.891, allocations: 4.309 MB / 1.677 GB, free: 33.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/5.894, allocations: 0.5277 MB / 1.678 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000885/5.894, allocations: 61.12 kB / 1.678 GB, free: 33.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002961/5.897, allocations: 133.4 kB / 1.678 GB, free: 33.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006289/5.898, allocations: 178.6 kB / 1.678 GB, free: 33.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004573/5.899, allocations: 164.6 kB / 1.678 GB, free: 33.39 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002322/5.901, allocations: 1.028 MB / 1.679 GB, free: 33.28 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.923e-06/5.901, allocations: 0 / 1.679 GB, free: 33.28 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008925/5.91, allocations: 1.953 MB / 1.681 GB, free: 33.03 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.00815/5.918, allocations: 2.444 MB / 1.684 GB, free: 32.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01245/5.931, allocations: 4.394 MB / 1.688 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/5.931, allocations: 0 / 1.688 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004101/5.935, allocations: 1.571 MB / 1.69 GB, free: 31.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007971/5.943, allocations: 0.9236 MB / 1.69 GB, free: 31.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02144/5.964, allocations: 7.232 MB / 1.698 GB, free: 29.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001811/5.966, allocations: 1.696 MB / 1.699 GB, free: 28.97 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002745/5.969, allocations: 365.9 kB / 1.7 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/5.969, allocations: 1.062 kB / 1.7 GB, free: 28.96 MB / 0.5105 GB Notification: Performance of Templates: time 0.1487/6.118, allocations: 83.36 MB / 1.781 GB, free: 1.832 MB / 0.5261 GB