Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.311/2.311, allocations: 270 MB / 282.7 MB, free: 1.797 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.507e-05, allocations: 3.984 kB / 347 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3245, allocations: 61.88 MB / 408.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.867/7.192, allocations: 2.832 GB / 3.232 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/7.192, allocations: 79.05 kB / 3.232 GB, free: 162.4 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 3.736/10.93, allocations: 0.8118 GB / 4.043 GB, free: 44.54 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.137e-06/10.93, allocations: 0 / 4.043 GB, free: 44.54 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002408/10.93, allocations: 70.23 kB / 4.044 GB, free: 44.53 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01425/10.94, allocations: 3.849 MB / 4.047 GB, free: 42.73 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/10.94, allocations: 15.84 kB / 4.047 GB, free: 42.73 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008144/10.95, allocations: 0.8454 MB / 4.048 GB, free: 42.6 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00667/10.96, allocations: 2.085 MB / 4.05 GB, free: 42.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/10.96, allocations: 181 kB / 4.05 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006259/10.96, allocations: 196.3 kB / 4.051 GB, free: 42.13 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/10.97, allocations: 3.553 MB / 4.054 GB, free: 41.59 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.051e-05/10.97, allocations: 11.55 kB / 4.054 GB, free: 41.59 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003538/10.97, allocations: 91.88 kB / 4.054 GB, free: 41.59 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/10.97, allocations: 163.8 kB / 4.054 GB, free: 41.58 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009763/10.98, allocations: 3.135 MB / 4.057 GB, free: 41.57 MB / 0.5573 GB 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.02397/11, allocations: 15.2 MB / 4.072 GB, free: 32.55 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006442/11.01, allocations: 2.229 MB / 4.074 GB, free: 32.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00201/11.01, allocations: 1.063 MB / 4.075 GB, free: 32.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05707/11.07, allocations: 24.54 MB / 4.099 GB, free: 17.57 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005917/11.08, allocations: 1.666 MB / 4.101 GB, free: 17.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=155): time 6.399e-06/11.08, allocations: 2.25 kB / 4.101 GB, free: 17.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=171): time 0.02359/11.1, allocations: 7.04 MB / 4.108 GB, free: 16.55 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/11.1, allocations: 279.3 kB / 4.108 GB, free: 16.23 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00278/11.1, allocations: 1.449 MB / 4.11 GB, free: 16.05 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004314/11.1, allocations: 56.3 kB / 4.11 GB, free: 16.02 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007446/11.1, allocations: 0.9005 MB / 4.11 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006173/11.1, allocations: 0.584 MB / 4.111 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/11.1, allocations: 39.56 kB / 4.111 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001465/11.1, allocations: 392.1 kB / 4.111 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/11.11, allocations: 1.054 MB / 4.112 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/11.11, allocations: 1.501 MB / 4.114 GB, free: 14.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002918/11.11, allocations: 1.273 MB / 4.115 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-05/11.11, allocations: 2.375 kB / 4.115 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008283/11.12, allocations: 3.536 MB / 4.119 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002653/11.12, allocations: 4.651 MB / 4.123 GB, free: 25.33 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-05/11.12, allocations: 17.39 kB / 4.123 GB, free: 25.33 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02155/11.14, allocations: 3.014 MB / 4.126 GB, free: 25.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/11.15, allocations: 312 kB / 4.126 GB, free: 25.31 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006288/11.15, allocations: 3.307 MB / 4.13 GB, free: 24.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003089/11.16, allocations: 266 kB / 4.13 GB, free: 24.73 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/11.16, allocations: 95.88 kB / 4.13 GB, free: 24.73 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/11.16, allocations: 3.344 kB / 4.13 GB, free: 24.73 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007595/11.16, allocations: 3.244 MB / 4.133 GB, free: 24.64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.023e-05/11.16, allocations: 13.91 kB / 4.133 GB, free: 24.64 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007142/11.17, allocations: 1.586 MB / 4.135 GB, free: 24.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/11.17, allocations: 347.5 kB / 4.135 GB, free: 24.61 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004445/11.18, allocations: 2.561 MB / 4.138 GB, free: 24.05 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/11.18, allocations: 252.5 kB / 4.138 GB, free: 24.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/11.18, allocations: 107.4 kB / 4.138 GB, free: 24.04 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 153 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.0007087/11.18, allocations: 254.2 kB / 4.138 GB, free: 23.89 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005626/11.18, allocations: 209.7 kB / 4.138 GB, free: 23.79 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01257/11.19, allocations: 7.742 MB / 4.146 GB, free: 22.99 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.538e-05/11.19, allocations: 89.39 kB / 4.146 GB, free: 22.99 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/11.19, allocations: 9.75 kB / 4.146 GB, free: 22.99 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01003/11.2, allocations: 6.645 MB / 4.152 GB, free: 22.12 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01827/11.22, allocations: 10.93 MB / 4.163 GB, free: 21.37 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/11.22, allocations: 0 / 4.163 GB, free: 21.37 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002617/11.23, allocations: 410.4 kB / 4.164 GB, free: 21.37 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/11.23, allocations: 357 kB / 4.164 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003761/11.23, allocations: 63.25 kB / 4.164 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/11.23, allocations: 2.57 MB / 4.166 GB, free: 19.25 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.726e-06/11.23, allocations: 3.953 kB / 4.166 GB, free: 19.25 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01142/11.24, allocations: 6.975 MB / 4.173 GB, free: 16.26 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/11.24, allocations: 0.7773 MB / 4.174 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005807/11.24, allocations: 57.06 kB / 4.174 GB, free: 15.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/11.25, allocations: 197.9 kB / 4.174 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003862/11.25, allocations: 148.6 kB / 4.174 GB, free: 15.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002331/11.25, allocations: 71.61 kB / 4.174 GB, free: 15.68 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002447/11.25, allocations: 1.288 MB / 4.176 GB, free: 15.16 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.252e-06/11.25, allocations: 0 / 4.176 GB, free: 15.16 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01022/11.26, allocations: 2.794 MB / 4.178 GB, free: 14.57 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse27.region3boundary,$cse28.region3boundary,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse39.region3boundary,$cse40.region3boundary,$cse41.phase,$cse41.region,$cse43.phase,$cse43.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (198): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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.01184/11.27, allocations: 2.861 MB / 4.181 GB, free: 13.88 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01019/11.28, allocations: 4.989 MB / 4.186 GB, free: 12.01 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.211e-06/11.28, allocations: 1.344 kB / 4.186 GB, free: 12.01 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004349/11.29, allocations: 2.365 MB / 4.188 GB, free: 10.98 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006219/11.29, allocations: 0.9232 MB / 4.189 GB, free: 10.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/11.31, allocations: 6.273 MB / 4.195 GB, free: 5.312 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002674/11.31, allocations: 2.263 MB / 4.198 GB, free: 3.547 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/11.31, allocations: 189.1 kB / 4.198 GB, free: 3.375 MB / 0.573 GB Notification: Performance of SimCode: time 1.76e-06/11.31, allocations: 0 / 4.198 GB, free: 3.375 MB / 0.573 GB Notification: Performance of Templates: time 0.5399/11.85, allocations: 99.57 MB / 4.295 GB, free: 68.44 MB / 0.5886 GB