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.BranchingPipes14.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.981/1.981, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006078/0.0006079, allocations: 12 kB / 282.7 MB, free: 9.559 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1057, allocations: 48.7 MB / 331.4 MB, free: 8.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.079/8.184, allocations: 2.566 GB / 2.89 GB, free: 23.94 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/8.185, allocations: 76.47 kB / 2.89 GB, free: 23.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069/13.25, allocations: 0.8821 GB / 3.772 GB, free: 16.06 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.578e-06/13.25, allocations: 0 / 3.772 GB, free: 16.06 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003698/13.25, allocations: 63.92 kB / 3.772 GB, free: 16 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.02213/13.28, allocations: 4.113 MB / 3.776 GB, free: 11.81 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/13.28, allocations: 16.03 kB / 3.776 GB, free: 11.8 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001848/13.28, allocations: 308.1 kB / 3.777 GB, free: 11.48 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/13.29, allocations: 0.8419 MB / 3.777 GB, free: 10.64 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/13.3, allocations: 2.104 MB / 3.779 GB, free: 8.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004427/13.3, allocations: 183.8 kB / 3.78 GB, free: 8.301 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/13.3, allocations: 208.3 kB / 3.78 GB, free: 8.098 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0159/13.32, allocations: 3.643 MB / 3.783 GB, free: 4.254 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001109/13.32, allocations: 7.938 kB / 3.783 GB, free: 4.246 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007946/13.32, allocations: 87.97 kB / 3.783 GB, free: 4.16 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003888/13.32, allocations: 167.6 kB / 3.784 GB, free: 3.996 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/13.33, allocations: 3.336 MB / 3.787 GB, free: 0.6562 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.4349/13.77, allocations: 15.42 MB / 3.802 GB, free: 17.12 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/13.78, allocations: 2.783 MB / 3.805 GB, free: 16.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0622/13.84, allocations: 18.69 MB / 3.823 GB, free: 20.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007446/13.85, allocations: 1.699 MB / 3.825 GB, free: 20.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.432e-06/13.85, allocations: 0 / 3.825 GB, free: 20.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.04338/13.89, allocations: 9.171 MB / 3.833 GB, free: 19.51 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/13.89, allocations: 256.6 kB / 3.834 GB, free: 19.23 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003146/13.9, allocations: 1.357 MB / 3.835 GB, free: 19.06 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007422/13.9, allocations: 60.98 kB / 3.835 GB, free: 19.03 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/13.9, allocations: 0.921 MB / 3.836 GB, free: 18.66 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/13.9, allocations: 0.6169 MB / 3.837 GB, free: 18.35 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/13.9, allocations: 46.27 kB / 3.837 GB, free: 18.35 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/13.9, allocations: 399.8 kB / 3.837 GB, free: 18.03 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003723/13.9, allocations: 1.122 MB / 3.838 GB, free: 18.02 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/13.91, allocations: 1.619 MB / 3.84 GB, free: 17.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004404/13.91, allocations: 1.379 MB / 3.841 GB, free: 17.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.303e-05/13.91, allocations: 3.938 kB / 3.841 GB, free: 17.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01149/13.92, allocations: 3.211 MB / 3.844 GB, free: 17.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001971/13.93, allocations: 4.862 MB / 3.849 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.603e-05/13.93, allocations: 16.88 kB / 3.849 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/13.93, allocations: 248.2 kB / 3.849 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004484/13.93, allocations: 0.5273 MB / 3.85 GB, free: 12.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/13.94, allocations: 2.433 MB / 3.852 GB, free: 26.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/13.94, allocations: 307 kB / 3.852 GB, free: 26.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000796/13.94, allocations: 107 kB / 3.853 GB, free: 26.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/13.94, allocations: 3.531 kB / 3.853 GB, free: 26.06 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01063/13.95, allocations: 3.062 MB / 3.855 GB, free: 25.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.962e-05/13.95, allocations: 12.56 kB / 3.856 GB, free: 25.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/13.95, allocations: 253.7 kB / 3.856 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/13.96, allocations: 0.5162 MB / 3.856 GB, free: 25.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00253/13.96, allocations: 2.438 MB / 3.859 GB, free: 23.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/13.96, allocations: 304 kB / 3.859 GB, free: 23.81 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005888/13.97, allocations: 103.6 kB / 3.859 GB, free: 23.81 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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.002647/13.97, allocations: 0.7668 MB / 3.86 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007556/13.97, allocations: 205.8 kB / 3.86 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01817/13.99, allocations: 7.572 MB / 3.867 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001019/13.99, allocations: 85.3 kB / 3.867 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/13.99, allocations: 2.219 kB / 3.867 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01442/14, allocations: 6.583 MB / 3.874 GB, free: 21.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03023/14.03, allocations: 12.18 MB / 3.886 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.033e-05/14.03, allocations: 7.531 kB / 3.886 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003415/14.04, allocations: 432.5 kB / 3.886 GB, free: 20.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/14.04, allocations: 363.4 kB / 3.887 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006336/14.04, allocations: 73.2 kB / 3.887 GB, free: 20.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002249/14.04, allocations: 2.533 MB / 3.889 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.17e-05/14.04, allocations: 11.67 kB / 3.889 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/14.06, allocations: 7.762 MB / 3.897 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00275/14.06, allocations: 0.746 MB / 3.897 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009992/14.06, allocations: 56.42 kB / 3.897 GB, free: 16.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003711/14.07, allocations: 231.7 kB / 3.898 GB, free: 16.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008086/14.07, allocations: 171.8 kB / 3.898 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/14.07, allocations: 85.61 kB / 3.898 GB, free: 16.45 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002779/14.07, allocations: 1.138 MB / 3.899 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.042e-06/14.07, allocations: 0 / 3.899 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01418/14.08, allocations: 2.717 MB / 3.902 GB, free: 16.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.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,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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 Backend phase and start with SimCode phase: time 0.03531/14.12, allocations: 12.4 MB / 3.914 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01616/14.14, allocations: 5.253 MB / 3.919 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/14.14, allocations: 3.312 kB / 3.919 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006877/14.14, allocations: 2.695 MB / 3.922 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009004/14.15, allocations: 0.9827 MB / 3.923 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8436/15, allocations: 141.3 MB / 4.06 GB, free: 38.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/15, allocations: 2.247 MB / 4.063 GB, free: 37.31 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00323/15, allocations: 1.332 MB / 4.064 GB, free: 37.31 MB / 0.4948 GB Notification: Performance of SimCode: time 2.074e-06/15, allocations: 0 / 4.064 GB, free: 37.31 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.9/20.9, allocations: 128.2 MB / 4.189 GB, free: 69.13 MB / 0.5105 GB