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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.004/2.004, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.659e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.38, allocations: 48.71 MB / 324.9 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04498/0.425, allocations: 22.78 MB / 347.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.446, allocations: 10.57 MB / 358.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006212/0.4467, allocations: 15.44 kB / 358.2 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008049/0.4475, allocations: 183.7 kB / 358.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.459, allocations: 2.516 MB / 360.9 MB, free: 9.074 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007427/0.4664, allocations: 1.639 MB / 362.6 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001283/0.4677, allocations: 430.1 kB / 363 MB, free: 7.402 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004267/0.4682, allocations: 159.9 kB / 363.1 MB, free: 7.301 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.4694, allocations: 360.9 kB / 363.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004138/0.4699, allocations: 181.9 kB / 363.7 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01954/0.4894, allocations: 6.434 MB / 370.1 MB, free: 2.289 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003/0.4925, allocations: 391.9 kB / 370.5 MB, free: 1.906 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002619/0.4928, allocations: 83.72 kB / 370.6 MB, free: 1.824 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003185/0.4931, allocations: 48 kB / 370.6 MB, free: 1.777 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008568/0.5017, allocations: 2.708 MB / 373.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5018, allocations: 4 kB / 373.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.5018, allocations: 0 / 373.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.5018, allocations: 0 / 373.3 MB, free: 15.06 MB / 314.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.00437/0.5062, allocations: 1.123 MB / 374.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5063, allocations: 8.031 kB / 374.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002478/0.5088, allocations: 207.2 kB / 374.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008512/0.5096, allocations: 370.1 kB / 375 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.5097, allocations: 32.61 kB / 375 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.517e-05/0.5098, allocations: 28 kB / 375.1 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002511/0.5123, allocations: 0.6096 MB / 375.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.5124, allocations: 4 kB / 375.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.744e-05/0.5125, allocations: 15.98 kB / 375.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.5125, allocations: 11.94 kB / 375.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/0.5154, allocations: 0.5797 MB / 376.3 MB, free: 11.96 MB / 314.7 MB 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.00442/0.5199, allocations: 2.566 MB / 378.9 MB, free: 9.156 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.5225, allocations: 498.1 kB / 379.3 MB, free: 8.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1984/0.7209, allocations: 51.95 MB / 431.3 MB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/0.721, allocations: 34.56 kB / 431.3 MB, free: 15.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.404e-06/0.721, allocations: 0 / 431.3 MB, free: 15.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004624/0.7257, allocations: 0.8676 MB / 432.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/0.7258, allocations: 106.8 kB / 432.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004103/0.7262, allocations: 247.6 kB / 432.6 MB, free: 13.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.7263, allocations: 33.7 kB / 432.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.7265, allocations: 270.3 kB / 432.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.7266, allocations: 86.83 kB / 432.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.7266, allocations: 4 kB / 432.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.7268, allocations: 330.8 kB / 433.3 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007669/0.7276, allocations: 168.5 kB / 433.4 MB, free: 13.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008622/0.7284, allocations: 288.5 kB / 433.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008236/0.7293, allocations: 187.9 kB / 433.9 MB, free: 12.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.7293, allocations: 4 kB / 433.9 MB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001903/0.7312, allocations: 485.7 kB / 434.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.7313, allocations: 4 kB / 434.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.7313, allocations: 7.938 kB / 434.4 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.7313, allocations: 8 kB / 434.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/0.7321, allocations: 108.3 kB / 434.5 MB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.7321, allocations: 11.94 kB / 434.5 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000599/0.7327, allocations: 67.64 kB / 434.6 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-05/0.7328, allocations: 20 kB / 434.6 MB, free: 11.82 MB / 378.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.0002858/0.7331, allocations: 161.7 kB / 434.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.7332, allocations: 31.62 kB / 434.8 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004284/0.7375, allocations: 1.951 MB / 436.7 MB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.935e-05/0.7376, allocations: 31.94 kB / 436.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.7376, allocations: 0 / 436.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.7376, allocations: 4 kB / 436.8 MB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.7392, allocations: 0.9959 MB / 437.8 MB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.7393, allocations: 8 kB / 437.8 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006484/0.7399, allocations: 79.92 kB / 437.8 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.74, allocations: 4 kB / 437.9 MB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.74, allocations: 12 kB / 437.9 MB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.74, allocations: 4 kB / 437.9 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.74, allocations: 3.938 kB / 437.9 MB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.7426, allocations: 1.124 MB / 439 MB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.7429, allocations: 207.6 kB / 439.2 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.743, allocations: 8 kB / 439.2 MB, free: 7.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.7435, allocations: 51.86 kB / 439.3 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.7437, allocations: 27.95 kB / 439.3 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.7437, allocations: 15.94 kB / 439.3 MB, free: 7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000422/0.7442, allocations: 259.1 kB / 439.6 MB, free: 6.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7442, allocations: 0 / 439.6 MB, free: 6.746 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003281/0.7475, allocations: 0.933 MB / 440.5 MB, free: 5.812 MB / 378.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,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.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.005744/0.7532, allocations: 1.158 MB / 441.6 MB, free: 4.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002179/0.7554, allocations: 0.6539 MB / 442.3 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.7555, allocations: 0 / 442.3 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.7567, allocations: 0.5322 MB / 442.8 MB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.7584, allocations: 184.7 kB / 443 MB, free: 3.285 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.7622, allocations: 2.018 MB / 445 MB, free: 1.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006558/0.7629, allocations: 0.9758 MB / 446 MB, free: 240 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001993/0.7631, allocations: 39.44 kB / 446 MB, free: 200 kB / 378.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7631, allocations: 0 / 446 MB, free: 200 kB / 378.7 MB Notification: Performance of Templates: time 0.05913/0.8222, allocations: 25.31 MB / 471.4 MB, free: 6.871 MB / 410.7 MB