Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.766e-05/3.773e-05, allocations: 4 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1184, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4291/0.5475, allocations: 77.53 MB / 420.2 MB, free: 264 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5479, allocations: 75.39 kB / 420.2 MB, free: 224 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006942/0.5549, allocations: 1.563 MB / 421.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.664e-06/0.5549, allocations: 0 / 421.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.555, allocations: 4 kB / 421.8 MB, free: 14.85 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.0005209/0.5555, allocations: 361.8 kB / 422.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.5556, allocations: 8.031 kB / 422.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.226e-05/0.5556, allocations: 38.45 kB / 422.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.5557, allocations: 15.91 kB / 422.2 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.5559, allocations: 182.9 kB / 422.4 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.556, allocations: 7.938 kB / 422.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.556, allocations: 3.938 kB / 422.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.5563, allocations: 124.7 kB / 422.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.5564, allocations: 3.953 kB / 422.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.5564, allocations: 0 / 422.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.5564, allocations: 0 / 422.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.501e-05/0.5565, allocations: 11.94 kB / 422.6 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.5571, allocations: 368.9 kB / 422.9 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.5573, allocations: 153.9 kB / 423.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.326e-05/0.5574, allocations: 42.48 kB / 423.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.5575, allocations: 4 kB / 423.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.5575, allocations: 34.5 kB / 423.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 3.096e-06/0.5575, allocations: 0 / 423.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002905/0.5578, allocations: 69.03 kB / 423.2 MB, free: 13.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.5579, allocations: 110.8 kB / 423.3 MB, free: 13.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.5581, allocations: 131.6 kB / 423.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.5581, allocations: 25.7 kB / 423.5 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.577e-05/0.5582, allocations: 166.4 kB / 423.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.5583, allocations: 7.781 kB / 423.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.5583, allocations: 0 / 423.6 MB, free: 12.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5584, allocations: 310.8 kB / 424 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.375e-05/0.5585, allocations: 19.81 kB / 424 MB, free: 12.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.626e-05/0.5585, allocations: 39.84 kB / 424 MB, free: 12.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.883e-05/0.5586, allocations: 11.94 kB / 424 MB, free: 12.44 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5586, allocations: 0 / 424 MB, free: 12.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001997/0.5588, allocations: 81.41 kB / 424.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.5589, allocations: 8 kB / 424.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.5589, allocations: 0 / 424.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.5589, allocations: 4 kB / 424.1 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.5591, allocations: 11.94 kB / 424.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.5591, allocations: 3.984 kB / 424.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.66e-05/0.5592, allocations: 4 kB / 424.1 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.5592, allocations: 7.938 kB / 424.1 MB, free: 12.33 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.171e-05/0.5593, allocations: 109.1 kB / 424.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.5595, allocations: 57.23 kB / 424.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.179e-05/0.5596, allocations: 11.91 kB / 424.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.5596, allocations: 0 / 424.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.5596, allocations: 4 kB / 424.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5596, allocations: 0 / 424.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.56, allocations: 177.1 kB / 424.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.56, allocations: 0 / 424.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.5601, allocations: 11.98 kB / 424.5 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/0.5601, allocations: 7.953 kB / 424.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.5602, allocations: 4 kB / 424.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.5602, allocations: 0 / 424.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5602, allocations: 0 / 424.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002885/0.5605, allocations: 278.2 kB / 424.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.681e-05/0.5606, allocations: 92.88 kB / 424.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.5606, allocations: 8.047 kB / 424.9 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.5608, allocations: 7.938 kB / 424.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.5609, allocations: 4 kB / 424.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.5609, allocations: 0 / 424.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000117/0.561, allocations: 110 kB / 425 MB, free: 11.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.561, allocations: 3.938 kB / 425 MB, free: 11.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003883/0.5614, allocations: 11.88 kB / 425 MB, free: 11.39 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.0007485/0.5622, allocations: 0.966 MB / 426 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000174/0.5624, allocations: 35.48 kB / 426 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5624, allocations: 3.938 kB / 426 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.43e-05/0.5625, allocations: 4 kB / 426 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.5629, allocations: 27.48 kB / 426.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007007/0.5636, allocations: 177.9 kB / 426.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.564, allocations: 0.7086 MB / 426.9 MB, free: 9.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.5641, allocations: 18.98 kB / 427 MB, free: 9.391 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5641, allocations: 4 kB / 427 MB, free: 9.387 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.437/3.001, allocations: 1.169 MB / 428.1 MB, free: 8.227 MB / 346.7 MB