Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadModel(Modelica_Synchronous): time 2.372/2.372, allocations: 218.4 MB / 234.2 MB, free: 4.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.902e-05, allocations: 0 / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3155, allocations: 50.37 MB / 338 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002168/0.3177, allocations: 1.196 MB / 339.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004491/0.3182, allocations: 131.6 kB / 339.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.824e-05/0.3183, allocations: 4 kB / 339.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.995e-05/0.3183, allocations: 7.938 kB / 339.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.3185, allocations: 7.984 kB / 339.3 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.3187, allocations: 27.86 kB / 339.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.937e-05/0.3188, allocations: 19.97 kB / 339.4 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.667e-05/0.3189, allocations: 4 kB / 339.4 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.858e-05/0.3189, allocations: 7.984 kB / 339.4 MB, free: 14.42 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.87e-05/0.319, allocations: 7.938 kB / 339.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.41e-05/0.319, allocations: 0 / 339.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.319, allocations: 4 kB / 339.4 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.913e-05/0.3191, allocations: 15.91 kB / 339.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.328e-05/0.3191, allocations: 4 kB / 339.4 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 7.468e-05/0.3192, allocations: 23.97 kB / 339.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.3192, allocations: 0 / 339.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3192, allocations: 0 / 339.4 MB, free: 14.37 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3192, allocations: 0 / 339.4 MB, free: 14.37 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004581/0.3197, allocations: 345.1 kB / 339.8 MB, free: 13.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3198, allocations: 8.031 kB / 339.8 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.3198, allocations: 11.84 kB / 339.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.3201, allocations: 186.9 kB / 340 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.3201, allocations: 3.984 kB / 340 MB, free: 13.74 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.3201, allocations: 11.89 kB / 340 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.3204, allocations: 85.11 kB / 340.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3204, allocations: 4 kB / 340.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.3205, allocations: 0 / 340.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3205, allocations: 11.98 kB / 340.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.3206, allocations: 23.86 kB / 340.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.321, allocations: 257.8 kB / 340.4 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001143/0.3211, allocations: 45.16 kB / 340.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.3212, allocations: 7.969 kB / 340.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3212, allocations: 34.56 kB / 340.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 1.914e-06/0.3212, allocations: 0 / 340.4 MB, free: 13.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003227/0.3215, allocations: 73.69 kB / 340.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.3216, allocations: 77.11 kB / 340.6 MB, free: 13 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.3218, allocations: 125.8 kB / 340.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.3218, allocations: 25.7 kB / 340.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.3219, allocations: 154.6 kB / 340.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.688e-06/0.3219, allocations: 0 / 340.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.888e-06/0.3219, allocations: 0 / 340.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.322, allocations: 323 kB / 341.2 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.341e-05/0.3221, allocations: 11.94 kB / 341.2 MB, free: 12.34 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.861e-05/0.3222, allocations: 21.7 kB / 341.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.797e-05/0.3223, allocations: 8 kB / 341.2 MB, free: 12.31 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3223, allocations: 8.016 kB / 341.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001735/0.3225, allocations: 53.62 kB / 341.3 MB, free: 12.24 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3225, allocations: 4 kB / 341.3 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3225, allocations: 4 kB / 341.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3226, allocations: 0 / 341.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.3227, allocations: 7.984 kB / 341.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.3227, allocations: 0 / 341.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/0.3227, allocations: 12 kB / 341.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.3228, allocations: 0 / 341.3 MB, free: 12.21 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001063/0.3229, allocations: 121.8 kB / 341.5 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-05/0.323, allocations: 37.56 kB / 341.5 MB, free: 12.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.236e-05/0.323, allocations: 15.83 kB / 341.5 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.323, allocations: 0 / 341.5 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.323, allocations: 0 / 341.5 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.323, allocations: 0 / 341.5 MB, free: 12.03 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.3233, allocations: 165.7 kB / 341.7 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3233, allocations: 4.031 kB / 341.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.098e-05/0.3234, allocations: 19.77 kB / 341.7 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3234, allocations: 0 / 341.7 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.3234, allocations: 11.98 kB / 341.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.3234, allocations: 0 / 341.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3234, allocations: 0 / 341.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.3237, allocations: 170 kB / 341.9 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.283e-05/0.3238, allocations: 93 kB / 342 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.3238, allocations: 0 / 342 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.3239, allocations: 4 kB / 342 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.324, allocations: 3.984 kB / 342 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.83e-06/0.324, allocations: 4 kB / 342 MB, free: 11.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.995e-05/0.3241, allocations: 103.3 kB / 342.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.224e-06/0.3241, allocations: 0 / 342.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002731/0.3244, allocations: 7.938 kB / 342.1 MB, free: 11.36 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: 2 (step.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001158/0.3245, allocations: 95.25 kB / 342.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001886/0.3247, allocations: 23.98 kB / 342.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3247, allocations: 0 / 342.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.379e-05/0.3248, allocations: 16.11 kB / 342.2 MB, free: 11.21 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.3251, allocations: 15.97 kB / 342.2 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.3255, allocations: 175.2 kB / 342.4 MB, free: 10.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.3258, allocations: 0.6928 MB / 343.1 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.3259, allocations: 11.44 kB / 343.1 MB, free: 10.26 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.3259, allocations: 0 / 343.1 MB, free: 10.26 MB / 282.7 MB Notification: Performance of Templates: time 0.002513/0.3284, allocations: 0.6166 MB / 343.7 MB, free: 9.648 MB / 282.7 MB