Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadModel(Modelica): time 2.213/2.213, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.608e-05/3.633e-05, allocations: 8 kB / 292.2 MB, free: 8.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1491, allocations: 50.41 MB / 342.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3625/0.5116, allocations: 77.45 MB / 420 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.5119, allocations: 78.39 kB / 420.1 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006097/0.518, allocations: 1.567 MB / 421.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.998e-06/0.518, allocations: 0 / 421.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.5181, allocations: 7.875 kB / 421.7 MB, free: 15.29 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.0004349/0.5185, allocations: 357.5 kB / 422 MB, free: 14.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.5186, allocations: 12.03 kB / 422 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.5186, allocations: 11.86 kB / 422 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002307/0.5189, allocations: 186.8 kB / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.5189, allocations: 4 kB / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.5189, allocations: 0 / 422.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.5192, allocations: 128.7 kB / 422.4 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.403e-06/0.5193, allocations: 3.938 kB / 422.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.5193, allocations: 3.953 kB / 422.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.117e-06/0.5193, allocations: 3.938 kB / 422.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.563e-05/0.5194, allocations: 26.03 kB / 422.4 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005066/0.5199, allocations: 355.3 kB / 422.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.5201, allocations: 152 kB / 422.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.707e-05/0.5202, allocations: 37.72 kB / 422.9 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.5203, allocations: 7.953 kB / 422.9 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.5203, allocations: 33.38 kB / 423 MB, free: 13.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.378e-06/0.5203, allocations: 0 / 423 MB, free: 13.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002542/0.5206, allocations: 68.47 kB / 423 MB, free: 13.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.1e-05/0.5207, allocations: 113.9 kB / 423.1 MB, free: 13.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.5209, allocations: 130.2 kB / 423.3 MB, free: 13.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.5209, allocations: 25.7 kB / 423.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.939e-05/0.521, allocations: 87.64 kB / 423.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.521, allocations: 11.16 kB / 423.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-06/0.521, allocations: 0 / 423.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.5212, allocations: 322.4 kB / 423.7 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.404e-05/0.5213, allocations: 7.125 kB / 423.7 MB, free: 13.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.181e-05/0.5213, allocations: 40.05 kB / 423.7 MB, free: 13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.048e-05/0.5214, allocations: 19.3 kB / 423.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.537e-06/0.5214, allocations: 4 kB / 423.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001876/0.5216, allocations: 72.33 kB / 423.8 MB, free: 12.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5216, allocations: 11.94 kB / 423.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.5217, allocations: 0 / 423.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.5217, allocations: 0 / 423.9 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.5218, allocations: 17.92 kB / 423.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.568e-06/0.5218, allocations: 3.938 kB / 423.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.571e-05/0.5219, allocations: 4 kB / 423.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.5219, allocations: 11.98 kB / 423.9 MB, free: 12.87 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.604e-05/0.522, allocations: 104.4 kB / 424 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.5222, allocations: 56.81 kB / 424 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.741e-05/0.5223, allocations: 18.7 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.721e-06/0.5223, allocations: 0 / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.482e-06/0.5223, allocations: 0 / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.5223, allocations: 4 kB / 424.1 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/0.5226, allocations: 178.4 kB / 424.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.561e-06/0.5226, allocations: 0 / 424.2 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.346e-05/0.5227, allocations: 11.94 kB / 424.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.798e-06/0.5228, allocations: 0 / 424.3 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.5228, allocations: 11.89 kB / 424.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.041e-06/0.5228, allocations: 7.984 kB / 424.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.21e-06/0.5228, allocations: 0 / 424.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.5231, allocations: 267.1 kB / 424.5 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.646e-05/0.5232, allocations: 96.98 kB / 424.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.5232, allocations: 7.25 kB / 424.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.5234, allocations: 4 kB / 424.6 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.5235, allocations: 7.922 kB / 424.6 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.5235, allocations: 4 kB / 424.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001038/0.5236, allocations: 108.4 kB / 424.8 MB, free: 11.94 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5236, allocations: 4 kB / 424.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003767/0.524, allocations: 4 kB / 424.8 MB, free: 11.93 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.0001412/0.5242, allocations: 110.6 kB / 424.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001334/0.5243, allocations: 35.48 kB / 424.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.692e-06/0.5243, allocations: 0 / 424.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.112e-05/0.5244, allocations: 4 kB / 424.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.5247, allocations: 30.17 kB / 424.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.5251, allocations: 124.7 kB / 425.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.5255, allocations: 0.7004 MB / 425.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.487e-05/0.5256, allocations: 8.172 kB / 425.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.5256, allocations: 11.38 kB / 425.8 MB, free: 10.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.55e-06/0.5256, allocations: 4 kB / 425.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of Templates: time 0.00336/0.529, allocations: 0.5546 MB / 426.3 MB, free: 10.33 MB / 346.7 MB