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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadModel(Modelica_Synchronous): time 2.084/2.084, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.72e-05/3.739e-05, allocations: 4 kB / 284.3 MB, free: 8.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 50.37 MB / 334.7 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.5338, allocations: 78.73 MB / 413.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.5341, allocations: 82.12 kB / 413.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00575/0.5398, allocations: 1.495 MB / 415 MB, free: 14.15 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.988e-06/0.5399, allocations: 4 kB / 415 MB, free: 14.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.5399, allocations: 7.875 kB / 415 MB, free: 14.14 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.0004333/0.5404, allocations: 358.2 kB / 415.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.5404, allocations: 8.031 kB / 415.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.672e-05/0.5405, allocations: 15.81 kB / 415.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.5407, allocations: 194.6 kB / 415.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.5408, allocations: 4 kB / 415.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.5408, allocations: 3.875 kB / 415.6 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.5411, allocations: 125.1 kB / 415.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.269e-06/0.5411, allocations: 0 / 415.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.5411, allocations: 3.812 kB / 415.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.5412, allocations: 0 / 415.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.228e-05/0.5412, allocations: 19.8 kB / 415.7 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005144/0.5418, allocations: 361.4 kB / 416.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.542, allocations: 148.7 kB / 416.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.72e-05/0.5421, allocations: 38.34 kB / 416.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.5421, allocations: 4 kB / 416.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.5422, allocations: 30.56 kB / 416.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.467e-06/0.5422, allocations: 0 / 416.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002482/0.5425, allocations: 73.34 kB / 416.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/0.5426, allocations: 110.7 kB / 416.5 MB, free: 12.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001563/0.5427, allocations: 126.6 kB / 416.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.5428, allocations: 33.58 kB / 416.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.5429, allocations: 150.8 kB / 416.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.5429, allocations: 11.66 kB / 416.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-06/0.5429, allocations: 0 / 416.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5431, allocations: 314.8 kB / 417.1 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.564e-05/0.5431, allocations: 15.88 kB / 417.1 MB, free: 11.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.375e-05/0.5432, allocations: 43.84 kB / 417.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.157e-05/0.5433, allocations: 11.94 kB / 417.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.236e-06/0.5433, allocations: 0 / 417.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.00017/0.5435, allocations: 77.23 kB / 417.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.5435, allocations: 11.94 kB / 417.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.48e-06/0.5435, allocations: 0 / 417.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.5435, allocations: 0 / 417.2 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.5436, allocations: 15.98 kB / 417.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.699e-06/0.5437, allocations: 0 / 417.3 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.663e-05/0.5438, allocations: 11.88 kB / 417.3 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.5438, allocations: 4 kB / 417.3 MB, free: 11.66 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 9.201e-05/0.5439, allocations: 113 kB / 417.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.5441, allocations: 57.47 kB / 417.4 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.94e-05/0.5441, allocations: 15.78 kB / 417.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.152e-06/0.5441, allocations: 0 / 417.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.86e-06/0.5442, allocations: 4 kB / 417.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.624e-06/0.5442, allocations: 144 / 417.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.5445, allocations: 185 kB / 417.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.444e-06/0.5445, allocations: 3.984 kB / 417.6 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.5446, allocations: 11.98 kB / 417.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.442e-06/0.5447, allocations: 4 kB / 417.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.5447, allocations: 4 kB / 417.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.239e-06/0.5447, allocations: 0 / 417.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.459e-06/0.5447, allocations: 0 / 417.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.545, allocations: 274.1 kB / 417.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.617e-05/0.5451, allocations: 100.9 kB / 418 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.5451, allocations: 0 / 418 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.5453, allocations: 4 kB / 418 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.5454, allocations: 3.953 kB / 418 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.978e-06/0.5454, allocations: 4 kB / 418 MB, free: 10.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001108/0.5455, allocations: 115.1 kB / 418.2 MB, free: 10.72 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.09e-07/0.5455, allocations: 0 / 418.2 MB, free: 10.72 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003813/0.5459, allocations: 8 kB / 418.2 MB, free: 10.71 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.0001376/0.5461, allocations: 103.2 kB / 418.3 MB, free: 10.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.5462, allocations: 31.62 kB / 418.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.191e-06/0.5462, allocations: 0 / 418.3 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.483e-05/0.5463, allocations: 11.69 kB / 418.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.5466, allocations: 23.69 kB / 418.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003786/0.547, allocations: 157.4 kB / 418.5 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.5474, allocations: 0.6965 MB / 419.2 MB, free: 9.648 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.044e-05/0.5475, allocations: 11.44 kB / 419.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of SimCode: time 1.69e-06/0.5475, allocations: 0 / 419.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of Templates: time 0.002621/0.5501, allocations: 0.8429 MB / 420 MB, free: 8.801 MB / 346.7 MB