Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.441/2.441, allocations: 218.4 MB / 234.2 MB, free: 5.582 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.206e-05/4.212e-05, allocations: 4 kB / 287.6 MB, free: 56 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3425, allocations: 50.37 MB / 338 MB, free: 16 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.002275/0.3448, allocations: 1.282 MB / 339.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.3459, allocations: 468.1 kB / 339.7 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.3461, allocations: 7.938 kB / 339.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.995e-05/0.3461, allocations: 0 / 339.7 MB, free: 14.22 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.3462, allocations: 15.91 kB / 339.7 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.3466, allocations: 35.91 kB / 339.8 MB, free: 14.17 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.279e-05/0.3467, allocations: 27.89 kB / 339.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.402e-05/0.3468, allocations: 8 kB / 339.8 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.205e-05/0.3469, allocations: 23.91 kB / 339.8 MB, free: 14.11 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.122e-05/0.3469, allocations: 11.94 kB / 339.8 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.838e-05/0.347, allocations: 4 kB / 339.8 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.347, allocations: 0 / 339.8 MB, free: 14.1 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.869e-05/0.3471, allocations: 11.98 kB / 339.8 MB, free: 14.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.3471, allocations: 4 kB / 339.9 MB, free: 14.08 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.89e-05/0.3472, allocations: 39.86 kB / 339.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.3472, allocations: 4 kB / 339.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3472, allocations: 0 / 339.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.3472, allocations: 0 / 339.9 MB, free: 14.04 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005432/0.3478, allocations: 357.1 kB / 340.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3479, allocations: 11.97 kB / 340.3 MB, free: 13.63 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.3479, allocations: 7.906 kB / 340.3 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.3482, allocations: 197.9 kB / 340.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3482, allocations: 0 / 340.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.3482, allocations: 4 kB / 340.5 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.3486, allocations: 117.9 kB / 340.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3486, allocations: 0 / 340.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.3487, allocations: 0 / 340.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3487, allocations: 0 / 340.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.3488, allocations: 27.92 kB / 340.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.3492, allocations: 286.5 kB / 340.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001546/0.3494, allocations: 71.78 kB / 341 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3494, allocations: 12 kB / 341 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3495, allocations: 30.56 kB / 341 MB, free: 12.74 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.013e-06/0.3495, allocations: 0 / 341 MB, free: 12.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003804/0.3499, allocations: 85.86 kB / 341.1 MB, free: 12.65 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.35, allocations: 122.8 kB / 341.2 MB, free: 12.51 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.3502, allocations: 128.7 kB / 341.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.3502, allocations: 25.7 kB / 341.3 MB, free: 12.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/0.3503, allocations: 158.6 kB / 341.5 MB, free: 12.19 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.3503, allocations: 4 kB / 341.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.3503, allocations: 0 / 341.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3505, allocations: 310.8 kB / 341.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.231e-05/0.3505, allocations: 15.98 kB / 341.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.764e-05/0.3506, allocations: 35.42 kB / 341.9 MB, free: 11.81 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.983e-05/0.3507, allocations: 16 kB / 341.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3507, allocations: 4 kB / 341.9 MB, free: 11.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000215/0.351, allocations: 69.55 kB / 341.9 MB, free: 11.71 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.351, allocations: 10.03 kB / 342 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3511, allocations: 0 / 342 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.3511, allocations: 0 / 342 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.3512, allocations: 8 kB / 342 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3512, allocations: 12.11 kB / 342 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.336e-05/0.3513, allocations: 7.906 kB / 342 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.3513, allocations: 11.89 kB / 342 MB, free: 11.67 MB / 282.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 (4): * Single equations (assignments): 4 * 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.0001053/0.3515, allocations: 113.8 kB / 342.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.3516, allocations: 57.53 kB / 342.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.3517, allocations: 15.83 kB / 342.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3517, allocations: 0 / 342.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3517, allocations: 0 / 342.2 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3517, allocations: 8.047 kB / 342.2 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002202/0.3519, allocations: 173.6 kB / 342.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.352, allocations: 3.938 kB / 342.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.3521, allocations: 12 kB / 342.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.3521, allocations: 4.094 kB / 342.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.3521, allocations: 3.984 kB / 342.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3521, allocations: 0 / 342.4 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.3521, allocations: 3.984 kB / 342.4 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002933/0.3524, allocations: 212.5 kB / 342.6 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.538e-05/0.3525, allocations: 93 kB / 342.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.3526, allocations: 0 / 342.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.3527, allocations: 8 kB / 342.7 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.73e-05/0.3527, allocations: 3.953 kB / 342.7 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.3528, allocations: 7.984 kB / 342.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001023/0.3529, allocations: 106 kB / 342.8 MB, free: 10.74 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3529, allocations: 0 / 342.8 MB, free: 10.74 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002888/0.3532, allocations: 8 kB / 342.8 MB, free: 10.73 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0001265/0.3533, allocations: 99.19 kB / 342.9 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.3535, allocations: 43.91 kB / 343 MB, free: 10.58 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3536, allocations: 0 / 343 MB, free: 10.58 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.861e-05/0.3536, allocations: 11.94 kB / 343 MB, free: 10.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.354, allocations: 24.02 kB / 343 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004904/0.3545, allocations: 228.7 kB / 343.2 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.3548, allocations: 0.6926 MB / 343.9 MB, free: 9.566 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.023e-05/0.3549, allocations: 19.36 kB / 343.9 MB, free: 9.547 MB / 282.7 MB Notification: Performance of SimCode: time 7.81e-07/0.3549, allocations: 0 / 343.9 MB, free: 9.547 MB / 282.7 MB Notification: Performance of Templates: time 0.002887/0.3578, allocations: 0.8066 MB / 344.7 MB, free: 8.742 MB / 282.7 MB