Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.662e-05/3.672e-05, allocations: 8 kB / 292.2 MB, free: 8.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 50.42 MB / 342.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4637/0.5815, allocations: 81.13 MB / 423.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.5819, allocations: 76.45 kB / 423.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03461/0.6165, allocations: 7.199 MB / 431 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.6166, allocations: 0 / 431 MB, free: 6.559 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.6166, allocations: 8 kB / 431 MB, free: 6.551 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001641/0.6182, allocations: 0.5842 MB / 431.6 MB, free: 5.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.6183, allocations: 8.031 kB / 431.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001094/0.6184, allocations: 67.11 kB / 431.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.6186, allocations: 47.61 kB / 431.7 MB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004798/0.619, allocations: 263.2 kB / 432 MB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002941/0.6194, allocations: 143.5 kB / 432.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.225e-05/0.6195, allocations: 26.81 kB / 432.2 MB, free: 5.395 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.6207, allocations: 0.4991 MB / 432.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6207, allocations: 4 kB / 432.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.6208, allocations: 10.81 kB / 432.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.6208, allocations: 12 kB / 432.7 MB, free: 4.992 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.6219, allocations: 403 kB / 433.1 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.6243, allocations: 1.02 MB / 434.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/0.6258, allocations: 413.8 kB / 434.5 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.6264, allocations: 216.9 kB / 434.7 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.696e-05/0.6265, allocations: 7.938 kB / 434.7 MB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/0.6265, allocations: 42.05 kB / 434.8 MB, free: 3.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.186e-06/0.6266, allocations: 0 / 434.8 MB, free: 3.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01455/0.6411, allocations: 2.072 MB / 436.8 MB, free: 1.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.6413, allocations: 147.8 kB / 437 MB, free: 1.605 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.6416, allocations: 179.8 kB / 437.2 MB, free: 1.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.6417, allocations: 39.58 kB / 437.2 MB, free: 1.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.6419, allocations: 213.4 kB / 437.4 MB, free: 1.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.6422, allocations: 192.9 kB / 437.6 MB, free: 1.047 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.6423, allocations: 13.47 kB / 437.6 MB, free: 1.043 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.6425, allocations: 345.1 kB / 437.9 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.6437, allocations: 483.2 kB / 438.4 MB, free: 488 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.6451, allocations: 0.6352 MB / 439.1 MB, free: 20 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.6463, allocations: 435.1 kB / 439.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.6464, allocations: 3.938 kB / 439.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.002956/0.6493, allocations: 1.079 MB / 440.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.6494, allocations: 11.94 kB / 440.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.6494, allocations: 8.062 kB / 440.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.6495, allocations: 12 kB / 440.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/0.6521, allocations: 226.5 kB / 440.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.288e-05/0.6522, allocations: 12 kB / 440.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/0.654, allocations: 126.7 kB / 441 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001527/0.6542, allocations: 26.06 kB / 441 MB, free: 14.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003494/0.6545, allocations: 152.7 kB / 441.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004914/0.655, allocations: 151 kB / 441.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002124/0.6553, allocations: 62.16 kB / 441.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.6553, allocations: 8 kB / 441.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.6553, allocations: 0 / 441.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.6553, allocations: 11.98 kB / 441.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006197/0.6616, allocations: 1.989 MB / 443.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/0.6616, allocations: 9 kB / 443.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/0.6632, allocations: 203.3 kB / 443.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.787e-05/0.6633, allocations: 16 kB / 443.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.6634, allocations: 26.81 kB / 443.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.269e-05/0.6634, allocations: 23.92 kB / 443.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.77e-05/0.6634, allocations: 15.94 kB / 443.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002795/0.6662, allocations: 1.763 MB / 445.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003373/0.6666, allocations: 168.7 kB / 445.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.6668, allocations: 24.25 kB / 445.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.6679, allocations: 105.9 kB / 445.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003454/0.6683, allocations: 100.9 kB / 445.8 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.675e-05/0.6684, allocations: 39.25 kB / 445.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002193/0.6686, allocations: 139.5 kB / 446 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6686, allocations: 4 kB / 446 MB, free: 10.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001054/0.6697, allocations: 133.4 kB / 446.1 MB, free: 9.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.004228/0.674, allocations: 5.352 MB / 451.4 MB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.6764, allocations: 0.8447 MB / 452.3 MB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/0.6765, allocations: 4.125 kB / 452.3 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008183/0.6773, allocations: 225.8 kB / 452.5 MB, free: 3.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.6783, allocations: 116.1 kB / 452.6 MB, free: 3.668 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.6822, allocations: 1.088 MB / 453.7 MB, free: 2.402 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.6828, allocations: 0.8246 MB / 454.5 MB, free: 1.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006985/0.6835, allocations: 111.4 kB / 454.6 MB, free: 1.441 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6835, allocations: 0 / 454.6 MB, free: 1.441 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.781/3.464, allocations: 8.187 MB / 462.8 MB, free: 9.242 MB / 378.7 MB