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 2.085/2.085, allocations: 209.3 MB / 224.4 MB, free: 0.5156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.352e-05/2.328e-05, allocations: 0 / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3464, allocations: 48.7 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002038/0.3485, allocations: 1.178 MB / 326 MB, free: 2.391 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009307/0.3494, allocations: 445.2 kB / 326.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.031e-05/0.3495, allocations: 1.25 kB / 326.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.586e-05/0.3495, allocations: 0.8906 kB / 326.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.909e-05/0.3496, allocations: 12.09 kB / 326.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001516/0.3498, allocations: 26.06 kB / 326.5 MB, free: 2.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.579e-05/0.3499, allocations: 21.19 kB / 326.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.909e-05/0.35, allocations: 2.891 kB / 326.5 MB, free: 2.152 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.3501, allocations: 19.02 kB / 326.5 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.88e-05/0.3502, allocations: 12.75 kB / 326.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.577e-05/0.3502, allocations: 2.188 kB / 326.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.3502, allocations: 2.281 kB / 326.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.894e-05/0.3502, allocations: 11.81 kB / 326.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.3503, allocations: 2.438 kB / 326.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 7.358e-05/0.3503, allocations: 24.78 kB / 326.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.3504, allocations: 0 / 326.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3504, allocations: 0 / 326.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.3504, allocations: 0 / 326.6 MB, free: 2.129 MB / 266.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.0004289/0.3508, allocations: 341.1 kB / 326.9 MB, free: 1.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3509, allocations: 10.31 kB / 326.9 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.051e-05/0.3509, allocations: 6.281 kB / 326.9 MB, free: 1.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.3511, allocations: 176.1 kB / 327.1 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.3512, allocations: 5.812 kB / 327.1 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.3512, allocations: 2.531 kB / 327.1 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.3514, allocations: 53.06 kB / 327.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.3514, allocations: 1.125 kB / 327.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.3514, allocations: 0 / 327.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.3514, allocations: 1.031 kB / 327.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001349/0.3516, allocations: 23.75 kB / 327.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003986/0.352, allocations: 276.4 kB / 327.5 MB, free: 1.234 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.3521, allocations: 33.05 kB / 327.5 MB, free: 1.207 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.3522, allocations: 3.938 kB / 327.5 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.3524, allocations: 76.27 kB / 327.6 MB, free: 1.145 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.813e-06/0.3524, allocations: 0 / 327.6 MB, free: 1.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003567/0.3528, allocations: 83.66 kB / 327.7 MB, free: 1.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.3528, allocations: 53.45 kB / 327.7 MB, free: 1.039 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.131e-05/0.3529, allocations: 119.6 kB / 327.8 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3529, allocations: 26.77 kB / 327.9 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.361e-05/0.353, allocations: 156.3 kB / 328 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.413e-05/0.353, allocations: 17.33 kB / 328 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/0.353, allocations: 0 / 328 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.826e-05/0.3531, allocations: 321.3 kB / 328.3 MB, free: 424 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.94e-05/0.3532, allocations: 12.81 kB / 328.3 MB, free: 424 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.548e-05/0.3533, allocations: 51.52 kB / 328.4 MB, free: 372 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.093e-05/0.3534, allocations: 19.06 kB / 328.4 MB, free: 368 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3534, allocations: 0.9375 kB / 328.4 MB, free: 368 kB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002411/0.3537, allocations: 87.55 kB / 328.5 MB, free: 316 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3537, allocations: 9.781 kB / 328.5 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3537, allocations: 1.188 kB / 328.5 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.3537, allocations: 2.484 kB / 328.5 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.3539, allocations: 12.05 kB / 328.5 MB, free: 316 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3539, allocations: 5.156 kB / 328.5 MB, free: 312 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.746e-05/0.354, allocations: 14.92 kB / 328.5 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.354, allocations: 3.969 kB / 328.6 MB, free: 304 kB / 266.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 7.346e-05/0.3541, allocations: 118.7 kB / 328.7 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.3541, allocations: 6.094 kB / 328.7 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.3541, allocations: 9.078 kB / 328.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3542, allocations: 1.375 kB / 328.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3542, allocations: 0.5625 kB / 328.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3542, allocations: 0 / 328.7 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.3543, allocations: 171 kB / 328.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3544, allocations: 5.438 kB / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.3545, allocations: 7.062 kB / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3545, allocations: 1.375 kB / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.3545, allocations: 0 / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.3545, allocations: 1 kB / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3545, allocations: 5.578 kB / 328.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003601/0.3549, allocations: 127.7 kB / 329 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.812e-05/0.355, allocations: 82.08 kB / 329.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.355, allocations: 2 kB / 329.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.297e-05/0.3551, allocations: 3.453 kB / 329.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.195e-05/0.3552, allocations: 3.531 kB / 329.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.3552, allocations: 11.56 kB / 329.1 MB, free: 15.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.974e-05/0.3553, allocations: 93.66 kB / 329.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3553, allocations: 0 / 329.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002431/0.3555, allocations: 11.53 kB / 329.2 MB, free: 15.68 MB / 282.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.0001185/0.3557, allocations: 94.92 kB / 329.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.3559, allocations: 45.53 kB / 329.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3559, allocations: 0 / 329.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.356, allocations: 20.69 kB / 329.4 MB, free: 15.58 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3562, allocations: 13.14 kB / 329.4 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004667/0.3567, allocations: 202.2 kB / 329.6 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.3569, allocations: 0.6868 MB / 330.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.179e-05/0.357, allocations: 11.45 kB / 330.3 MB, free: 14.68 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.357, allocations: 4 kB / 330.3 MB, free: 14.68 MB / 282.7 MB Notification: Performance of Templates: time 0.002778/0.3598, allocations: 0.718 MB / 331 MB, free: 14.64 MB / 282.7 MB