Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.357/2.357, allocations: 270 MB / 283.6 MB, free: 1.801 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.401e-05/3.429e-05, allocations: 4 kB / 348.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3276, allocations: 61.89 MB / 410.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.921/7.249, allocations: 2.832 GB / 3.233 GB, free: 86.68 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/7.249, allocations: 83.45 kB / 3.233 GB, free: 86.64 MB / 0.5261 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/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.869/11.12, allocations: 0.8749 GB / 4.108 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.81e-06/11.12, allocations: 3.969 kB / 4.108 GB, free: 42.43 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002209/11.12, allocations: 64.41 kB / 4.108 GB, free: 42.41 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.01367/11.13, allocations: 3.858 MB / 4.112 GB, free: 40.3 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/11.13, allocations: 11.44 kB / 4.112 GB, free: 40.3 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009447/11.14, allocations: 0.8419 MB / 4.113 GB, free: 40.09 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006717/11.15, allocations: 2.077 MB / 4.115 GB, free: 39.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002631/11.15, allocations: 176.6 kB / 4.115 GB, free: 39.07 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006747/11.15, allocations: 210.2 kB / 4.115 GB, free: 39.01 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/11.16, allocations: 3.548 MB / 4.119 GB, free: 37.48 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-05/11.16, allocations: 15.38 kB / 4.119 GB, free: 37.47 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/11.16, allocations: 83.62 kB / 4.119 GB, free: 37.42 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002418/11.16, allocations: 159 kB / 4.119 GB, free: 37.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009582/11.17, allocations: 3.14 MB / 4.122 GB, free: 36.42 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.02446/11.19, allocations: 15.2 MB / 4.137 GB, free: 22.84 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006136/11.2, allocations: 2.233 MB / 4.139 GB, free: 20.96 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001966/11.2, allocations: 1.065 MB / 4.14 GB, free: 20 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05163/11.25, allocations: 24.54 MB / 4.164 GB, free: 11.34 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005907/11.26, allocations: 1.654 MB / 4.165 GB, free: 9.664 MB / 0.573 GB Notification: Performance of pre-optimization done (n=155): time 6.438e-06/11.26, allocations: 3.938 kB / 4.165 GB, free: 9.66 MB / 0.573 GB Notification: Performance of matching and sorting (n=171): time 0.02426/11.28, allocations: 7.039 MB / 4.172 GB, free: 2.551 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002002/11.28, allocations: 286.3 kB / 4.173 GB, free: 2.211 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/11.29, allocations: 1.452 MB / 4.174 GB, free: 0.7617 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004599/11.29, allocations: 61.64 kB / 4.174 GB, free: 0.6953 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.3844/11.67, allocations: 0.9507 MB / 4.175 GB, free: 59.61 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009773/11.67, allocations: 0.5851 MB / 4.176 GB, free: 59.48 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/11.67, allocations: 41.41 kB / 4.176 GB, free: 59.48 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001791/11.67, allocations: 388.3 kB / 4.176 GB, free: 59.17 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/11.68, allocations: 1.049 MB / 4.177 GB, free: 59.17 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002866/11.68, allocations: 1.499 MB / 4.178 GB, free: 58.68 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/11.68, allocations: 1.276 MB / 4.18 GB, free: 58.62 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/11.68, allocations: 3.781 kB / 4.18 GB, free: 58.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.008075/11.69, allocations: 3.641 MB / 4.183 GB, free: 58.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009749/11.69, allocations: 4.812 MB / 4.188 GB, free: 53.36 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.644e-05/11.69, allocations: 12.81 kB / 4.188 GB, free: 53.36 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02065/11.71, allocations: 3.027 MB / 4.191 GB, free: 53.34 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/11.71, allocations: 310.3 kB / 4.191 GB, free: 53.34 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005959/11.72, allocations: 3.298 MB / 4.194 GB, free: 52.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003458/11.72, allocations: 263.9 kB / 4.195 GB, free: 52.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003632/11.72, allocations: 97.8 kB / 4.195 GB, free: 52.77 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/11.72, allocations: 4.094 kB / 4.195 GB, free: 52.77 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007129/11.73, allocations: 3.243 MB / 4.198 GB, free: 52.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.687e-05/11.73, allocations: 16.19 kB / 4.198 GB, free: 52.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008281/11.74, allocations: 1.622 MB / 4.2 GB, free: 52.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/11.74, allocations: 352.3 kB / 4.2 GB, free: 52.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004272/11.75, allocations: 2.578 MB / 4.202 GB, free: 52.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004636/11.75, allocations: 261.7 kB / 4.203 GB, free: 52.09 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007451/11.75, allocations: 99.55 kB / 4.203 GB, free: 52.09 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.001032/11.75, allocations: 256.2 kB / 4.203 GB, free: 51.95 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008411/11.75, allocations: 211.3 kB / 4.203 GB, free: 51.84 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01968/11.77, allocations: 7.749 MB / 4.211 GB, free: 51.14 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001384/11.77, allocations: 92.83 kB / 4.211 GB, free: 51.14 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/11.77, allocations: 3.953 kB / 4.211 GB, free: 51.14 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01606/11.79, allocations: 6.639 MB / 4.217 GB, free: 50.29 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0218/11.81, allocations: 10.94 MB / 4.228 GB, free: 49.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/11.81, allocations: 0 / 4.228 GB, free: 49.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002495/11.81, allocations: 411.1 kB / 4.228 GB, free: 49.59 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001591/11.82, allocations: 351.7 kB / 4.229 GB, free: 49.55 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000328/11.82, allocations: 61.22 kB / 4.229 GB, free: 49.55 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001516/11.82, allocations: 2.574 MB / 4.231 GB, free: 47.48 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.211e-06/11.82, allocations: 0 / 4.231 GB, free: 47.48 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/11.83, allocations: 6.973 MB / 4.238 GB, free: 46.84 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001887/11.83, allocations: 0.7748 MB / 4.239 GB, free: 46.57 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005235/11.83, allocations: 53.91 kB / 4.239 GB, free: 46.57 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002356/11.83, allocations: 196.1 kB / 4.239 GB, free: 46.56 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/11.83, allocations: 152.2 kB / 4.239 GB, free: 46.56 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002319/11.83, allocations: 67.48 kB / 4.239 GB, free: 46.56 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002385/11.84, allocations: 1.298 MB / 4.241 GB, free: 46.4 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.031e-06/11.84, allocations: 0 / 4.241 GB, free: 46.4 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009432/11.85, allocations: 2.794 MB / 4.243 GB, free: 46.36 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.01124/11.86, allocations: 2.872 MB / 4.246 GB, free: 46.07 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009997/11.87, allocations: 5.051 MB / 4.251 GB, free: 45.76 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/11.87, allocations: 3.812 kB / 4.251 GB, free: 45.76 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004395/11.87, allocations: 2.361 MB / 4.253 GB, free: 45.69 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006021/11.88, allocations: 0.9265 MB / 4.254 GB, free: 45.67 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/11.89, allocations: 6.224 MB / 4.26 GB, free: 44.52 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/11.89, allocations: 2.31 MB / 4.263 GB, free: 43.75 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005496/11.9, allocations: 1.947 MB / 4.265 GB, free: 43.71 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006689/11.9, allocations: 154.9 kB / 4.265 GB, free: 43.71 MB / 0.573 GB Notification: Performance of SimCode: time 1.741e-06/11.9, allocations: 0 / 4.265 GB, free: 43.71 MB / 0.573 GB Notification: Performance of Templates: time 0.1996/12.1, allocations: 98.94 MB / 4.361 GB, free: 16.29 MB / 0.573 GB