Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadModel(Modelica): time 2.175/2.175, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.209e-05/3.207e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1366, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003504/0.1401, allocations: 1.296 MB / 346.3 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.1416, allocations: 435.2 kB / 346.7 MB, free: 7.215 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1418, allocations: 0 / 346.7 MB, free: 7.215 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.95e-05/0.1419, allocations: 7.922 kB / 346.7 MB, free: 7.207 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.142, allocations: 11.98 kB / 346.7 MB, free: 7.195 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.1425, allocations: 47.81 kB / 346.8 MB, free: 7.148 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.1426, allocations: 23.97 kB / 346.8 MB, free: 7.125 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1428, allocations: 11.98 kB / 346.8 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.1429, allocations: 11.94 kB / 346.8 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.006e-05/0.143, allocations: 15.92 kB / 346.8 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.178e-05/0.1431, allocations: 0 / 346.8 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.1431, allocations: 4 kB / 346.8 MB, free: 7.082 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.791e-05/0.1432, allocations: 15.92 kB / 346.9 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.1432, allocations: 8 kB / 346.9 MB, free: 7.059 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.1434, allocations: 39.91 kB / 346.9 MB, free: 7.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1434, allocations: 4 kB / 346.9 MB, free: 7.016 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.1434, allocations: 0 / 346.9 MB, free: 7.016 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1434, allocations: 0 / 346.9 MB, free: 7.016 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.0007027/0.1441, allocations: 355.5 kB / 347.3 MB, free: 6.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.1442, allocations: 12.03 kB / 347.3 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.27e-05/0.1443, allocations: 11.86 kB / 347.3 MB, free: 6.598 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.1446, allocations: 201.3 kB / 347.5 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.1447, allocations: 12 kB / 347.5 MB, free: 6.352 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.1447, allocations: 4 kB / 347.5 MB, free: 6.348 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005379/0.1453, allocations: 125.9 kB / 347.6 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1453, allocations: 4 kB / 347.6 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.1453, allocations: 7.953 kB / 347.6 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.1454, allocations: 0 / 347.6 MB, free: 6.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.1456, allocations: 27.92 kB / 347.6 MB, free: 6.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.1462, allocations: 282.6 kB / 347.9 MB, free: 5.832 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003859/0.1466, allocations: 156.9 kB / 348.1 MB, free: 5.633 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.1467, allocations: 0 / 348.1 MB, free: 5.633 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.047e-05/0.1467, allocations: 46.58 kB / 348.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 2.224e-06/0.1467, allocations: 0 / 348.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006082/0.1474, allocations: 97.5 kB / 348.2 MB, free: 5.477 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.1475, allocations: 110.8 kB / 348.3 MB, free: 5.344 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.1477, allocations: 129.5 kB / 348.5 MB, free: 5.207 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1478, allocations: 25.7 kB / 348.5 MB, free: 5.176 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.653e-05/0.1479, allocations: 158.8 kB / 348.6 MB, free: 5.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.541e-05/0.1479, allocations: 11.89 kB / 348.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/0.148, allocations: 0 / 348.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1481, allocations: 314.8 kB / 349 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.1483, allocations: 19.92 kB / 349 MB, free: 4.672 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.1484, allocations: 48.28 kB / 349 MB, free: 4.609 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.1486, allocations: 16 kB / 349 MB, free: 4.594 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1486, allocations: 0 / 349 MB, free: 4.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003943/0.149, allocations: 93.55 kB / 349.1 MB, free: 4.496 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.1491, allocations: 7.953 kB / 349.1 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.1491, allocations: 7.938 kB / 349.1 MB, free: 4.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.1491, allocations: 3.984 kB / 349.1 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.1493, allocations: 8 kB / 349.2 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1494, allocations: 4.156 kB / 349.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1495, allocations: 7.938 kB / 349.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.1495, allocations: 12.09 kB / 349.2 MB, free: 4.445 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.0001705/0.1497, allocations: 126 kB / 349.3 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000166/0.1499, allocations: 53.58 kB / 349.4 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.057e-05/0.15, allocations: 20.14 kB / 349.4 MB, free: 4.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/0.15, allocations: 4 kB / 349.4 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.15, allocations: 0 / 349.4 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1501, allocations: 0 / 349.4 MB, free: 4.227 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003425/0.1504, allocations: 177.5 kB / 349.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1504, allocations: 0 / 349.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.1506, allocations: 19.98 kB / 349.6 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-06/0.1506, allocations: 4 kB / 349.6 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1507, allocations: 4 kB / 349.6 MB, free: 3.977 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.987e-06/0.1507, allocations: 7.891 kB / 349.6 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.1507, allocations: 4 kB / 349.6 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.1512, allocations: 208.6 kB / 349.8 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.1513, allocations: 92.95 kB / 349.9 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.1514, allocations: 4 kB / 349.9 MB, free: 3.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.1516, allocations: 11.98 kB / 349.9 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.504e-05/0.1516, allocations: 0 / 349.9 MB, free: 3.602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.1516, allocations: 4 kB / 349.9 MB, free: 3.598 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001092/0.1518, allocations: 113.8 kB / 350 MB, free: 3.488 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1518, allocations: 0 / 350 MB, free: 3.488 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.1521, allocations: 8 kB / 350 MB, free: 3.48 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.0001511/0.1523, allocations: 107.2 kB / 350.1 MB, free: 3.367 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002618/0.1525, allocations: 47.91 kB / 350.2 MB, free: 3.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.1525, allocations: 4.25 kB / 350.2 MB, free: 3.316 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.575e-05/0.1526, allocations: 8 kB / 350.2 MB, free: 3.309 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.153, allocations: 27.97 kB / 350.2 MB, free: 3.281 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005339/0.1535, allocations: 248.6 kB / 350.5 MB, free: 2.992 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1539, allocations: 0.7004 MB / 351.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.021e-05/0.1539, allocations: 11.44 kB / 351.2 MB, free: 2.254 MB / 282.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1539, allocations: 0 / 351.2 MB, free: 2.254 MB / 282.7 MB Notification: Performance of Templates: time 0.003193/0.1572, allocations: 0.8378 MB / 352 MB, free: 1.418 MB / 282.7 MB