Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadModel(Modelica_Synchronous): time 2.425/2.425, allocations: 218.4 MB / 234.2 MB, free: 5.578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.886e-05, allocations: 4 kB / 287.6 MB, free: 48 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3402, allocations: 50.36 MB / 338 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.002403/0.3427, allocations: 1.247 MB / 339.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004461/0.3432, allocations: 135.6 kB / 339.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.65e-05/0.3433, allocations: 4 kB / 339.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.3434, allocations: 3.938 kB / 339.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.3435, allocations: 4 kB / 339.4 MB, free: 14.56 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002697/0.3438, allocations: 35.84 kB / 339.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.45e-05/0.3439, allocations: 19.97 kB / 339.4 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.596e-05/0.344, allocations: 11.98 kB / 339.4 MB, free: 14.49 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.024e-05/0.344, allocations: 4 kB / 339.4 MB, free: 14.49 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.873e-05/0.3441, allocations: 11.92 kB / 339.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.548e-05/0.3441, allocations: 0 / 339.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.3441, allocations: 0 / 339.4 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.076e-05/0.3441, allocations: 11.94 kB / 339.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.822e-05/0.3442, allocations: 7.938 kB / 339.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.376e-05/0.3443, allocations: 35.94 kB / 339.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3443, allocations: 0 / 339.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3443, allocations: 0 / 339.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.3443, allocations: 0 / 339.5 MB, free: 14.42 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005169/0.3448, allocations: 345.1 kB / 339.8 MB, free: 14.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.3449, allocations: 12.03 kB / 339.8 MB, free: 14.03 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.345, allocations: 7.906 kB / 339.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.3452, allocations: 190.8 kB / 340 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3452, allocations: 8 kB / 340 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.3453, allocations: 7.953 kB / 340.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.3457, allocations: 109 kB / 340.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3457, allocations: 0 / 340.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.3457, allocations: 0 / 340.2 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.3458, allocations: 8 kB / 340.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.3459, allocations: 27.86 kB / 340.2 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.3463, allocations: 261.8 kB / 340.5 MB, free: 13.31 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.3466, allocations: 142.3 kB / 340.6 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.3467, allocations: 0 / 340.6 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.3467, allocations: 34.56 kB / 340.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.194e-06/0.3467, allocations: 0 / 340.6 MB, free: 13.09 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003883/0.3471, allocations: 85.58 kB / 340.7 MB, free: 13 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.103e-05/0.3472, allocations: 81.11 kB / 340.8 MB, free: 12.9 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.3474, allocations: 125.8 kB / 340.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.3474, allocations: 25.7 kB / 340.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.208e-05/0.3475, allocations: 158.6 kB / 341.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.3475, allocations: 3.906 kB / 341.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-06/0.3476, allocations: 128 / 341.1 MB, free: 12.58 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3477, allocations: 322.8 kB / 341.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.834e-05/0.3478, allocations: 8 kB / 341.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.3479, allocations: 35.36 kB / 341.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.384e-05/0.348, allocations: 16 kB / 341.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.348, allocations: 7.953 kB / 341.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002234/0.3482, allocations: 65.61 kB / 341.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.3483, allocations: 4 kB / 341.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.3483, allocations: 0 / 341.5 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.3483, allocations: 12.06 kB / 341.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.3485, allocations: 11.98 kB / 341.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.3485, allocations: 3.938 kB / 341.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.155e-05/0.3485, allocations: 8 kB / 341.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.3486, allocations: 0 / 341.6 MB, free: 12.07 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.000126/0.3487, allocations: 117.8 kB / 341.7 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.3488, allocations: 49.55 kB / 341.7 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.3489, allocations: 8.578 kB / 341.8 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-06/0.3489, allocations: 4 kB / 341.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3489, allocations: 4 kB / 341.8 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3489, allocations: 7.969 kB / 341.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.3492, allocations: 165.7 kB / 341.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3492, allocations: 0 / 341.9 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.915e-05/0.3493, allocations: 15.94 kB / 341.9 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.3493, allocations: 7.938 kB / 342 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3493, allocations: 3.938 kB / 342 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3494, allocations: 0 / 342 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3494, allocations: 0 / 342 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.3497, allocations: 190 kB / 342.1 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.103e-05/0.3498, allocations: 89 kB / 342.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.207e-05/0.3498, allocations: 4 kB / 342.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.633e-05/0.3499, allocations: 4 kB / 342.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.35, allocations: 7.984 kB / 342.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.35, allocations: 4 kB / 342.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.3501, allocations: 103.3 kB / 342.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3501, allocations: 0 / 342.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002873/0.3504, allocations: 4 kB / 342.4 MB, free: 11.18 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0001464/0.3506, allocations: 103.1 kB / 342.5 MB, free: 11.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002111/0.3508, allocations: 36.09 kB / 342.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3508, allocations: 0 / 342.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.275e-05/0.3509, allocations: 11.94 kB / 342.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.3512, allocations: 24.02 kB / 342.5 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004578/0.3517, allocations: 195.6 kB / 342.7 MB, free: 10.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.3521, allocations: 0.6926 MB / 343.4 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.33e-05/0.3521, allocations: 7.438 kB / 343.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.3521, allocations: 0 / 343.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of Templates: time 0.002677/0.3548, allocations: 0.6806 MB / 344.1 MB, free: 9.363 MB / 282.7 MB