Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadModel(Modelica_Synchronous): time 2.281/2.281, allocations: 218.4 MB / 234.2 MB, free: 4.598 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.444e-05, allocations: 4 kB / 287.6 MB, free: 15.08 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3371, allocations: 50.37 MB / 338 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.003637/0.3408, allocations: 1.826 MB / 339.8 MB, free: 13.99 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002794/0.3437, allocations: 1.069 MB / 340.9 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.3439, allocations: 15.94 kB / 340.9 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004363/0.3444, allocations: 75.58 kB / 340.9 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.3447, allocations: 79.73 kB / 341 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.346, allocations: 251.3 kB / 341.3 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.3464, allocations: 148.1 kB / 341.4 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.3466, allocations: 77.09 kB / 341.5 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.3469, allocations: 91.7 kB / 341.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002388/0.3471, allocations: 103.6 kB / 341.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002224/0.3474, allocations: 39.98 kB / 341.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.362e-05/0.3474, allocations: 8 kB / 341.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3476, allocations: 79.67 kB / 341.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.538e-05/0.3476, allocations: 16 kB / 341.8 MB, free: 11.94 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.3481, allocations: 289.2 kB / 342.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3482, allocations: 3.938 kB / 342.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3482, allocations: 4 kB / 342.1 MB, free: 11.65 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.3482, allocations: 0 / 342.1 MB, free: 11.65 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001082/0.3493, allocations: 0.5635 MB / 342.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.3494, allocations: 8.031 kB / 342.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.3495, allocations: 43.44 kB / 342.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000679/0.3502, allocations: 355.3 kB / 343.1 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.3502, allocations: 20.56 kB / 343.1 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/0.3503, allocations: 24 kB / 343.1 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.3519, allocations: 0.6783 MB / 343.8 MB, free: 9.805 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.352, allocations: 7.922 kB / 343.8 MB, free: 9.797 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/0.352, allocations: 8 kB / 343.8 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.096e-05/0.3521, allocations: 11.98 kB / 343.8 MB, free: 9.777 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004651/0.3526, allocations: 155.5 kB / 344 MB, free: 9.625 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.3542, allocations: 1.141 MB / 345.1 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.3555, allocations: 0.6921 MB / 345.8 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.726e-05/0.3556, allocations: 19.86 kB / 345.8 MB, free: 7.516 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002965/0.3559, allocations: 118 kB / 345.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 3.827e-06/0.3559, allocations: 0 / 345.9 MB, free: 7.379 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.001523/0.3575, allocations: 0.5302 MB / 346.5 MB, free: 6.824 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002472/0.3578, allocations: 400.5 kB / 346.9 MB, free: 6.348 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007682/0.3585, allocations: 400.6 kB / 347.3 MB, free: 5.949 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.983e-05/0.3586, allocations: 37.7 kB / 347.3 MB, free: 5.906 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.3588, allocations: 207.5 kB / 347.5 MB, free: 5.703 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8e-05/0.3589, allocations: 47.62 kB / 347.5 MB, free: 5.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.866e-05/0.3589, allocations: 4 kB / 347.5 MB, free: 5.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3591, allocations: 330.8 kB / 347.9 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.3593, allocations: 72.83 kB / 347.9 MB, free: 5.246 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.3598, allocations: 354 kB / 348.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/0.3602, allocations: 135.7 kB / 348.4 MB, free: 4.637 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/0.3603, allocations: 0 / 348.4 MB, free: 4.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009983/0.3613, allocations: 393.3 kB / 348.8 MB, free: 4.246 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.3613, allocations: 15.98 kB / 348.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3614, allocations: 8 kB / 348.8 MB, free: 4.223 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/0.3614, allocations: 12 kB / 348.8 MB, free: 4.211 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/0.3619, allocations: 87.78 kB / 348.9 MB, free: 4.125 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.498e-05/0.3619, allocations: 19.92 kB / 348.9 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.3623, allocations: 40.19 kB / 349 MB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.01e-05/0.3624, allocations: 28 kB / 349 MB, free: 4.039 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 51 ($whenCondition1,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,UnitDelay1.u,$CLKPRE.UnitDelay1.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample3.y,shiftSample1.u,subSample1.u,assignClock2.y[3],assignClock2.y[2],assignClock2.y[1],assignClock2.u[3],assignClock2.u[2],assignClock2.u[1],integerConstant3[3].y,integerConstant3[2].y,integerConstant3[1].y,sample1.y[3],sample1.y[2],sample1.y[1],sample2.y,hold1.u,hold1.y,assignClock1.y,assignClock1.u,fractionalDelay.first) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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.0003924/0.3628, allocations: 225.8 kB / 349.2 MB, free: 3.812 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006979/0.3635, allocations: 300.8 kB / 349.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000147/0.3636, allocations: 55.41 kB / 349.6 MB, free: 3.457 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.093e-05/0.3637, allocations: 8 kB / 349.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3637, allocations: 320 / 349.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.3637, allocations: 7.984 kB / 349.6 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005181/0.3643, allocations: 341.1 kB / 349.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.3643, allocations: 3.953 kB / 349.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.3647, allocations: 67.91 kB / 350 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.301e-05/0.3648, allocations: 4 kB / 350 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.3648, allocations: 12 kB / 350 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.39e-05/0.3648, allocations: 7.984 kB / 350 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.3649, allocations: 7.938 kB / 350 MB, free: 2.957 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.366, allocations: 0.5536 MB / 350.6 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.3662, allocations: 132.5 kB / 350.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.763e-05/0.3663, allocations: 12 kB / 350.7 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002062/0.3665, allocations: 15.95 kB / 350.7 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.517e-05/0.3666, allocations: 11.98 kB / 350.7 MB, free: 2.105 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/0.3667, allocations: 23.98 kB / 350.8 MB, free: 2.082 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000518/0.3672, allocations: 303.1 kB / 351.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3672, allocations: 0 / 351.1 MB, free: 1.789 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006305/0.3679, allocations: 76 kB / 351.1 MB, free: 1.715 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,ClockedSignalToSquare.y2,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,backSample1.y,shiftSample1.y,backSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,assignClock1.u,assignClock1.y,hold1.u,sample2.y,sample1.y[1],sample1.y[2],sample1.y[3],integerConstant3[1].y,integerConstant3[2].y,integerConstant3[3].y,assignClock2.u[1],assignClock2.u[2],assignClock2.u[3],assignClock2.y[1],assignClock2.y[2],assignClock2.y[3],subSample1.u,shiftSample1.u,sample3.y,upSample1.u,upSample1.dummy,upSample1.b,UnitDelay1.u,UnitDelay1.y,fractionalDelay.u,fractionalDelay.u_buffer[1]) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 1 * 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.001288/0.3692, allocations: 426.9 kB / 351.6 MB, free: 1.344 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000949/0.3702, allocations: 296.9 kB / 351.8 MB, free: 1.055 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.3702, allocations: 4.688 kB / 351.9 MB, free: 1.051 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.3703, allocations: 40.05 kB / 351.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.3715, allocations: 225.1 kB / 352.1 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.3734, allocations: 0.8268 MB / 352.9 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.3739, allocations: 0.8359 MB / 353.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.3741, allocations: 39.42 kB / 353.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of SimCode: time 9.92e-07/0.3741, allocations: 4 kB / 353.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of Templates: time 0.01378/0.3879, allocations: 5.161 MB / 359 MB, free: 9.824 MB / 298.7 MB