Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.773e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 50.41 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3986/0.5033, allocations: 77.46 MB / 420.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.5036, allocations: 81.77 kB / 420.6 MB, free: 0.707 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00617/0.5098, allocations: 1.558 MB / 422.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.369e-06/0.5098, allocations: 0 / 422.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.5099, allocations: 11.94 kB / 422.2 MB, free: 15.34 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.0004445/0.5103, allocations: 358.1 kB / 422.5 MB, free: 14.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.5104, allocations: 8.031 kB / 422.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.5104, allocations: 11.86 kB / 422.6 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.5107, allocations: 186.9 kB / 422.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.5107, allocations: 3.938 kB / 422.7 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.5107, allocations: 7.984 kB / 422.8 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.511, allocations: 124.7 kB / 422.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.5111, allocations: 3.938 kB / 422.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.5111, allocations: 7.953 kB / 422.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.443e-06/0.5111, allocations: 0 / 422.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.772e-05/0.5112, allocations: 15.92 kB / 422.9 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005129/0.5117, allocations: 357.4 kB / 423.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.512, allocations: 153.7 kB / 423.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.816e-05/0.5121, allocations: 38.59 kB / 423.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.625e-05/0.5121, allocations: 7.891 kB / 423.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.5121, allocations: 34.56 kB / 423.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.383e-06/0.5122, allocations: 0 / 423.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002598/0.5124, allocations: 64.91 kB / 423.5 MB, free: 13.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.5125, allocations: 110.9 kB / 423.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.5127, allocations: 135.8 kB / 423.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.5127, allocations: 25.7 kB / 423.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.5128, allocations: 88.14 kB / 423.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.5129, allocations: 15.59 kB / 423.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.5129, allocations: 0 / 423.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.513, allocations: 318.2 kB / 424.2 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.82e-05/0.5131, allocations: 15.94 kB / 424.2 MB, free: 13.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.995e-05/0.5132, allocations: 35.86 kB / 424.3 MB, free: 13.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.057e-05/0.5132, allocations: 19.73 kB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.585e-06/0.5132, allocations: 0 / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001724/0.5134, allocations: 81.2 kB / 424.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5135, allocations: 4 kB / 424.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.918e-06/0.5135, allocations: 0 / 424.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.5135, allocations: 4 kB / 424.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.5136, allocations: 11.98 kB / 424.4 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.5137, allocations: 7.938 kB / 424.4 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.256e-05/0.5137, allocations: 4 kB / 424.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.5138, allocations: 0 / 424.4 MB, free: 12.93 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.097e-05/0.5139, allocations: 117 kB / 424.5 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.514, allocations: 53.38 kB / 424.6 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.679e-05/0.5141, allocations: 12.03 kB / 424.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.5141, allocations: 7.984 kB / 424.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.5141, allocations: 0 / 424.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.249e-06/0.5141, allocations: 0 / 424.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.5145, allocations: 180.9 kB / 424.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.48e-06/0.5145, allocations: 0 / 424.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.628e-05/0.5146, allocations: 15.94 kB / 424.8 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.156e-06/0.5146, allocations: 4 kB / 424.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.5146, allocations: 3.953 kB / 424.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.002e-06/0.5146, allocations: 3.984 kB / 424.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.239e-06/0.5146, allocations: 8 kB / 424.8 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002738/0.5149, allocations: 270.5 kB / 425.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.581e-05/0.515, allocations: 89 kB / 425.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.5151, allocations: 7.812 kB / 425.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.5152, allocations: 4 kB / 425.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.5153, allocations: 3.984 kB / 425.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.5153, allocations: 4 kB / 425.2 MB, free: 12.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001025/0.5154, allocations: 109.6 kB / 425.3 MB, free: 12 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.5154, allocations: 0 / 425.3 MB, free: 12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.5158, allocations: 11.88 kB / 425.3 MB, free: 11.99 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.0001406/0.516, allocations: 103.2 kB / 425.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.5161, allocations: 43.73 kB / 425.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.009e-06/0.5162, allocations: 0 / 425.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.443e-05/0.5162, allocations: 4 kB / 425.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.5166, allocations: 27.61 kB / 425.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.517, allocations: 126.9 kB / 425.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.5174, allocations: 0.7042 MB / 426.3 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.473e-05/0.5174, allocations: 4.172 kB / 426.3 MB, free: 10.94 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.5175, allocations: 11.44 kB / 426.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.635e-06/0.5175, allocations: 0 / 426.3 MB, free: 10.93 MB / 346.7 MB Notification: Performance of Templates: time 0.003437/0.5209, allocations: 0.5521 MB / 426.9 MB, free: 10.39 MB / 346.7 MB