Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 2.488/2.488, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.393e-05/5.391e-05, allocations: 8 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4347/0.4348, allocations: 54.85 MB / 362.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestDensity): time 0.09203/0.5269, allocations: 52.87 MB / 415.7 MB, free: 8.879 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04169/0.5686, allocations: 21.67 MB / 437.4 MB, free: 3.156 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.5701, allocations: 39.69 kB / 437.4 MB, free: 3.117 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001866/0.572, allocations: 437.8 kB / 437.9 MB, free: 2.688 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.5875, allocations: 3.645 MB / 441.5 MB, free: 15.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01156/0.5991, allocations: 2.683 MB / 444.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003074/0.6022, allocations: 1.037 MB / 445.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.6034, allocations: 464.7 kB / 445.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01681/0.6203, allocations: 6.366 MB / 452 MB, free: 4.473 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001524/0.6219, allocations: 474.6 kB / 452.5 MB, free: 4.008 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01951/0.6414, allocations: 6.267 MB / 458.8 MB, free: 13.73 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003062/0.6445, allocations: 388 kB / 459.2 MB, free: 13.36 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005282/0.6451, allocations: 175.4 kB / 459.3 MB, free: 13.18 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004852/0.6456, allocations: 108 kB / 459.4 MB, free: 13.08 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009449/0.6551, allocations: 3.177 MB / 462.6 MB, free: 9.895 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.6551, allocations: 0 / 462.6 MB, free: 9.895 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.6551, allocations: 3.938 kB / 462.6 MB, free: 9.891 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.116e-05/0.6552, allocations: 0 / 462.6 MB, free: 9.891 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.005877/0.6611, allocations: 1.545 MB / 464.2 MB, free: 8.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.6611, allocations: 11.97 kB / 464.2 MB, free: 8.281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007372/0.6685, allocations: 0.6116 MB / 464.8 MB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/0.6703, allocations: 0.6056 MB / 465.4 MB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.6704, allocations: 69.98 kB / 465.4 MB, free: 6.953 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.6706, allocations: 75.94 kB / 465.5 MB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005593/0.6762, allocations: 1.359 MB / 466.9 MB, free: 5.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.6763, allocations: 7.875 kB / 466.9 MB, free: 5.422 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001695/0.6765, allocations: 36 kB / 466.9 MB, free: 5.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.6765, allocations: 20 kB / 466.9 MB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006249/0.6828, allocations: 1.236 MB / 468.2 MB, free: 4.129 MB / 394.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.01066/0.6935, allocations: 5.494 MB / 473.7 MB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004793/0.6984, allocations: 0.8528 MB / 474.5 MB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6803/1.379, allocations: 92.56 MB / 0.5538 GB, free: 65.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/1.379, allocations: 42.56 kB / 0.5538 GB, free: 65.49 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008248/1.38, allocations: 91.17 kB / 0.5539 GB, free: 65.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 4.508e-06/1.38, allocations: 0 / 0.5539 GB, free: 65.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.008067/1.388, allocations: 1.591 MB / 0.5555 GB, free: 63.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.554e-05/1.388, allocations: 187.9 kB / 0.5557 GB, free: 63.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007442/1.389, allocations: 481.5 kB / 0.5561 GB, free: 63.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.032e-05/1.389, allocations: 37.7 kB / 0.5562 GB, free: 63.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/1.389, allocations: 469.2 kB / 0.5566 GB, free: 62.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/1.389, allocations: 202 kB / 0.5568 GB, free: 62.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/1.389, allocations: 16 kB / 0.5568 GB, free: 62.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.671e-05/1.389, allocations: 342.8 kB / 0.5571 GB, free: 62.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009744/1.39, allocations: 229.8 kB / 0.5574 GB, free: 61.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/1.392, allocations: 0.5358 MB / 0.5579 GB, free: 61.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/1.393, allocations: 304.2 kB / 0.5582 GB, free: 60.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/1.393, allocations: 0 / 0.5582 GB, free: 60.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002929/1.396, allocations: 0.8425 MB / 0.559 GB, free: 60.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008641/1.397, allocations: 3.839 MB / 0.5627 GB, free: 55.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/1.397, allocations: 8 kB / 0.5627 GB, free: 55.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006338/1.403, allocations: 430.1 kB / 0.5632 GB, free: 55.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/1.404, allocations: 195.7 kB / 0.5633 GB, free: 55.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/1.406, allocations: 1.144 MB / 0.5645 GB, free: 54.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/1.407, allocations: 51.97 kB / 0.5645 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/1.407, allocations: 56.03 kB / 0.5646 GB, free: 53.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/1.407, allocations: 4 kB / 0.5646 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002676/1.41, allocations: 0.7476 MB / 0.5653 GB, free: 53.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/1.41, allocations: 11.19 kB / 0.5653 GB, free: 53.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/1.41, allocations: 16 kB / 0.5653 GB, free: 53.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/1.411, allocations: 223.7 kB / 0.5655 GB, free: 52.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.47e-05/1.411, allocations: 19.94 kB / 0.5656 GB, free: 52.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009401/1.412, allocations: 63.86 kB / 0.5656 GB, free: 52.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.412, allocations: 51.98 kB / 0.5657 GB, free: 52.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005708/1.413, allocations: 237.4 kB / 0.5659 GB, free: 52.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/1.413, allocations: 71.16 kB / 0.566 GB, free: 52.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006427/1.42, allocations: 3.562 MB / 0.5694 GB, free: 48.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.09e-05/1.42, allocations: 47.48 kB / 0.5695 GB, free: 48.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.42, allocations: 3.953 kB / 0.5695 GB, free: 48.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/1.42, allocations: 7.984 kB / 0.5695 GB, free: 48.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/1.422, allocations: 1.698 MB / 0.5712 GB, free: 47.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.762e-05/1.423, allocations: 3.984 kB / 0.5712 GB, free: 47.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/1.424, allocations: 123.8 kB / 0.5713 GB, free: 47.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003274/1.427, allocations: 0.785 MB / 0.572 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/1.427, allocations: 23.98 kB / 0.5721 GB, free: 46.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/1.428, allocations: 1.532 MB / 0.5736 GB, free: 44.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.428, allocations: 0 / 0.5736 GB, free: 44.65 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/1.432, allocations: 2.065 MB / 0.5756 GB, free: 42.52 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007119/1.433, allocations: 410 kB / 0.576 GB, free: 42.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/1.433, allocations: 15.69 kB / 0.576 GB, free: 42.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/1.434, allocations: 55.75 kB / 0.576 GB, free: 42.03 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/1.435, allocations: 63.86 kB / 0.5761 GB, free: 41.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.062e-05/1.435, allocations: 23.98 kB / 0.5761 GB, free: 41.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009678/1.436, allocations: 0.5294 MB / 0.5766 GB, free: 41.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.41e-07/1.436, allocations: 0 / 0.5766 GB, free: 41.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004433/1.44, allocations: 1.192 MB / 0.5778 GB, free: 40.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse19.region3boundary,$cse20.region3boundary,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.006492/1.447, allocations: 1.104 MB / 0.5789 GB, free: 39.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004513/1.451, allocations: 1.401 MB / 0.5802 GB, free: 37.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/1.451, allocations: 0 / 0.5802 GB, free: 37.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/1.453, allocations: 0.8271 MB / 0.5811 GB, free: 37.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/1.456, allocations: 356.6 kB / 0.5814 GB, free: 36.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00706/1.463, allocations: 3.829 MB / 0.5851 GB, free: 33.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007966/1.464, allocations: 1.291 MB / 0.5864 GB, free: 31.72 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/1.465, allocations: 87.42 kB / 0.5865 GB, free: 31.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/1.465, allocations: 4 kB / 0.5865 GB, free: 31.63 MB / 426.7 MB Notification: Performance of Templates: time 0.09908/1.564, allocations: 41.92 MB / 0.6274 GB, free: 5.68 MB / 442.7 MB