Running command: translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 234.9 MB / 250.1 MB, free: 9.797 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.539e-05/3.552e-05, allocations: 4 kB / 308 MB, free: 15.78 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3612/0.3613, allocations: 54.86 MB / 362.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.0006275/0.362, allocations: 216.3 kB / 363.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002558/0.3645, allocations: 1.322 MB / 364.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.051e-05/0.3646, allocations: 4 kB / 364.4 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.3646, allocations: 7.938 kB / 364.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.3647, allocations: 0 / 364.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.3652, allocations: 75.7 kB / 364.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.274e-05/0.3653, allocations: 0 / 364.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.3653, allocations: 0 / 364.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.128e-05/0.3653, allocations: 0 / 364.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004399/0.3658, allocations: 59.95 kB / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.989e-06/0.3658, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.3658, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.3658, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.099e-05/0.3659, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 2.854e-05/0.3659, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.3659, allocations: 4 kB / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3659, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.3659, allocations: 0 / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003239/0.3663, allocations: 333.1 kB / 364.9 MB, free: 9.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3663, allocations: 12.09 kB / 364.9 MB, free: 9.707 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.778e-05/0.3664, allocations: 7.984 kB / 364.9 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.3665, allocations: 163 kB / 365 MB, free: 9.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.3665, allocations: 3.984 kB / 365 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.3666, allocations: 0 / 365 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.788e-05/0.3667, allocations: 29.7 kB / 365.1 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3667, allocations: 3.953 kB / 365.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.3667, allocations: 0 / 365.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.3667, allocations: 0 / 365.1 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.796e-05/0.3667, allocations: 4 kB / 365.1 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.3669, allocations: 149.7 kB / 365.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.1e-05/0.367, allocations: 22.52 kB / 365.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-06/0.367, allocations: 0 / 365.2 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.382e-05/0.3671, allocations: 56.27 kB / 365.3 MB, free: 9.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.387e-06/0.3671, allocations: 4.094 kB / 365.3 MB, free: 9.152 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/0.3673, allocations: 63.39 kB / 365.4 MB, free: 9.078 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.351e-05/0.3673, allocations: 89.12 kB / 365.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.537e-05/0.3674, allocations: 85 kB / 365.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3674, allocations: 25.7 kB / 365.6 MB, free: 8.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.3675, allocations: 150.6 kB / 365.7 MB, free: 8.703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.3675, allocations: 7.906 kB / 365.7 MB, free: 8.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-06/0.3675, allocations: 3.938 kB / 365.7 MB, free: 8.691 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3677, allocations: 310.8 kB / 366 MB, free: 8.379 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-06/0.3677, allocations: 0 / 366 MB, free: 8.379 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.254e-06/0.3677, allocations: 8 kB / 366 MB, free: 8.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.622e-05/0.3678, allocations: 25.7 kB / 366.1 MB, free: 8.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3678, allocations: 3.938 kB / 366.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.929e-05/0.3679, allocations: 63.39 kB / 366.1 MB, free: 8.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.64e-05/0.368, allocations: 29.7 kB / 366.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.368, allocations: 0 / 366.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.368, allocations: 0 / 366.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.368, allocations: 4 kB / 366.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.368, allocations: 0 / 366.1 MB, free: 8.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.3681, allocations: 8.047 kB / 366.2 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.3681, allocations: 0 / 366.2 MB, free: 8.215 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001051/0.3682, allocations: 139.5 kB / 366.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.3682, allocations: 0 / 366.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.898e-05/0.3682, allocations: 11.11 kB / 366.3 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.3682, allocations: 3.938 kB / 366.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3683, allocations: 0 / 366.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.3683, allocations: 0 / 366.3 MB, free: 8.051 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.3684, allocations: 149.6 kB / 366.5 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3684, allocations: 0 / 366.5 MB, free: 7.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.3684, allocations: 4 kB / 366.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3685, allocations: 0 / 366.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3685, allocations: 0 / 366.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3685, allocations: 0 / 366.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3685, allocations: 3.984 kB / 366.5 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.3686, allocations: 90.8 kB / 366.6 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.3687, allocations: 77.11 kB / 366.6 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.3687, allocations: 32 / 366.6 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.3687, allocations: 11.94 kB / 366.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.66e-05/0.3688, allocations: 3.984 kB / 366.6 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3688, allocations: 0 / 366.6 MB, free: 7.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.5e-05/0.3688, allocations: 79.31 kB / 366.7 MB, free: 7.547 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3688, allocations: 0 / 366.7 MB, free: 7.547 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.3691, allocations: 4 kB / 366.7 MB, free: 7.543 MB / 298.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0001139/0.3692, allocations: 95.19 kB / 366.8 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001178/0.3693, allocations: 67.41 kB / 366.9 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3693, allocations: 0 / 366.9 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/0.3694, allocations: 51.41 kB / 366.9 MB, free: 7.297 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/0.3695, allocations: 7.953 kB / 366.9 MB, free: 7.289 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002101/0.3697, allocations: 104.5 kB / 367 MB, free: 7.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.37, allocations: 0.6731 MB / 367.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.3701, allocations: 11.42 kB / 367.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of SimCode: time 8.02e-07/0.3701, allocations: 3.938 kB / 367.7 MB, free: 6.445 MB / 298.7 MB Notification: Performance of Templates: time 0.001754/0.3718, allocations: 332 kB / 368.1 MB, free: 6.121 MB / 298.7 MB