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.SeriesPipes2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.549/2.549, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.187e-05/2.192e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3708, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.111/8.481, allocations: 2.655 GB / 3.005 GB, free: 97.23 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/8.482, allocations: 75.14 kB / 3.005 GB, free: 97.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.468/11.95, allocations: 0.5682 GB / 3.573 GB, free: 37.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.356e-06/11.95, allocations: 0 / 3.573 GB, free: 37.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002713/11.95, allocations: 46.33 kB / 3.573 GB, free: 37.23 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01337/11.96, allocations: 2.851 MB / 3.576 GB, free: 35.75 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/11.96, allocations: 9.75 kB / 3.576 GB, free: 35.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005974/11.97, allocations: 0.5388 MB / 3.576 GB, free: 35.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00613/11.98, allocations: 1.442 MB / 3.578 GB, free: 35.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/11.98, allocations: 57.56 kB / 3.578 GB, free: 35.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006752/11.98, allocations: 72.62 kB / 3.578 GB, free: 35.29 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004697/11.98, allocations: 1.557 MB / 3.579 GB, free: 35.28 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005977/11.99, allocations: 1.773 MB / 3.581 GB, free: 34.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.741e-05/11.99, allocations: 3.938 kB / 3.581 GB, free: 34.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/11.99, allocations: 5.344 kB / 3.581 GB, free: 34.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/11.99, allocations: 98.02 kB / 3.581 GB, free: 34.87 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.3125/12.3, allocations: 73.37 MB / 3.653 GB, free: 19.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003665/12.3, allocations: 0.9231 MB / 3.654 GB, free: 18.42 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002035/12.31, allocations: 0.5511 MB / 3.654 GB, free: 17.93 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06967/12.38, allocations: 17.44 MB / 3.671 GB, free: 0.6172 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001924/12.38, allocations: 0.7107 MB / 3.672 GB, free: 4 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=88): time 4.508e-06/12.38, allocations: 0 / 3.672 GB, free: 4 kB / 0.5105 GB Notification: Performance of matching and sorting (n=96): time 0.4208/12.8, allocations: 4.662 MB / 3.676 GB, free: 70.35 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/12.8, allocations: 380.4 kB / 3.677 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/12.8, allocations: 0.7948 MB / 3.678 GB, free: 69.76 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003512/12.8, allocations: 29.23 kB / 3.678 GB, free: 69.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007219/12.8, allocations: 0.6914 MB / 3.678 GB, free: 69.41 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005385/12.8, allocations: 327.7 kB / 3.679 GB, free: 69.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/12.8, allocations: 0 / 3.679 GB, free: 69.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001197/12.8, allocations: 359 kB / 3.679 GB, free: 68.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/12.8, allocations: 0.5961 MB / 3.679 GB, free: 68.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/12.81, allocations: 0.9116 MB / 3.68 GB, free: 68.58 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/12.82, allocations: 1.76 MB / 3.682 GB, free: 68.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.026e-05/12.82, allocations: 3.719 kB / 3.682 GB, free: 68.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.01682/12.84, allocations: 2.706 MB / 3.685 GB, free: 68.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008153/12.84, allocations: 3.254 MB / 3.688 GB, free: 65.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.238e-05/12.84, allocations: 13.84 kB / 3.688 GB, free: 65.09 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006155/12.84, allocations: 123.8 kB / 3.688 GB, free: 65.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/12.84, allocations: 324.5 kB / 3.688 GB, free: 65.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/12.84, allocations: 1.265 MB / 3.69 GB, free: 64.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002932/12.84, allocations: 169.7 kB / 3.69 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003963/12.84, allocations: 66.2 kB / 3.69 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/12.84, allocations: 3.594 kB / 3.69 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01508/12.86, allocations: 2.51 MB / 3.692 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.206e-05/12.86, allocations: 9.969 kB / 3.692 GB, free: 63.98 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004707/12.86, allocations: 130.2 kB / 3.692 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/12.86, allocations: 324.3 kB / 3.693 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/12.86, allocations: 1.261 MB / 3.694 GB, free: 62.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/12.87, allocations: 144.3 kB / 3.694 GB, free: 62.92 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/12.87, allocations: 68.5 kB / 3.694 GB, free: 62.92 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005947/12.87, allocations: 175.8 kB / 3.694 GB, free: 62.78 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005394/12.87, allocations: 1.425 MB / 3.696 GB, free: 62.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000554/12.87, allocations: 131.2 kB / 3.696 GB, free: 62.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008252/12.88, allocations: 3.754 MB / 3.7 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.013e-05/12.88, allocations: 43.38 kB / 3.7 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/12.88, allocations: 0 / 3.7 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006173/12.89, allocations: 2.97 MB / 3.702 GB, free: 61.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01197/12.9, allocations: 5.232 MB / 3.708 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/12.9, allocations: 10.19 kB / 3.708 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001877/12.9, allocations: 200.3 kB / 3.708 GB, free: 61.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007798/12.9, allocations: 166.9 kB / 3.708 GB, free: 61.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002682/12.9, allocations: 24.16 kB / 3.708 GB, free: 61.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/12.9, allocations: 1.348 MB / 3.709 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/12.9, allocations: 11.92 kB / 3.709 GB, free: 60.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008354/12.91, allocations: 3.621 MB / 3.713 GB, free: 59.92 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/12.91, allocations: 491.8 kB / 3.713 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006417/12.92, allocations: 13.16 kB / 3.713 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/12.92, allocations: 96.86 kB / 3.713 GB, free: 59.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003943/12.92, allocations: 81.56 kB / 3.713 GB, free: 59.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/12.92, allocations: 40.47 kB / 3.713 GB, free: 59.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001818/12.92, allocations: 0.797 MB / 3.714 GB, free: 59.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.563e-06/12.92, allocations: 0 / 3.714 GB, free: 59.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01091/12.93, allocations: 2.108 MB / 3.716 GB, free: 59.49 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 26 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02272/12.95, allocations: 6.817 MB / 3.723 GB, free: 58.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007614/12.96, allocations: 2.814 MB / 3.726 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/12.96, allocations: 0 / 3.726 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002588/12.96, allocations: 1.207 MB / 3.727 GB, free: 57.77 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00498/12.97, allocations: 0.5092 MB / 3.727 GB, free: 57.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/12.99, allocations: 4.4 MB / 3.732 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005266/13, allocations: 1.617 MB / 3.733 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002006/13, allocations: 0.7585 MB / 3.734 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of SimCode: time 1.402e-06/13, allocations: 5.562 kB / 3.734 GB, free: 56.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.033/18.03, allocations: 74.78 MB / 3.807 GB, free: 48.55 MB / 0.5105 GB