Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.549e-05/2.55e-05, allocations: 0 / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3198, allocations: 44.51 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001743/0.3216, allocations: 1.039 MB / 304.3 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2092/0.5309, allocations: 122.8 MB / 427.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.953e-05/0.531, allocations: 4 kB / 427.1 MB, free: 1.543 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.193e-05/0.531, allocations: 0 / 427.1 MB, free: 1.543 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008686/0.5319, allocations: 167.4 kB / 427.3 MB, free: 1.379 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001542/0.5335, allocations: 402.8 kB / 427.7 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 8.538e-05/0.5336, allocations: 27.95 kB / 427.7 MB, free: 0.957 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.144e-05/0.5336, allocations: 3.984 kB / 427.7 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.622e-05/0.5337, allocations: 23.92 kB / 427.7 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.569e-05/0.5338, allocations: 23.92 kB / 427.8 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002104/0.5359, allocations: 0.6397 MB / 428.4 MB, free: 272 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001771/0.5361, allocations: 36 kB / 428.4 MB, free: 236 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.956e-05/0.5362, allocations: 11.92 kB / 428.4 MB, free: 224 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.5362, allocations: 4 kB / 428.4 MB, free: 220 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3299/0.8661, allocations: 337.3 kB / 428.8 MB, free: 2.203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.8662, allocations: 0.7812 kB / 428.8 MB, free: 2.203 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.8662, allocations: 0 / 428.8 MB, free: 2.203 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.8662, allocations: 0 / 428.8 MB, free: 2.203 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.001016/0.8673, allocations: 426.5 kB / 429.2 MB, free: 17.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.819e-05/0.8673, allocations: 9.344 kB / 429.2 MB, free: 17.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00253/0.8699, allocations: 97.39 kB / 429.3 MB, free: 17.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.8705, allocations: 214 kB / 429.5 MB, free: 17.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.8706, allocations: 2.219 kB / 429.5 MB, free: 17.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.421e-05/0.8707, allocations: 6.094 kB / 429.5 MB, free: 17.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000457/0.8711, allocations: 89.89 kB / 429.6 MB, free: 17.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.8712, allocations: 3.125 kB / 429.6 MB, free: 17.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.8712, allocations: 1.562 kB / 429.6 MB, free: 17.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.8712, allocations: 2.594 kB / 429.6 MB, free: 17.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00042/0.8717, allocations: 43.28 kB / 429.7 MB, free: 17.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005003/0.8722, allocations: 205 kB / 429.9 MB, free: 17.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.8733, allocations: 123.4 kB / 430 MB, free: 17.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001433/0.8748, allocations: 0.9761 MB / 431 MB, free: 16.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.793e-05/0.8749, allocations: 42.45 kB / 431 MB, free: 16.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 4.619e-06/0.8749, allocations: 0 / 431 MB, free: 16.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.001225/0.8762, allocations: 133.5 kB / 431.1 MB, free: 16.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.517e-05/0.8763, allocations: 83.3 kB / 431.2 MB, free: 16.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004969/0.8768, allocations: 142.2 kB / 431.3 MB, free: 15.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.8769, allocations: 26.2 kB / 431.4 MB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.877, allocations: 158.9 kB / 431.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.8771, allocations: 26.67 kB / 431.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.8771, allocations: 0.5312 kB / 431.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.8773, allocations: 316 kB / 431.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.8776, allocations: 29.23 kB / 431.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.8779, allocations: 53.61 kB / 431.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.8782, allocations: 31.45 kB / 432 MB, free: 15.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.8783, allocations: 4.031 kB / 432 MB, free: 15.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008459/0.8792, allocations: 115.7 kB / 432.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.8792, allocations: 5.344 kB / 432.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.8793, allocations: 1.031 kB / 432.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.8793, allocations: 1.688 kB / 432.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003669/0.8797, allocations: 29.42 kB / 432.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.8797, allocations: 8.031 kB / 432.1 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.8802, allocations: 11.62 kB / 432.1 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-05/0.8803, allocations: 7.266 kB / 432.1 MB, free: 15.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0002082/0.8805, allocations: 119.8 kB / 432.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.8807, allocations: 3.406 kB / 432.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.882, allocations: 242.4 kB / 432.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.8821, allocations: 2.5 kB / 432.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.8821, allocations: 1.219 kB / 432.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.8821, allocations: 0.5938 kB / 432.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004679/0.8826, allocations: 218.3 kB / 432.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.8827, allocations: 0.75 kB / 432.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.8831, allocations: 27.05 kB / 432.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.8831, allocations: 4.594 kB / 432.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.8832, allocations: 4.438 kB / 432.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.8832, allocations: 4.562 kB / 432.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.8832, allocations: 0.5312 kB / 432.8 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.8843, allocations: 189.7 kB / 433 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.8845, allocations: 95.8 kB / 433 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.722e-05/0.8846, allocations: 4.344 kB / 433 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.885, allocations: 6.031 kB / 433.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.09e-05/0.8851, allocations: 7.766 kB / 433.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.8852, allocations: 6.438 kB / 433.1 MB, free: 14.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003942/0.8856, allocations: 136 kB / 433.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.084e-06/0.8856, allocations: 0 / 433.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001456/0.8871, allocations: 168.2 kB / 433.4 MB, free: 14.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001857/0.889, allocations: 388.6 kB / 433.7 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.8897, allocations: 79.05 kB / 433.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.8897, allocations: 4.125 kB / 433.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.89, allocations: 39.19 kB / 433.9 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.8904, allocations: 12.11 kB / 433.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.8915, allocations: 390.8 kB / 434.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.892, allocations: 0.6944 MB / 435 MB, free: 13.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.8923, allocations: 42.69 kB / 435 MB, free: 13.52 MB / 378.7 MB Notification: Performance of SimCode: time 3.006e-06/0.8924, allocations: 0 / 435 MB, free: 13.52 MB / 378.7 MB Notification: Performance of Templates: time 0.01726/0.9096, allocations: 4.952 MB / 439.9 MB, free: 12.8 MB / 378.7 MB