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.BranchingPipes14.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004394/0.0004395, allocations: 11.98 kB / 314.5 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4122, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.966/8.378, allocations: 2.677 GB / 3.038 GB, free: 12.41 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/8.379, allocations: 80.84 kB / 3.038 GB, free: 12.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92/13.3, allocations: 0.9046 GB / 3.942 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.885e-06/13.3, allocations: 0 / 3.942 GB, free: 36.93 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002888/13.3, allocations: 60.44 kB / 3.942 GB, free: 36.92 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01959/13.32, allocations: 4.243 MB / 3.947 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/13.32, allocations: 14.22 kB / 3.947 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001525/13.32, allocations: 302.3 kB / 3.947 GB, free: 34.82 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008945/13.33, allocations: 0.88 MB / 3.948 GB, free: 34.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007886/13.34, allocations: 2.117 MB / 3.95 GB, free: 34.17 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/13.34, allocations: 181.8 kB / 3.95 GB, free: 34.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000556/13.34, allocations: 204.9 kB / 3.95 GB, free: 34.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/13.35, allocations: 3.653 MB / 3.954 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.589e-05/13.35, allocations: 7.312 kB / 3.954 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003808/13.35, allocations: 89.31 kB / 3.954 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002893/13.35, allocations: 176.4 kB / 3.954 GB, free: 33.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/13.36, allocations: 3.338 MB / 3.957 GB, free: 33.18 MB / 0.5105 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.02444/13.39, allocations: 15.47 MB / 3.972 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008565/13.39, allocations: 2.783 MB / 3.975 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05224/13.45, allocations: 18.7 MB / 3.993 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006389/13.45, allocations: 1.715 MB / 3.995 GB, free: 6.973 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=173): time 4.999e-06/13.45, allocations: 0 / 3.995 GB, free: 6.973 MB / 0.5105 GB Notification: Performance of matching and sorting (n=189): time 0.0422/13.5, allocations: 9.276 MB / 4.004 GB, free: 15.79 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001841/13.5, allocations: 260.7 kB / 4.004 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/13.5, allocations: 1.358 MB / 4.006 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006872/13.5, allocations: 61.7 kB / 4.006 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001293/13.5, allocations: 0.917 MB / 4.007 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001171/13.5, allocations: 0.6279 MB / 4.007 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/13.5, allocations: 44 kB / 4.007 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002593/13.5, allocations: 399.3 kB / 4.008 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004296/13.51, allocations: 1.133 MB / 4.009 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006714/13.51, allocations: 1.631 MB / 4.01 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007135/13.52, allocations: 1.393 MB / 4.012 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/13.52, allocations: 4 kB / 4.012 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01179/13.53, allocations: 3.189 MB / 4.015 GB, free: 5.793 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002348/13.54, allocations: 4.859 MB / 4.02 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.996e-05/13.54, allocations: 15.94 kB / 4.02 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/13.54, allocations: 251.6 kB / 4.02 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4664/14, allocations: 0.5341 MB / 4.02 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/14.01, allocations: 2.436 MB / 4.023 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00505/14.01, allocations: 308.5 kB / 4.023 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007679/14.01, allocations: 106.1 kB / 4.023 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/14.01, allocations: 8.141 kB / 4.023 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01119/14.02, allocations: 3.042 MB / 4.026 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.083e-05/14.02, allocations: 12.19 kB / 4.026 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/14.02, allocations: 249.2 kB / 4.026 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0045/14.03, allocations: 0.5221 MB / 4.027 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/14.03, allocations: 2.437 MB / 4.029 GB, free: 47.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/14.04, allocations: 304 kB / 4.03 GB, free: 47.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000645/14.04, allocations: 109.5 kB / 4.03 GB, free: 47.81 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.00248/14.04, allocations: 0.7665 MB / 4.03 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007489/14.04, allocations: 209.6 kB / 4.031 GB, free: 47.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01838/14.06, allocations: 7.541 MB / 4.038 GB, free: 47.02 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-05/14.06, allocations: 91.14 kB / 4.038 GB, free: 47.02 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/14.06, allocations: 4.141 kB / 4.038 GB, free: 47.02 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01408/14.07, allocations: 6.569 MB / 4.044 GB, free: 46.12 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02904/14.1, allocations: 12.19 MB / 4.056 GB, free: 44.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.512e-05/14.1, allocations: 6.078 kB / 4.056 GB, free: 44.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003466/14.1, allocations: 433.9 kB / 4.057 GB, free: 44.67 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/14.11, allocations: 374.2 kB / 4.057 GB, free: 44.64 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006126/14.11, allocations: 71.83 kB / 4.057 GB, free: 44.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/14.11, allocations: 2.53 MB / 4.06 GB, free: 42.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/14.11, allocations: 11.47 kB / 4.06 GB, free: 42.57 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01734/14.13, allocations: 7.765 MB / 4.067 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002929/14.13, allocations: 0.7537 MB / 4.068 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001099/14.13, allocations: 65.27 kB / 4.068 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004639/14.14, allocations: 209.4 kB / 4.068 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008456/14.14, allocations: 183.5 kB / 4.068 GB, free: 40.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003834/14.14, allocations: 82.73 kB / 4.069 GB, free: 40.92 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003773/14.14, allocations: 1.14 MB / 4.07 GB, free: 40.78 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.81e-07/14.14, allocations: 3.875 kB / 4.07 GB, free: 40.78 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01799/14.16, allocations: 2.742 MB / 4.072 GB, free: 40.78 MB / 0.5261 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * 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 (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.04361/14.2, allocations: 12.45 MB / 4.084 GB, free: 37.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01684/14.22, allocations: 5.366 MB / 4.09 GB, free: 37.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/14.22, allocations: 0 / 4.09 GB, free: 37.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006661/14.23, allocations: 2.75 MB / 4.092 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008532/14.23, allocations: 0.9828 MB / 4.093 GB, free: 36.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9208/15.16, allocations: 141.4 MB / 4.231 GB, free: 55.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003802/15.16, allocations: 2.252 MB / 4.234 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003498/15.16, allocations: 1.345 MB / 4.235 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of SimCode: time 1.322e-06/15.16, allocations: 1.031 kB / 4.235 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.333/20.5, allocations: 128.8 MB / 4.361 GB, free: 34.54 MB / 0.5417 GB