Running command: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadModel(ModelicaTest): time 2.473/2.473, allocations: 269 MB / 284.1 MB, free: 3.621 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.417e-05/4.423e-05, allocations: 8 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1348, allocations: 61.89 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01694/0.1517, allocations: 10.46 MB / 421.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.349/0.5008, allocations: 4.509 MB / 425.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007112/0.5015, allocations: 21.88 kB / 425.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000776/0.5023, allocations: 162.7 kB / 426.1 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002431/0.5048, allocations: 493.4 kB / 426.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006813/0.5116, allocations: 1.01 MB / 427.6 MB, free: 3.469 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.5143, allocations: 0.5143 MB / 428.1 MB, free: 3.469 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.5154, allocations: 214.7 kB / 428.3 MB, free: 3.465 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00172/0.5172, allocations: 342.1 kB / 428.6 MB, free: 3.465 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.5187, allocations: 287.2 kB / 428.9 MB, free: 3.461 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003812/0.5225, allocations: 0.9506 MB / 429.9 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005575/0.5231, allocations: 63.75 kB / 429.9 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002941/0.5234, allocations: 132.2 kB / 430.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003226/0.5238, allocations: 50.44 kB / 430.1 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002965/0.5268, allocations: 0.9132 MB / 431 MB, free: 3.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.5268, allocations: 7.875 kB / 431 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5268, allocations: 1.375 kB / 431 MB, free: 3.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.652e-05/0.5269, allocations: 0 / 431 MB, free: 3.379 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002414/0.5293, allocations: 0.7991 MB / 431.8 MB, free: 2.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.5294, allocations: 8.906 kB / 431.8 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004399/0.5298, allocations: 58.36 kB / 431.9 MB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.5308, allocations: 432.8 kB / 432.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.071e-05/0.5309, allocations: 26.28 kB / 432.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.313e-05/0.531, allocations: 28.89 kB / 432.4 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.5323, allocations: 0.5211 MB / 432.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.5324, allocations: 1.188 kB / 432.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.551e-05/0.5325, allocations: 15.55 kB / 432.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-05/0.5326, allocations: 27.52 kB / 432.9 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5339, allocations: 463.9 kB / 433.4 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/0.5391, allocations: 2.285 MB / 435.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006861/0.5398, allocations: 238.9 kB / 435.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001895/0.5417, allocations: 1.029 MB / 436.9 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004808/0.5423, allocations: 231.9 kB / 437.2 MB, free: 160 kB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 3.176e-06/0.5423, allocations: 0 / 437.2 MB, free: 160 kB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.001157/0.5434, allocations: 456.2 kB / 437.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001589/0.5436, allocations: 243.2 kB / 437.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.5447, allocations: 467 kB / 438.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.433e-05/0.5448, allocations: 31.86 kB / 438.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.5451, allocations: 319.9 kB / 438.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.905e-05/0.5452, allocations: 61.75 kB / 438.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.5452, allocations: 5.906 kB / 438.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5454, allocations: 331.8 kB / 439 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003822/0.5458, allocations: 129.9 kB / 439.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.5464, allocations: 300.3 kB / 439.5 MB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005615/0.5469, allocations: 210.4 kB / 439.7 MB, free: 14.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.547, allocations: 1.031 kB / 439.7 MB, free: 14.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00179/0.5488, allocations: 0.4909 MB / 440.2 MB, free: 14.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.5498, allocations: 1.779 MB / 441.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/0.5499, allocations: 4.75 kB / 441.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.883e-05/0.5499, allocations: 7 kB / 441.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008248/0.5507, allocations: 79.09 kB / 442 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.746e-05/0.5508, allocations: 12.17 kB / 442 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.5519, allocations: 60.94 kB / 442.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.5521, allocations: 30.64 kB / 442.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.5521, allocations: 2.625 kB / 442.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001742/0.5539, allocations: 477 kB / 442.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/0.5539, allocations: 8.594 kB / 442.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.554, allocations: 11.3 kB / 442.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007275/0.5547, allocations: 82.98 kB / 442.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.181e-05/0.5548, allocations: 10.17 kB / 442.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007094/0.5555, allocations: 40.73 kB / 442.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.707e-05/0.5556, allocations: 17.72 kB / 442.8 MB, free: 12.63 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * 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.0006412/0.5562, allocations: 227.8 kB / 443 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002213/0.5565, allocations: 54.22 kB / 443 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.5579, allocations: 370.3 kB / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.5579, allocations: 2.312 kB / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5579, allocations: 0 / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.5579, allocations: 2.078 kB / 443.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.559, allocations: 409.7 kB / 443.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.5591, allocations: 0 / 443.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.5594, allocations: 31.36 kB / 443.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/0.5594, allocations: 1.031 kB / 443.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.482e-05/0.5595, allocations: 8.188 kB / 443.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.5595, allocations: 5.844 kB / 443.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5595, allocations: 0 / 443.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.5608, allocations: 356.6 kB / 444.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003423/0.5612, allocations: 136.5 kB / 444.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002226/0.5614, allocations: 4.625 kB / 444.3 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.5621, allocations: 24.95 kB / 444.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/0.5623, allocations: 17.94 kB / 444.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.303e-05/0.5623, allocations: 8.219 kB / 444.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00111/0.5634, allocations: 366 kB / 444.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5635, allocations: 0 / 444.7 MB, free: 11.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003057/0.5665, allocations: 427.1 kB / 445.2 MB, free: 11.36 MB / 362.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.002361/0.5689, allocations: 415.4 kB / 445.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.5713, allocations: 0.6633 MB / 446.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.5714, allocations: 2 kB / 446.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.5719, allocations: 189 kB / 446.4 MB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.5741, allocations: 186.5 kB / 446.6 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002793/0.5769, allocations: 0.9931 MB / 447.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007606/0.5777, allocations: 0.8517 MB / 448.4 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003234/0.578, allocations: 46.38 kB / 448.5 MB, free: 9.406 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5781, allocations: 0 / 448.5 MB, free: 9.406 MB / 362.7 MB Notification: Performance of Templates: time 0.03487/0.6129, allocations: 10.17 MB / 458.7 MB, free: 4.688 MB / 362.7 MB