Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) 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 3.843e-05/3.848e-05, allocations: 5.562 kB / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 50.42 MB / 343.2 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5756, allocations: 81.04 MB / 424.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.576, allocations: 69.97 kB / 424.3 MB, free: 13.17 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03533/0.6113, allocations: 7.207 MB / 431.5 MB, free: 7.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6114, allocations: 0 / 431.5 MB, free: 7.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.6114, allocations: 4 kB / 431.5 MB, free: 7.059 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.001711/0.6131, allocations: 0.5812 MB / 432.1 MB, free: 6.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.6132, allocations: 8.031 kB / 432.1 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.6133, allocations: 74.78 kB / 432.1 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.6135, allocations: 39.56 kB / 432.2 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.614, allocations: 260.5 kB / 432.4 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003196/0.6143, allocations: 143.6 kB / 432.6 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.6144, allocations: 32.56 kB / 432.6 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.6157, allocations: 0.5027 MB / 433.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.6157, allocations: 0 / 433.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.6158, allocations: 14.94 kB / 433.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.6158, allocations: 8 kB / 433.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.6169, allocations: 400 kB / 433.5 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.6193, allocations: 1.021 MB / 434.5 MB, free: 4.309 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.6208, allocations: 418.9 kB / 435 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005076/0.6214, allocations: 208.9 kB / 435.2 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.389e-05/0.6214, allocations: 7.938 kB / 435.2 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.6215, allocations: 45.42 kB / 435.2 MB, free: 3.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.997e-06/0.6215, allocations: 0 / 435.2 MB, free: 3.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.0147/0.6362, allocations: 2.081 MB / 437.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.6364, allocations: 152.4 kB / 437.4 MB, free: 2.098 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/0.6368, allocations: 184 kB / 437.6 MB, free: 1.934 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.6369, allocations: 36.58 kB / 437.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.637, allocations: 142.8 kB / 437.8 MB, free: 1.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002967/0.6373, allocations: 192 kB / 438 MB, free: 1.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.6375, allocations: 14.5 kB / 438 MB, free: 1.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.6376, allocations: 350.9 kB / 438.3 MB, free: 1.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001244/0.6389, allocations: 472.8 kB / 438.8 MB, free: 1.043 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.6404, allocations: 0.6448 MB / 439.4 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.6416, allocations: 436.7 kB / 439.9 MB, free: 344 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.6416, allocations: 0 / 439.9 MB, free: 344 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003076/0.6447, allocations: 1.088 MB / 441 MB, free: 15.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.6448, allocations: 11.94 kB / 441 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.6448, allocations: 4 kB / 441 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.463e-05/0.6448, allocations: 8 kB / 441 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/0.6475, allocations: 234.9 kB / 441.2 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.039e-05/0.6476, allocations: 11.98 kB / 441.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.6495, allocations: 122.5 kB / 441.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.6497, allocations: 27.73 kB / 441.4 MB, free: 15.29 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.0003744/0.6501, allocations: 154.4 kB / 441.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005161/0.6506, allocations: 150.1 kB / 441.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000211/0.6508, allocations: 63.12 kB / 441.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.6509, allocations: 11.94 kB / 441.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.6509, allocations: 7.984 kB / 441.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.6509, allocations: 0 / 441.8 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006397/0.6573, allocations: 1.992 MB / 443.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.608e-05/0.6574, allocations: 12 kB / 443.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.659, allocations: 203.6 kB / 444 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.091e-05/0.6591, allocations: 16 kB / 444 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.232e-05/0.6592, allocations: 22.69 kB / 444 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-05/0.6592, allocations: 27.92 kB / 444 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.722e-05/0.6593, allocations: 15.94 kB / 444 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002902/0.6622, allocations: 1.749 MB / 445.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003656/0.6626, allocations: 172.5 kB / 446 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.6627, allocations: 27.98 kB / 446 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.6639, allocations: 99.94 kB / 446.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/0.6643, allocations: 107.7 kB / 446.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.264e-05/0.6644, allocations: 35.94 kB / 446.2 MB, free: 10.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002187/0.6646, allocations: 145.2 kB / 446.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6646, allocations: 0 / 446.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001049/0.6657, allocations: 128 kB / 446.5 MB, free: 10.4 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.004727/0.6704, allocations: 5.355 MB / 451.8 MB, free: 4.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002473/0.673, allocations: 0.8471 MB / 452.7 MB, free: 3.871 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/0.673, allocations: 0 / 452.7 MB, free: 3.871 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008384/0.6739, allocations: 226.9 kB / 452.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.6749, allocations: 125.1 kB / 453 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.6789, allocations: 1.055 MB / 454.1 MB, free: 2.305 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.6794, allocations: 0.8207 MB / 454.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001042/0.6805, allocations: 87.38 kB / 455 MB, free: 1.367 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006067/0.6811, allocations: 119.4 kB / 455.1 MB, free: 1.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6811, allocations: 0 / 455.1 MB, free: 1.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04635/0.7275, allocations: 10.36 MB / 465.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003001/0.7278, allocations: 162.1 kB / 465.6 MB, free: 6.73 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.825/3.552, allocations: 0 / 465.6 MB, free: 6.73 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat