Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.987/1.987, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004493, allocations: 16 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3441, allocations: 48.7 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.303/7.647, allocations: 2.563 GB / 2.887 GB, free: 97.65 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/7.648, allocations: 81.83 kB / 2.887 GB, free: 97.65 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.71/12.36, allocations: 0.8485 GB / 3.735 GB, free: 30.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.264e-06/12.36, allocations: 0 / 3.735 GB, free: 30.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003077/12.36, allocations: 57.62 kB / 3.735 GB, free: 30.32 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.01851/12.38, allocations: 3.894 MB / 3.739 GB, free: 28.54 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/12.38, allocations: 9.938 kB / 3.739 GB, free: 28.54 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008018/12.39, allocations: 0.7539 MB / 3.74 GB, free: 28.41 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008244/12.39, allocations: 1.986 MB / 3.742 GB, free: 27.98 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003204/12.39, allocations: 165.3 kB / 3.742 GB, free: 27.97 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009371/12.39, allocations: 180.5 kB / 3.742 GB, free: 27.97 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/12.41, allocations: 3.266 MB / 3.745 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.823e-05/12.41, allocations: 3.656 kB / 3.745 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004503/12.41, allocations: 87.17 kB / 3.745 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003267/12.41, allocations: 148.2 kB / 3.746 GB, free: 27.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01172/12.42, allocations: 2.934 MB / 3.748 GB, free: 27.46 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.03279/12.45, allocations: 13.88 MB / 3.762 GB, free: 19 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/12.46, allocations: 2.028 MB / 3.764 GB, free: 18.96 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08429/12.55, allocations: 18.8 MB / 3.782 GB, free: 23.13 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0218/12.57, allocations: 1.579 MB / 3.784 GB, free: 23 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003666/12.57, allocations: 166.4 kB / 3.784 GB, free: 22.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 2.295e-05/12.57, allocations: 0 / 3.784 GB, free: 22.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=163): time 0.05912/12.63, allocations: 8.331 MB / 3.792 GB, free: 21.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002422/12.63, allocations: 256.1 kB / 3.792 GB, free: 21.42 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004863/12.64, allocations: 1.443 MB / 3.794 GB, free: 21.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000714/12.64, allocations: 58.11 kB / 3.794 GB, free: 21.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001422/12.64, allocations: 0.8379 MB / 3.795 GB, free: 20.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001306/12.64, allocations: 0.5488 MB / 3.795 GB, free: 20.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003445/12.64, allocations: 36.03 kB / 3.795 GB, free: 20.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000339/12.64, allocations: 389.2 kB / 3.796 GB, free: 20.12 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005194/12.65, allocations: 1.007 MB / 3.797 GB, free: 20.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00594/12.65, allocations: 1.452 MB / 3.798 GB, free: 19.68 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006013/12.66, allocations: 1.245 MB / 3.799 GB, free: 19.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.457e-05/12.66, allocations: 2.969 kB / 3.799 GB, free: 19.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.0169/12.68, allocations: 3.029 MB / 3.802 GB, free: 19.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000494/12.68, allocations: 476.2 kB / 3.803 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/12.68, allocations: 10.19 kB / 3.803 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006669/12.68, allocations: 0.5382 MB / 3.803 GB, free: 18.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005615/12.69, allocations: 452.1 kB / 3.804 GB, free: 18.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004243/12.69, allocations: 2.7 MB / 3.806 GB, free: 16.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004882/12.7, allocations: 272.1 kB / 3.807 GB, free: 16.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004613/12.7, allocations: 98.61 kB / 3.807 GB, free: 16.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/12.7, allocations: 2.156 kB / 3.807 GB, free: 16.74 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008636/12.71, allocations: 2.777 MB / 3.809 GB, free: 16.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.684e-05/12.71, allocations: 10.03 kB / 3.809 GB, free: 16.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/12.71, allocations: 214.5 kB / 3.81 GB, free: 16.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/12.71, allocations: 461.3 kB / 3.81 GB, free: 16.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/12.71, allocations: 1.88 MB / 3.812 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003287/12.72, allocations: 258.6 kB / 3.812 GB, free: 15.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003224/12.72, allocations: 97.34 kB / 3.812 GB, free: 15.01 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.002089/12.72, allocations: 0.7102 MB / 3.813 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006071/12.72, allocations: 191.8 kB / 3.813 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/12.74, allocations: 7.451 MB / 3.82 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.078e-05/12.74, allocations: 80.38 kB / 3.82 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/12.74, allocations: 0 / 3.82 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01293/12.75, allocations: 6.531 MB / 3.827 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02496/12.77, allocations: 11.21 MB / 3.838 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.148e-05/12.77, allocations: 10.94 kB / 3.838 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/12.78, allocations: 354.3 kB / 3.838 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004227/12.78, allocations: 1.182 MB / 3.839 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004519/12.78, allocations: 70.2 kB / 3.839 GB, free: 10.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003503/12.79, allocations: 3.192 MB / 3.842 GB, free: 7.711 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/12.79, allocations: 5.531 kB / 3.842 GB, free: 7.711 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01511/12.8, allocations: 7.165 MB / 3.849 GB, free: 4.438 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002123/12.8, allocations: 0.7056 MB / 3.85 GB, free: 3.996 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007394/12.8, allocations: 49.45 kB / 3.85 GB, free: 3.969 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002805/12.81, allocations: 193.9 kB / 3.85 GB, free: 3.922 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/12.81, allocations: 147.8 kB / 3.85 GB, free: 3.895 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002341/12.81, allocations: 73.8 kB / 3.851 GB, free: 3.879 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002413/12.81, allocations: 1.087 MB / 3.852 GB, free: 3.457 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.513e-06/12.81, allocations: 0 / 3.852 GB, free: 3.457 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01198/12.82, allocations: 2.572 MB / 3.854 GB, free: 2.945 MB / 490.7 MB 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.01493/12.84, allocations: 2.754 MB / 3.857 GB, free: 1.387 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01406/12.85, allocations: 4.75 MB / 3.861 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/12.85, allocations: 0 / 3.861 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006254/12.86, allocations: 2.453 MB / 3.864 GB, free: 11 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0083/12.87, allocations: 0.9123 MB / 3.865 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7455/13.61, allocations: 128 MB / 3.99 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00288/13.61, allocations: 2.143 MB / 3.992 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/13.62, allocations: 185.9 kB / 3.992 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/13.62, allocations: 0 / 3.992 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of Templates: time 0.6282/14.24, allocations: 110.2 MB / 4.1 GB, free: 51.75 MB / 0.4948 GB