Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 1.883/1.883, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.58e-05, allocations: 8 kB / 273.1 MB, free: 3.66 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08512/0.08518, allocations: 48.69 MB / 321.7 MB, free: 2.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3332/0.4185, allocations: 73.86 MB / 395.6 MB, free: 7.148 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001883/0.4187, allocations: 61.59 kB / 395.7 MB, free: 7.148 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003294/0.422, allocations: 0.9423 MB / 396.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.343e-06/0.422, allocations: 0 / 396.6 MB, free: 6.805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.037e-06/0.4221, allocations: 3.812 kB / 396.6 MB, free: 6.805 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003103/0.4224, allocations: 337.8 kB / 396.9 MB, free: 6.453 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4224, allocations: 11.59 kB / 397 MB, free: 6.453 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.4225, allocations: 3.906 kB / 397 MB, free: 6.449 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.4226, allocations: 187.2 kB / 397.1 MB, free: 6.242 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.4227, allocations: 4 kB / 397.1 MB, free: 6.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.4227, allocations: 3.844 kB / 397.2 MB, free: 6.238 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.4228, allocations: 46.44 kB / 397.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.4228, allocations: 0 / 397.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.4229, allocations: 0 / 397.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.144e-06/0.4229, allocations: 3.844 kB / 397.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.588e-05/0.4229, allocations: 7.031 kB / 397.2 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.4234, allocations: 286.4 kB / 397.5 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.314e-05/0.4235, allocations: 25.64 kB / 397.5 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.567e-05/0.4235, allocations: 15 kB / 397.5 MB, free: 5.902 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.4235, allocations: 0 / 397.5 MB, free: 5.902 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001518/0.4237, allocations: 59.03 kB / 397.6 MB, free: 5.855 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 2.626e-06/0.4237, allocations: 4 kB / 397.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001859/0.4239, allocations: 69.83 kB / 397.7 MB, free: 5.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.424, allocations: 51.41 kB / 397.7 MB, free: 5.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.682e-05/0.424, allocations: 107.5 kB / 397.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.4241, allocations: 30.11 kB / 397.8 MB, free: 5.617 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.4241, allocations: 154.4 kB / 398 MB, free: 5.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.4242, allocations: 10.94 kB / 398 MB, free: 5.461 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-06/0.4242, allocations: 0 / 398 MB, free: 5.461 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.284e-05/0.4242, allocations: 330 kB / 398.3 MB, free: 5.141 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.064e-05/0.4243, allocations: 3.75 kB / 398.3 MB, free: 5.141 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.348e-05/0.4243, allocations: 38.86 kB / 398.4 MB, free: 5.102 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.51e-05/0.4244, allocations: 17.45 kB / 398.4 MB, free: 5.098 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.691e-06/0.4244, allocations: 3.844 kB / 398.4 MB, free: 5.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001441/0.4246, allocations: 66.97 kB / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.4246, allocations: 11.55 kB / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4246, allocations: 0 / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4246, allocations: 3.844 kB / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.4247, allocations: 10.97 kB / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.88e-06/0.4248, allocations: 3.844 kB / 398.5 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.49e-05/0.4248, allocations: 14.31 kB / 398.5 MB, free: 5.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.4249, allocations: 0.875 kB / 398.5 MB, free: 5.055 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 5.491e-05/0.4249, allocations: 116.6 kB / 398.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.425, allocations: 7.75 kB / 398.6 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.281e-05/0.425, allocations: 7.906 kB / 398.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.365e-06/0.425, allocations: 2.625 kB / 398.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.425, allocations: 0 / 398.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.612e-06/0.425, allocations: 0 / 398.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.4251, allocations: 175.9 kB / 398.8 MB, free: 4.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-06/0.4252, allocations: 7.844 kB / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.658e-05/0.4253, allocations: 6.859 kB / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.355e-06/0.4253, allocations: 0 / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.4253, allocations: 0 / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.412e-06/0.4253, allocations: 0 / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.675e-06/0.4253, allocations: 3.812 kB / 398.8 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.4255, allocations: 104.1 kB / 398.9 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.97e-05/0.4256, allocations: 77.17 kB / 399 MB, free: 4.566 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.4256, allocations: 8.469 kB / 399 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.573e-05/0.4257, allocations: 2.656 kB / 399 MB, free: 4.562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.355e-05/0.4257, allocations: 5.312 kB / 399 MB, free: 4.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.4258, allocations: 5.938 kB / 399 MB, free: 4.559 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.265e-05/0.4258, allocations: 91.12 kB / 399.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.78e-07/0.4258, allocations: 0 / 399.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002717/0.4261, allocations: 11.62 kB / 399.1 MB, free: 4.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001094/0.4262, allocations: 103.4 kB / 399.2 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.4264, allocations: 29.91 kB / 399.2 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.837e-06/0.4264, allocations: 0 / 399.2 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.459e-05/0.4264, allocations: 14.58 kB / 399.3 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.4266, allocations: 5.266 kB / 399.3 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002636/0.4269, allocations: 126.6 kB / 399.4 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.4273, allocations: 0.6873 MB / 400.1 MB, free: 19.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.4274, allocations: 15.31 kB / 400.1 MB, free: 19.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.362e-06/0.4274, allocations: 0 / 400.1 MB, free: 19.56 MB / 330.7 MB Notification: Performance of Templates: time 0.002086/0.4295, allocations: 0.7356 MB / 400.8 MB, free: 19.52 MB / 330.7 MB