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.449/2.449, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.047e-05/4.049e-05, allocations: 8 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3887/0.3888, allocations: 54.86 MB / 362.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear): time 0.04119/0.43, allocations: 22.92 MB / 385.8 MB, free: 6.918 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02111/0.4512, allocations: 10.67 MB / 396.4 MB, free: 12.23 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005646/0.4518, allocations: 15.88 kB / 396.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007639/0.4526, allocations: 183.1 kB / 396.6 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01024/0.4629, allocations: 2.52 MB / 399.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006814/0.4697, allocations: 1.678 MB / 400.8 MB, free: 7.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.4709, allocations: 448.3 kB / 401.3 MB, free: 7.383 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004139/0.4714, allocations: 163.9 kB / 401.4 MB, free: 7.223 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.4724, allocations: 358.9 kB / 401.8 MB, free: 6.871 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003652/0.4728, allocations: 183.4 kB / 402 MB, free: 6.691 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01934/0.4922, allocations: 6.548 MB / 408.5 MB, free: 140 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003041/0.4953, allocations: 400 kB / 408.9 MB, free: 15.74 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.4956, allocations: 67.7 kB / 409 MB, free: 15.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.4958, allocations: 51.88 kB / 409 MB, free: 15.63 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008409/0.5042, allocations: 2.76 MB / 411.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.5043, allocations: 0 / 411.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.5043, allocations: 0 / 411.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.5043, allocations: 0 / 411.8 MB, free: 12.86 MB / 346.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.004264/0.5086, allocations: 1.139 MB / 412.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.5087, allocations: 12.03 kB / 412.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002591/0.5113, allocations: 219.3 kB / 413.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008537/0.5122, allocations: 370 kB / 413.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.5122, allocations: 28.66 kB / 413.5 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.5123, allocations: 32 kB / 413.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002586/0.5149, allocations: 0.6096 MB / 414.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.515, allocations: 4 kB / 414.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.721e-05/0.5151, allocations: 15.98 kB / 414.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.701e-05/0.5151, allocations: 8 kB / 414.2 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002884/0.518, allocations: 0.5874 MB / 414.8 MB, free: 9.723 MB / 346.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.004167/0.5222, allocations: 2.57 MB / 417.4 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.5248, allocations: 490.1 kB / 417.8 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2226/0.7474, allocations: 52.02 MB / 469.9 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.7475, allocations: 38.56 kB / 469.9 MB, free: 12.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 3.156e-06/0.7475, allocations: 4 kB / 469.9 MB, free: 12.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.005116/0.7526, allocations: 0.8566 MB / 470.8 MB, free: 12.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.7527, allocations: 110.8 kB / 470.9 MB, free: 11.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004609/0.7532, allocations: 251.7 kB / 471.1 MB, free: 11.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.903e-05/0.7533, allocations: 33.7 kB / 471.1 MB, free: 11.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001985/0.7535, allocations: 266.2 kB / 471.4 MB, free: 11.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.7536, allocations: 86.83 kB / 471.5 MB, free: 11.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.7537, allocations: 4 kB / 471.5 MB, free: 11.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.7538, allocations: 326.8 kB / 471.8 MB, free: 10.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007794/0.7546, allocations: 168.5 kB / 472 MB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.7555, allocations: 280.6 kB / 472.2 MB, free: 10.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008685/0.7564, allocations: 192 kB / 472.4 MB, free: 10.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/0.7565, allocations: 4 kB / 472.4 MB, free: 10.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002954/0.7594, allocations: 489.1 kB / 472.9 MB, free: 9.758 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.7595, allocations: 13.36 kB / 472.9 MB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.7596, allocations: 0 / 472.9 MB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.73e-05/0.7596, allocations: 11.94 kB / 472.9 MB, free: 9.734 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.7607, allocations: 103.8 kB / 473 MB, free: 9.633 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.145e-05/0.7608, allocations: 16.14 kB / 473.1 MB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.7618, allocations: 59.66 kB / 473.1 MB, free: 9.559 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.762, allocations: 23.98 kB / 473.1 MB, free: 9.535 MB / 410.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.0004362/0.7625, allocations: 165.7 kB / 473.3 MB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.7626, allocations: 31.62 kB / 473.3 MB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006529/0.7692, allocations: 1.955 MB / 475.3 MB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-05/0.7693, allocations: 27.95 kB / 475.3 MB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.7694, allocations: 3.938 kB / 475.3 MB, free: 7.336 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.7694, allocations: 4 kB / 475.3 MB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.7719, allocations: 0.9957 MB / 476.3 MB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.772, allocations: 0 / 476.3 MB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.7732, allocations: 83.94 kB / 476.4 MB, free: 6.203 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.7732, allocations: 4 kB / 476.4 MB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-05/0.7733, allocations: 11.98 kB / 476.4 MB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-05/0.7734, allocations: 7.953 kB / 476.4 MB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.207e-06/0.7734, allocations: 0 / 476.4 MB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004133/0.7775, allocations: 1.116 MB / 477.5 MB, free: 5.043 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004712/0.7781, allocations: 211.6 kB / 477.7 MB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001932/0.7783, allocations: 8 kB / 477.8 MB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000933/0.7793, allocations: 47.88 kB / 477.8 MB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.7795, allocations: 31.91 kB / 477.8 MB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-05/0.7796, allocations: 15.98 kB / 477.8 MB, free: 4.715 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000688/0.7803, allocations: 267.1 kB / 478.1 MB, free: 4.449 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7803, allocations: 3.938 kB / 478.1 MB, free: 4.445 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005703/0.786, allocations: 0.9369 MB / 479 MB, free: 3.508 MB / 410.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.01108/0.7972, allocations: 1.171 MB / 480.2 MB, free: 2.336 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003247/0.8005, allocations: 0.646 MB / 480.9 MB, free: 1.691 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.8006, allocations: 0 / 480.9 MB, free: 1.691 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.8026, allocations: 0.5361 MB / 481.4 MB, free: 1.156 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/0.8055, allocations: 171.3 kB / 481.6 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006443/0.812, allocations: 2.008 MB / 483.6 MB, free: 14.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.8132, allocations: 0.9836 MB / 484.6 MB, free: 13.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003486/0.8136, allocations: 47.42 kB / 484.6 MB, free: 13.89 MB / 426.7 MB Notification: Performance of SimCode: time 2.645e-06/0.8136, allocations: 0 / 484.6 MB, free: 13.89 MB / 426.7 MB Notification: Performance of Templates: time 0.3984/1.212, allocations: 25.47 MB / 0.4981 GB, free: 121.5 MB / 426.7 MB