Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.143e-05/4.152e-05, allocations: 9.562 kB / 292.7 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09297, allocations: 50.42 MB / 343.1 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.5497, allocations: 77.46 MB / 420.5 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.55, allocations: 78.45 kB / 420.6 MB, free: 0.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006474/0.5565, allocations: 1.62 MB / 422.2 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.292e-06/0.5565, allocations: 4 kB / 422.2 MB, free: 15.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5566, allocations: 0 / 422.2 MB, free: 15.25 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004694/0.5571, allocations: 357.1 kB / 422.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.5571, allocations: 12.03 kB / 422.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.86e-05/0.5572, allocations: 11.86 kB / 422.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002599/0.5575, allocations: 194.8 kB / 422.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.5575, allocations: 0 / 422.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.5575, allocations: 7.5 kB / 422.8 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.5578, allocations: 127.7 kB / 422.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.5578, allocations: 4 kB / 422.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.5579, allocations: 0 / 422.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.982e-06/0.5579, allocations: 3.953 kB / 422.9 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.486e-05/0.558, allocations: 19.44 kB / 423 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005596/0.5585, allocations: 367.1 kB / 423.3 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.5587, allocations: 89.77 kB / 423.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.408e-05/0.5588, allocations: 38.31 kB / 423.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.5588, allocations: 4 kB / 423.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.5589, allocations: 41.75 kB / 423.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.933e-06/0.5589, allocations: 0 / 423.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002888/0.5592, allocations: 75.47 kB / 423.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.555e-05/0.5593, allocations: 139.5 kB / 423.7 MB, free: 13.6 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.5595, allocations: 125.5 kB / 423.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.5595, allocations: 33.83 kB / 423.9 MB, free: 13.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.5596, allocations: 90.38 kB / 423.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.5596, allocations: 14.84 kB / 424 MB, free: 13.35 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.939e-06/0.5597, allocations: 0 / 424 MB, free: 13.35 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.5598, allocations: 322.3 kB / 424.3 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.182e-05/0.5599, allocations: 7.375 kB / 424.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.772e-05/0.5599, allocations: 39.48 kB / 424.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.595e-05/0.56, allocations: 15.38 kB / 424.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.56, allocations: 0 / 424.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001635/0.5602, allocations: 68.22 kB / 424.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.5602, allocations: 12.14 kB / 424.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.926e-06/0.5602, allocations: 4 kB / 424.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.5603, allocations: 3.953 kB / 424.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.5604, allocations: 15.94 kB / 424.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.5604, allocations: 4 kB / 424.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.622e-05/0.5605, allocations: 11.92 kB / 424.5 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.5606, allocations: 3.984 kB / 424.5 MB, free: 12.84 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.855e-05/0.5607, allocations: 108.9 kB / 424.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.5609, allocations: 56.92 kB / 424.6 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.5609, allocations: 18.47 kB / 424.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.933e-06/0.5609, allocations: 0 / 424.6 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.561, allocations: 7.953 kB / 424.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.534e-06/0.561, allocations: 0 / 424.6 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.5614, allocations: 176.6 kB / 424.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.678e-06/0.5614, allocations: 0 / 424.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.5615, allocations: 15.98 kB / 424.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.939e-06/0.5615, allocations: 4 kB / 424.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.5616, allocations: 0 / 424.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.502e-06/0.5616, allocations: 4.062 kB / 424.8 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.069e-06/0.5616, allocations: 4 kB / 424.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.5619, allocations: 296.7 kB / 425.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.562, allocations: 96.95 kB / 425.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.5621, allocations: 7.859 kB / 425.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.5622, allocations: 4 kB / 425.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.852e-05/0.5623, allocations: 4 kB / 425.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-06/0.5623, allocations: 0 / 425.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001206/0.5624, allocations: 109.5 kB / 425.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.333e-06/0.5624, allocations: 0 / 425.4 MB, free: 11.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003831/0.5628, allocations: 15.56 kB / 425.4 MB, free: 11.87 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * 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.0001381/0.563, allocations: 111.2 kB / 425.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.5631, allocations: 31.31 kB / 425.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.002e-06/0.5632, allocations: 0 / 425.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.621e-05/0.5632, allocations: 7.938 kB / 425.5 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.5636, allocations: 27.08 kB / 425.5 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003776/0.564, allocations: 135.2 kB / 425.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.5644, allocations: 0.7 MB / 426.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.732e-05/0.5645, allocations: 8 kB / 426.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.5645, allocations: 15.42 kB / 426.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.438e-06/0.5645, allocations: 0 / 426.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of Templates: time 0.003458/0.568, allocations: 0.6189 MB / 427 MB, free: 10.19 MB / 346.7 MB "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time