Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.157/2.157, allocations: 235 MB / 247.6 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.045e-05, allocations: 0 / 304.9 MB, free: 5.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3226, allocations: 54.86 MB / 359.8 MB, free: 2.586 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.903/6.226, allocations: 2.587 GB / 2.939 GB, free: 14.53 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/6.226, allocations: 84.95 kB / 2.939 GB, free: 14.49 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8804/7.107, allocations: 215.5 MB / 3.149 GB, free: 3.957 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.679e-06/7.107, allocations: 0 / 3.149 GB, free: 3.957 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.531e-05/7.107, allocations: 8 kB / 3.149 GB, free: 3.949 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004304/7.111, allocations: 1.176 MB / 3.15 GB, free: 2.727 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/7.111, allocations: 8.031 kB / 3.15 GB, free: 2.719 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002255/7.114, allocations: 223.3 kB / 3.151 GB, free: 2.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/7.114, allocations: 390.8 kB / 3.151 GB, free: 2.074 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.353e-05/7.114, allocations: 25.3 kB / 3.151 GB, free: 2.047 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/7.114, allocations: 28.34 kB / 3.151 GB, free: 2.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/7.116, allocations: 0.5793 MB / 3.152 GB, free: 1.398 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/7.116, allocations: 0 / 3.152 GB, free: 1.398 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.523e-05/7.116, allocations: 16 kB / 3.152 GB, free: 1.383 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/7.116, allocations: 11.94 kB / 3.152 GB, free: 1.371 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/7.118, allocations: 488.7 kB / 3.152 GB, free: 0.8945 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.272/7.389, allocations: 2.534 MB / 3.155 GB, free: 76.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/7.391, allocations: 409 kB / 3.155 GB, free: 76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/7.391, allocations: 129.6 kB / 3.155 GB, free: 75.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1325/7.524, allocations: 51.65 MB / 3.205 GB, free: 48.21 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/7.524, allocations: 34.72 kB / 3.206 GB, free: 48.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.012e-06/7.524, allocations: 0 / 3.206 GB, free: 48.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002376/7.526, allocations: 0.6114 MB / 3.206 GB, free: 48.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/7.526, allocations: 109.4 kB / 3.206 GB, free: 48.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/7.527, allocations: 254.2 kB / 3.206 GB, free: 47.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.341e-05/7.527, allocations: 32.42 kB / 3.206 GB, free: 47.87 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/7.527, allocations: 271.2 kB / 3.207 GB, free: 47.68 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.528e-05/7.527, allocations: 84.36 kB / 3.207 GB, free: 47.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/7.527, allocations: 13.41 kB / 3.207 GB, free: 47.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.9e-05/7.527, allocations: 321 kB / 3.207 GB, free: 47.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/7.527, allocations: 94.44 kB / 3.207 GB, free: 47.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/7.528, allocations: 213.5 kB / 3.207 GB, free: 47.18 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/7.528, allocations: 111.8 kB / 3.208 GB, free: 47.17 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.092e-06/7.528, allocations: 5.875 kB / 3.208 GB, free: 47.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006524/7.529, allocations: 325.5 kB / 3.208 GB, free: 47.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/7.529, allocations: 11.92 kB / 3.208 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.423e-06/7.529, allocations: 3.719 kB / 3.208 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/7.529, allocations: 7.031 kB / 3.208 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/7.529, allocations: 111.1 kB / 3.208 GB, free: 47.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/7.529, allocations: 6.031 kB / 3.208 GB, free: 47.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/7.53, allocations: 74.06 kB / 3.208 GB, free: 47.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/7.53, allocations: 19.33 kB / 3.208 GB, free: 47.11 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001039/7.53, allocations: 127.4 kB / 3.208 GB, free: 47.01 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-05/7.53, allocations: 29.91 kB / 3.208 GB, free: 46.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/7.532, allocations: 1.851 MB / 3.21 GB, free: 46.77 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/7.532, allocations: 32.98 kB / 3.21 GB, free: 46.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.519e-06/7.532, allocations: 0 / 3.21 GB, free: 46.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.052e-06/7.532, allocations: 0 / 3.21 GB, free: 46.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/7.533, allocations: 0.9813 MB / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/7.533, allocations: 0 / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/7.534, allocations: 91.62 kB / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.599e-06/7.534, allocations: 0 / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/7.534, allocations: 7.219 kB / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.046e-06/7.534, allocations: 6.766 kB / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.233e-06/7.534, allocations: 0 / 3.211 GB, free: 46.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/7.535, allocations: 0.9774 MB / 3.212 GB, free: 46.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/7.535, allocations: 208 kB / 3.212 GB, free: 46.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/7.535, allocations: 14.86 kB / 3.212 GB, free: 46.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/7.536, allocations: 50.97 kB / 3.212 GB, free: 46.17 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.045e-05/7.536, allocations: 36.77 kB / 3.212 GB, free: 46.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/7.536, allocations: 9.656 kB / 3.212 GB, free: 46.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003021/7.536, allocations: 258.3 kB / 3.213 GB, free: 46.08 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.22e-07/7.536, allocations: 0 / 3.213 GB, free: 46.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003986/7.54, allocations: 1.004 MB / 3.214 GB, free: 46.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005586/7.546, allocations: 1.374 MB / 3.215 GB, free: 45.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0008424/7.547, allocations: 0.4941 MB / 3.215 GB, free: 45.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.981e-06/7.547, allocations: 0.9375 kB / 3.215 GB, free: 45.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005178/7.547, allocations: 471.9 kB / 3.216 GB, free: 45.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/7.549, allocations: 182.2 kB / 3.216 GB, free: 45.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2128/7.761, allocations: 76.3 MB / 3.291 GB, free: 35.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008773/7.762, allocations: 0.9779 MB / 3.292 GB, free: 34.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003255/7.763, allocations: 43 kB / 3.292 GB, free: 34.18 MB / 490.7 MB Notification: Performance of SimCode: time 2.814e-06/7.763, allocations: 0 / 3.292 GB, free: 34.18 MB / 490.7 MB Notification: Performance of Templates: time 0.05154/7.814, allocations: 26.17 MB / 3.317 GB, free: 17.46 MB / 490.7 MB