Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.031/2.031, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.453e-05/4.479e-05, allocations: 4 kB / 284.3 MB, free: 8.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1274, allocations: 50.37 MB / 334.7 MB, free: 5.73 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.4767, allocations: 78.68 MB / 413.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.477, allocations: 77.14 kB / 413.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005923/0.483, allocations: 1.5 MB / 415 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.786e-06/0.483, allocations: 4 kB / 415 MB, free: 14.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.483, allocations: 3.938 kB / 415 MB, free: 14.26 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004324/0.4835, allocations: 357.4 kB / 415.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.4835, allocations: 8.031 kB / 415.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.4836, allocations: 15.81 kB / 415.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002345/0.4838, allocations: 186.8 kB / 415.5 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.4839, allocations: 7.688 kB / 415.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.4839, allocations: 3.984 kB / 415.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003217/0.4842, allocations: 132.5 kB / 415.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.841e-06/0.4842, allocations: 0 / 415.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.4843, allocations: 0 / 415.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.83e-06/0.4843, allocations: 0 / 415.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.532e-05/0.4844, allocations: 14.88 kB / 415.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.4849, allocations: 363.4 kB / 416 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002319/0.4851, allocations: 156.6 kB / 416.2 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.226e-05/0.4852, allocations: 33.77 kB / 416.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.4852, allocations: 0 / 416.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.4853, allocations: 34.56 kB / 416.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.026e-06/0.4853, allocations: 0 / 416.3 MB, free: 12.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002481/0.4856, allocations: 76.11 kB / 416.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.4857, allocations: 106.8 kB / 416.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.4858, allocations: 126.6 kB / 416.6 MB, free: 12.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.4858, allocations: 25.7 kB / 416.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.4859, allocations: 87.52 kB / 416.7 MB, free: 12.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.486, allocations: 15.14 kB / 416.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.486, allocations: 0 / 416.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4861, allocations: 322.2 kB / 417 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.31e-05/0.4862, allocations: 11.25 kB / 417 MB, free: 12.03 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.075e-05/0.4863, allocations: 39.91 kB / 417 MB, free: 11.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.788e-05/0.4863, allocations: 11.06 kB / 417.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.66e-06/0.4863, allocations: 0 / 417.1 MB, free: 11.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00017/0.4865, allocations: 84.14 kB / 417.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.4866, allocations: 4 kB / 417.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4866, allocations: 7.938 kB / 417.1 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.4866, allocations: 3.938 kB / 417.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.695e-05/0.4867, allocations: 11.38 kB / 417.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.4867, allocations: 7.984 kB / 417.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/0.4868, allocations: 7.938 kB / 417.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.42e-05/0.4868, allocations: 4 kB / 417.2 MB, free: 11.85 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.866e-05/0.4869, allocations: 112.2 kB / 417.3 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.4871, allocations: 57.22 kB / 417.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.4872, allocations: 12.11 kB / 417.4 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.709e-06/0.4872, allocations: 3.984 kB / 417.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.503e-06/0.4872, allocations: 0 / 417.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.382e-06/0.4872, allocations: 4 kB / 417.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.4875, allocations: 174.9 kB / 417.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.489e-06/0.4876, allocations: 4 kB / 417.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.531e-05/0.4877, allocations: 15.98 kB / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.4877, allocations: 4 kB / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.011e-05/0.4877, allocations: 0 / 417.6 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.4877, allocations: 4 kB / 417.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.012e-06/0.4877, allocations: 0 / 417.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.488, allocations: 272.8 kB / 417.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.372e-05/0.4881, allocations: 96.94 kB / 417.9 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.4882, allocations: 3.984 kB / 417.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.4883, allocations: 7.625 kB / 417.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-05/0.4884, allocations: 3.953 kB / 417.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.4884, allocations: 4 kB / 417.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.4885, allocations: 105.6 kB / 418.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.53e-07/0.4885, allocations: 0 / 418.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000375/0.4889, allocations: 10.75 kB / 418.1 MB, free: 10.91 MB / 346.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: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001298/0.4891, allocations: 103.1 kB / 418.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.4892, allocations: 38.48 kB / 418.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.829e-06/0.4892, allocations: 0 / 418.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.195e-05/0.4893, allocations: 4 kB / 418.2 MB, free: 10.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.4896, allocations: 30.25 kB / 418.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.49, allocations: 130.2 kB / 418.4 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.4904, allocations: 0.7043 MB / 419.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.924e-05/0.4905, allocations: 192 / 419.1 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.4905, allocations: 14.25 kB / 419.1 MB, free: 9.852 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4905, allocations: 0 / 419.1 MB, free: 9.852 MB / 346.7 MB Notification: Performance of Templates: time 0.003855/0.4944, allocations: 0.5645 MB / 419.6 MB, free: 9.297 MB / 346.7 MB