Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadModel(Modelica_Synchronous): time 2.253/2.253, allocations: 218.4 MB / 234.2 MB, free: 5.578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.768e-05/3.807e-05, allocations: 7.984 kB / 287.6 MB, free: 52 kB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3353, allocations: 50.37 MB / 338 MB, free: 15.97 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.0031/0.3385, allocations: 1.611 MB / 339.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002437/0.341, allocations: 0.9718 MB / 340.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.3412, allocations: 7.938 kB / 340.6 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003272/0.3416, allocations: 55.8 kB / 340.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.3418, allocations: 63.83 kB / 340.7 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.343, allocations: 231.2 kB / 340.9 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.3433, allocations: 103.8 kB / 341 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.3435, allocations: 23.98 kB / 341 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.3436, allocations: 67.77 kB / 341.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/0.3438, allocations: 71.75 kB / 341.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.3441, allocations: 47.92 kB / 341.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.3441, allocations: 8 kB / 341.2 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.3442, allocations: 59.8 kB / 341.3 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.237e-05/0.3443, allocations: 8 kB / 341.3 MB, free: 12.63 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004005/0.3447, allocations: 201.4 kB / 341.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3447, allocations: 3.938 kB / 341.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3448, allocations: 0 / 341.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.3448, allocations: 4 kB / 341.5 MB, free: 12.43 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009294/0.3457, allocations: 0.4887 MB / 342 MB, free: 11.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.3458, allocations: 12.03 kB / 342 MB, free: 11.87 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.874e-05/0.3459, allocations: 31.62 kB / 342 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005602/0.3465, allocations: 298.3 kB / 342.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.3465, allocations: 16 kB / 342.3 MB, free: 11.49 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.86e-05/0.3466, allocations: 8 kB / 342.3 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008616/0.3474, allocations: 327 kB / 342.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3475, allocations: 0 / 342.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.109e-05/0.3475, allocations: 11.98 kB / 342.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3475, allocations: 4 kB / 342.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.3479, allocations: 59.97 kB / 342.7 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008285/0.3487, allocations: 418.3 kB / 343.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005928/0.3493, allocations: 192 kB / 343.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.3494, allocations: 4 kB / 343.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002601/0.3497, allocations: 87.42 kB / 343.4 MB, free: 10.28 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.805e-06/0.3497, allocations: 4 kB / 343.4 MB, free: 10.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008974/0.3506, allocations: 249.1 kB / 343.7 MB, free: 10.03 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/0.3507, allocations: 170.4 kB / 343.8 MB, free: 9.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005506/0.3513, allocations: 317.9 kB / 344.1 MB, free: 9.504 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.3514, allocations: 33.7 kB / 344.2 MB, free: 9.465 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3515, allocations: 191.1 kB / 344.4 MB, free: 9.277 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.129e-05/0.3516, allocations: 23.7 kB / 344.4 MB, free: 9.254 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/0.3516, allocations: 12 kB / 344.4 MB, free: 9.242 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3518, allocations: 314.8 kB / 344.7 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001878/0.352, allocations: 44.44 kB / 344.7 MB, free: 8.883 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.3523, allocations: 183.8 kB / 344.9 MB, free: 8.641 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3525, allocations: 67.92 kB / 345 MB, free: 8.574 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3526, allocations: 0 / 345 MB, free: 8.574 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006212/0.3532, allocations: 217.2 kB / 345.2 MB, free: 8.355 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.3532, allocations: 11.94 kB / 345.2 MB, free: 8.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.3533, allocations: 4.531 kB / 345.2 MB, free: 8.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.3533, allocations: 8 kB / 345.2 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.3536, allocations: 43.92 kB / 345.3 MB, free: 8.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.3536, allocations: 11.89 kB / 345.3 MB, free: 8.277 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.3539, allocations: 24.14 kB / 345.3 MB, free: 8.254 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.749e-05/0.3539, allocations: 12 kB / 345.3 MB, free: 8.242 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002916/0.3542, allocations: 172 kB / 345.5 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003421/0.3546, allocations: 137.3 kB / 345.6 MB, free: 7.926 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.3547, allocations: 37.73 kB / 345.7 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3547, allocations: 4 kB / 345.7 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3547, allocations: 0 / 345.7 MB, free: 7.879 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3548, allocations: 3.953 kB / 345.7 MB, free: 7.875 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003674/0.3551, allocations: 273.4 kB / 345.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3552, allocations: 0 / 345.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.3554, allocations: 27.92 kB / 346 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.166e-05/0.3554, allocations: 4 kB / 346 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.3555, allocations: 4 kB / 346 MB, free: 7.523 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3555, allocations: 4 kB / 346 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3555, allocations: 0 / 346 MB, free: 7.52 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007091/0.3562, allocations: 268.2 kB / 346.2 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3564, allocations: 136.6 kB / 346.4 MB, free: 7.07 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.148e-05/0.3565, allocations: 8 kB / 346.4 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.3567, allocations: 19.94 kB / 346.4 MB, free: 7.043 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.3568, allocations: 4 kB / 346.4 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.163e-05/0.3568, allocations: 15.98 kB / 346.4 MB, free: 7.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004067/0.3572, allocations: 245.9 kB / 346.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3572, allocations: 0 / 346.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004548/0.3577, allocations: 44 kB / 346.7 MB, free: 6.738 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001223/0.3589, allocations: 414 kB / 347.1 MB, free: 6.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006207/0.3596, allocations: 147.7 kB / 347.2 MB, free: 6.242 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.3596, allocations: 0 / 347.2 MB, free: 6.242 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.3598, allocations: 27.98 kB / 347.3 MB, free: 6.215 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.3605, allocations: 121 kB / 347.4 MB, free: 6.098 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.3618, allocations: 0.5301 MB / 347.9 MB, free: 5.527 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004463/0.3623, allocations: 0.7755 MB / 348.7 MB, free: 4.727 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.3624, allocations: 27.42 kB / 348.7 MB, free: 4.703 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.3624, allocations: 0 / 348.7 MB, free: 4.703 MB / 282.7 MB Notification: Performance of Templates: time 0.009897/0.3723, allocations: 3.562 MB / 352.3 MB, free: 1.141 MB / 282.7 MB