Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.124e-05, allocations: 0 / 292.2 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4408/0.551, allocations: 81.05 MB / 423.7 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.5513, allocations: 73.08 kB / 423.8 MB, free: 13.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03429/0.5856, allocations: 7.2 MB / 431 MB, free: 7.047 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5856, allocations: 4 kB / 431 MB, free: 7.043 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.5857, allocations: 4 kB / 431 MB, free: 7.039 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.001685/0.5874, allocations: 0.5789 MB / 431.5 MB, free: 6.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5874, allocations: 8.031 kB / 431.6 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000116/0.5875, allocations: 73.91 kB / 431.6 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.5877, allocations: 39.56 kB / 431.7 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005152/0.5882, allocations: 265.5 kB / 431.9 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003217/0.5885, allocations: 139.9 kB / 432.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.068e-05/0.5887, allocations: 34.19 kB / 432.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.59, allocations: 0.4992 MB / 432.6 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.59, allocations: 3.984 kB / 432.6 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.173e-05/0.5901, allocations: 12.94 kB / 432.6 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.5901, allocations: 12 kB / 432.6 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.5913, allocations: 404.8 kB / 433 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.5937, allocations: 1.014 MB / 434 MB, free: 4.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.5953, allocations: 414.1 kB / 434.4 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005407/0.5958, allocations: 213.6 kB / 434.6 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.481e-05/0.5959, allocations: 7.312 kB / 434.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.192e-05/0.596, allocations: 45.67 kB / 434.7 MB, free: 3.758 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 5.31e-06/0.596, allocations: 3.984 kB / 434.7 MB, free: 3.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01479/0.6108, allocations: 2.075 MB / 436.8 MB, free: 2.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.611, allocations: 147.2 kB / 436.9 MB, free: 2.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.6113, allocations: 180.5 kB / 437.1 MB, free: 1.934 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.6115, allocations: 36.58 kB / 437.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.6116, allocations: 150.7 kB / 437.3 MB, free: 1.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.6119, allocations: 192.3 kB / 437.5 MB, free: 1.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.612, allocations: 16.47 kB / 437.5 MB, free: 1.594 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.6122, allocations: 347.3 kB / 437.8 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/0.6135, allocations: 483.1 kB / 438.3 MB, free: 1.027 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.615, allocations: 0.6391 MB / 438.9 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.6161, allocations: 429.7 kB / 439.4 MB, free: 340 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.6162, allocations: 0 / 439.4 MB, free: 340 kB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003092/0.6193, allocations: 1.092 MB / 440.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.6193, allocations: 16.09 kB / 440.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.6194, allocations: 4 kB / 440.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.557e-05/0.6194, allocations: 12 kB / 440.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002657/0.6221, allocations: 229.8 kB / 440.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/0.6221, allocations: 8 kB / 440.7 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.624, allocations: 126.7 kB / 440.8 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.6241, allocations: 29.38 kB / 440.9 MB, free: 15.28 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.0003567/0.6245, allocations: 149.4 kB / 441 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.625, allocations: 150.3 kB / 441.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.6252, allocations: 66.52 kB / 441.2 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.6252, allocations: 8 kB / 441.2 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.6253, allocations: 8 kB / 441.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.6253, allocations: 3.984 kB / 441.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006422/0.6317, allocations: 1.986 MB / 443.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/0.6318, allocations: 12 kB / 443.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.6334, allocations: 203.6 kB / 443.4 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.083e-05/0.6334, allocations: 16 kB / 443.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.847e-05/0.6335, allocations: 30.75 kB / 443.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-05/0.6336, allocations: 19.92 kB / 443.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.759e-05/0.6336, allocations: 15.94 kB / 443.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002946/0.6366, allocations: 1.755 MB / 445.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003318/0.6369, allocations: 170.3 kB / 445.4 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.637, allocations: 28 kB / 445.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.6382, allocations: 103.9 kB / 445.6 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/0.6386, allocations: 99.7 kB / 445.7 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-05/0.6386, allocations: 31.95 kB / 445.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002354/0.6389, allocations: 149.2 kB / 445.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6389, allocations: 0 / 445.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001025/0.6399, allocations: 132 kB / 446 MB, free: 10.39 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.004937/0.6449, allocations: 5.359 MB / 451.3 MB, free: 4.703 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.6475, allocations: 0.852 MB / 452.2 MB, free: 3.855 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.6475, allocations: 0 / 452.2 MB, free: 3.855 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008306/0.6483, allocations: 221.7 kB / 452.4 MB, free: 3.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009703/0.6493, allocations: 120 kB / 452.5 MB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.6531, allocations: 1.052 MB / 453.6 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.6537, allocations: 0.8207 MB / 454.4 MB, free: 1.453 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001029/0.6547, allocations: 91.36 kB / 454.5 MB, free: 1.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006033/0.6553, allocations: 115.4 kB / 454.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6553, allocations: 0 / 454.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04572/0.7011, allocations: 10.36 MB / 465 MB, free: 6.945 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003159/0.7015, allocations: 162 kB / 465.1 MB, free: 6.723 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.945/3.646, allocations: 0 / 465.1 MB, free: 6.723 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat