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.381/2.381, allocations: 218.4 MB / 234.2 MB, free: 4.621 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.548e-05, allocations: 4 kB / 287.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3301, allocations: 50.36 MB / 338 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002356/0.3325, allocations: 1.29 MB / 339.3 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.3337, allocations: 484 kB / 339.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.402e-05/0.3339, allocations: 4 kB / 339.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.273e-05/0.3339, allocations: 3.938 kB / 339.7 MB, free: 14.06 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.334, allocations: 7.984 kB / 339.7 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003512/0.3344, allocations: 51.75 kB / 339.8 MB, free: 14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 9.209e-05/0.3345, allocations: 27.91 kB / 339.8 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.009e-05/0.3346, allocations: 11.98 kB / 339.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.004e-05/0.3347, allocations: 11.98 kB / 339.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.082e-05/0.3348, allocations: 19.92 kB / 339.9 MB, free: 13.93 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.066e-05/0.3348, allocations: 11.94 kB / 339.9 MB, free: 13.92 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.788e-05/0.3348, allocations: 3.984 kB / 339.9 MB, free: 13.92 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.15e-05/0.3349, allocations: 7.984 kB / 339.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.034e-05/0.3349, allocations: 4 kB / 339.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.124e-05/0.335, allocations: 35.94 kB / 339.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.335, allocations: 0 / 339.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.335, allocations: 0 / 339.9 MB, free: 13.87 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.3351, allocations: 0 / 339.9 MB, free: 13.87 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005307/0.3356, allocations: 369 kB / 340.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3357, allocations: 12.03 kB / 340.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.716e-05/0.3357, allocations: 11.81 kB / 340.3 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002371/0.336, allocations: 186.9 kB / 340.5 MB, free: 13.22 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.336, allocations: 8 kB / 340.5 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.336, allocations: 4 kB / 340.5 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003866/0.3364, allocations: 141.7 kB / 340.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3365, allocations: 0 / 340.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.3365, allocations: 0 / 340.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.3365, allocations: 0 / 340.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001452/0.3367, allocations: 27.92 kB / 340.7 MB, free: 13.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004165/0.3371, allocations: 286.6 kB / 341 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002802/0.3374, allocations: 156.8 kB / 341.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.3374, allocations: 8.125 kB / 341.1 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3375, allocations: 30.56 kB / 341.1 MB, free: 12.44 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.914e-06/0.3375, allocations: 0 / 341.1 MB, free: 12.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004225/0.3379, allocations: 105.8 kB / 341.2 MB, free: 12.33 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.338, allocations: 110.8 kB / 341.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3382, allocations: 127.3 kB / 341.5 MB, free: 12.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.3382, allocations: 33.7 kB / 341.5 MB, free: 12.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.135e-05/0.3383, allocations: 154.7 kB / 341.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.3383, allocations: 11.89 kB / 341.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.3383, allocations: 0 / 341.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3385, allocations: 314.8 kB / 342 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.282e-05/0.3386, allocations: 20.02 kB / 342 MB, free: 11.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.3387, allocations: 48.27 kB / 342 MB, free: 11.46 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.3388, allocations: 24 kB / 342.1 MB, free: 11.44 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3388, allocations: 0 / 342.1 MB, free: 11.44 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002825/0.3391, allocations: 85.55 kB / 342.2 MB, free: 11.35 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3391, allocations: 7.984 kB / 342.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.3392, allocations: 4 kB / 342.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.3392, allocations: 0 / 342.2 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3393, allocations: 12.12 kB / 342.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.3393, allocations: 7.938 kB / 342.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.907e-05/0.3394, allocations: 11.89 kB / 342.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.3395, allocations: 11.95 kB / 342.2 MB, free: 11.29 MB / 282.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 0.0001173/0.3396, allocations: 113.8 kB / 342.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.3397, allocations: 53.83 kB / 342.4 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.3398, allocations: 8.297 kB / 342.4 MB, free: 11.1 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.3398, allocations: 7.984 kB / 342.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3398, allocations: 0 / 342.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3398, allocations: 7.984 kB / 342.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.3401, allocations: 177.5 kB / 342.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3401, allocations: 0 / 342.6 MB, free: 10.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.3402, allocations: 27.86 kB / 342.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3402, allocations: 0 / 342.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3403, allocations: 0 / 342.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.3403, allocations: 4 kB / 342.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3403, allocations: 0 / 342.6 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003203/0.3406, allocations: 220.5 kB / 342.8 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.3407, allocations: 89 kB / 342.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.3408, allocations: 11.98 kB / 342.9 MB, free: 10.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.3409, allocations: 11.94 kB / 342.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.3409, allocations: 3.953 kB / 342.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.3409, allocations: 4 kB / 342.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.3411, allocations: 110.5 kB / 343 MB, free: 10.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3411, allocations: 3.938 kB / 343 MB, free: 10.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002994/0.3414, allocations: 12 kB / 343.1 MB, free: 10.32 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: 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.0001316/0.3415, allocations: 95.25 kB / 343.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002454/0.3418, allocations: 51.91 kB / 343.2 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3418, allocations: 0 / 343.2 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.372e-05/0.3419, allocations: 8 kB / 343.2 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.3423, allocations: 39.81 kB / 343.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.3428, allocations: 233.1 kB / 343.5 MB, free: 9.852 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.3431, allocations: 0.6965 MB / 344.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.922e-05/0.3432, allocations: 11.44 kB / 344.2 MB, free: 9.121 MB / 282.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3432, allocations: 0 / 344.2 MB, free: 9.121 MB / 282.7 MB Notification: Performance of Templates: time 0.00307/0.3463, allocations: 0.8498 MB / 345 MB, free: 8.273 MB / 282.7 MB