Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 1.806/1.806, allocations: 209.2 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004479, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2862, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.22/6.506, allocations: 2.563 GB / 2.886 GB, free: 110.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/6.507, allocations: 80.2 kB / 2.886 GB, free: 110.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.844/10.35, allocations: 0.8485 GB / 3.735 GB, free: 30.31 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.552e-06/10.35, allocations: 0 / 3.735 GB, free: 30.31 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002491/10.35, allocations: 61.19 kB / 3.735 GB, free: 30.3 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01466/10.37, allocations: 3.891 MB / 3.739 GB, free: 28.57 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/10.37, allocations: 9.203 kB / 3.739 GB, free: 28.57 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007127/10.37, allocations: 0.7578 MB / 3.739 GB, free: 28.44 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006304/10.38, allocations: 1.983 MB / 3.741 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/10.38, allocations: 162.2 kB / 3.741 GB, free: 28 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007115/10.38, allocations: 180.4 kB / 3.742 GB, free: 28 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009183/10.39, allocations: 3.255 MB / 3.745 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.339e-05/10.39, allocations: 8.219 kB / 3.745 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/10.39, allocations: 83.09 kB / 3.745 GB, free: 27.52 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002432/10.39, allocations: 147.4 kB / 3.745 GB, free: 27.51 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01007/10.4, allocations: 2.932 MB / 3.748 GB, free: 27.5 MB / 474.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.02132/10.42, allocations: 13.88 MB / 3.761 GB, free: 19.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006194/10.43, allocations: 2.031 MB / 3.763 GB, free: 19.01 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03842/10.47, allocations: 18.79 MB / 3.782 GB, free: 23.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005123/10.47, allocations: 1.581 MB / 3.783 GB, free: 23.05 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001396/10.47, allocations: 166.5 kB / 3.783 GB, free: 22.98 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 5.848e-06/10.47, allocations: 0 / 3.783 GB, free: 22.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.02842/10.5, allocations: 8.315 MB / 3.792 GB, free: 21.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/10.5, allocations: 256.2 kB / 3.792 GB, free: 21.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002402/10.5, allocations: 1.267 MB / 3.793 GB, free: 21.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004472/10.5, allocations: 54.73 kB / 3.793 GB, free: 21.28 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007881/10.51, allocations: 0.8462 MB / 3.794 GB, free: 20.87 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007711/10.51, allocations: 0.5457 MB / 3.794 GB, free: 20.52 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/10.51, allocations: 40.97 kB / 3.795 GB, free: 20.52 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002632/10.51, allocations: 387.1 kB / 3.795 GB, free: 20.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002651/10.51, allocations: 1.01 MB / 3.796 GB, free: 20.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003063/10.51, allocations: 1.443 MB / 3.797 GB, free: 19.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/10.52, allocations: 1.242 MB / 3.799 GB, free: 19.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.55e-05/10.52, allocations: 6.344 kB / 3.799 GB, free: 19.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.008169/10.52, allocations: 3.03 MB / 3.801 GB, free: 19.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002176/10.53, allocations: 4.246 MB / 3.806 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.35e-05/10.53, allocations: 9.969 kB / 3.806 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003569/10.53, allocations: 0.5342 MB / 3.806 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/10.53, allocations: 455.9 kB / 3.807 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/10.54, allocations: 2.7 MB / 3.809 GB, free: 12.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003225/10.54, allocations: 267.2 kB / 3.809 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005638/10.54, allocations: 97.61 kB / 3.81 GB, free: 12.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/10.54, allocations: 6.922 kB / 3.81 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007732/10.55, allocations: 2.767 MB / 3.812 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.716e-05/10.55, allocations: 12.05 kB / 3.812 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008895/10.55, allocations: 213.7 kB / 3.812 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002533/10.55, allocations: 467.3 kB / 3.813 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/10.55, allocations: 1.878 MB / 3.815 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002487/10.56, allocations: 263.2 kB / 3.815 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004624/10.56, allocations: 90.5 kB / 3.815 GB, free: 11.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002099/10.56, allocations: 0.705 MB / 3.816 GB, free: 10.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005481/10.56, allocations: 197.7 kB / 3.816 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/10.57, allocations: 7.451 MB / 3.823 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.792e-05/10.57, allocations: 81.06 kB / 3.823 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/10.57, allocations: 0 / 3.823 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01126/10.58, allocations: 6.521 MB / 3.83 GB, free: 9.188 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0215/10.6, allocations: 11.21 MB / 3.841 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.02e-05/10.6, allocations: 9.312 kB / 3.841 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00187/10.61, allocations: 355.4 kB / 3.841 GB, free: 8.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003336/10.61, allocations: 1.179 MB / 3.842 GB, free: 7.961 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004233/10.61, allocations: 65.17 kB / 3.842 GB, free: 7.961 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/10.61, allocations: 3.19 MB / 3.845 GB, free: 5.867 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.459e-06/10.61, allocations: 8.875 kB / 3.845 GB, free: 5.867 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/10.63, allocations: 7.467 MB / 3.853 GB, free: 4.582 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002098/10.63, allocations: 0.7019 MB / 3.853 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007027/10.63, allocations: 51.98 kB / 3.853 GB, free: 20.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/10.63, allocations: 195.6 kB / 3.854 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/10.63, allocations: 149.8 kB / 3.854 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002304/10.63, allocations: 72.44 kB / 3.854 GB, free: 20.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002171/10.63, allocations: 1.089 MB / 3.855 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.079e-06/10.63, allocations: 0 / 3.855 GB, free: 19.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01061/10.65, allocations: 2.57 MB / 3.857 GB, free: 19.31 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01183/10.66, allocations: 2.754 MB / 3.86 GB, free: 18.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01088/10.67, allocations: 4.748 MB / 3.865 GB, free: 16.94 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/10.67, allocations: 448 / 3.865 GB, free: 16.94 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00468/10.67, allocations: 2.453 MB / 3.867 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00541/10.68, allocations: 0.9037 MB / 3.868 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6015/11.28, allocations: 128.1 MB / 3.993 GB, free: 48.01 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001948/11.28, allocations: 2.136 MB / 3.995 GB, free: 47.23 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000983/11.28, allocations: 190 kB / 3.995 GB, free: 47.23 MB / 0.4948 GB Notification: Performance of SimCode: time 1.721e-06/11.28, allocations: 0 / 3.995 GB, free: 47.23 MB / 0.4948 GB Notification: Performance of Templates: time 0.4752/11.76, allocations: 110.2 MB / 4.103 GB, free: 69.86 MB / 0.5105 GB