Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.332/2.332, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.39e-05/4.397e-05, allocations: 4 kB / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 50.37 MB / 334.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5454, allocations: 82.45 MB / 417.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.5457, allocations: 81.94 kB / 417.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03538/0.5811, allocations: 7.095 MB / 424.4 MB, free: 5.414 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5812, allocations: 0 / 424.4 MB, free: 5.414 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.5812, allocations: 4 kB / 424.4 MB, free: 5.41 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001803/0.583, allocations: 0.6078 MB / 425 MB, free: 4.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.5831, allocations: 12.03 kB / 425 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.5833, allocations: 69.16 kB / 425.1 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.5834, allocations: 51.53 kB / 425.1 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005872/0.584, allocations: 292.7 kB / 425.4 MB, free: 4.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000336/0.5844, allocations: 151.5 kB / 425.6 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.484e-05/0.5845, allocations: 34.34 kB / 425.6 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.5858, allocations: 0.4949 MB / 426.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.5859, allocations: 0 / 426.1 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.276e-05/0.5859, allocations: 11.12 kB / 426.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.586, allocations: 4 kB / 426.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.5871, allocations: 418.6 kB / 426.5 MB, free: 3.512 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.5897, allocations: 1.035 MB / 427.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.5913, allocations: 407.6 kB / 427.9 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005732/0.592, allocations: 208.4 kB / 428.1 MB, free: 2.117 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.95e-05/0.5921, allocations: 4 kB / 428.2 MB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.5921, allocations: 49.61 kB / 428.2 MB, free: 2.059 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.717e-06/0.5921, allocations: 0 / 428.2 MB, free: 2.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01511/0.6073, allocations: 2.117 MB / 430.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/0.6075, allocations: 151.5 kB / 430.5 MB, free: 348 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004263/0.6079, allocations: 233.1 kB / 430.7 MB, free: 148 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/0.6081, allocations: 41.14 kB / 430.7 MB, free: 112 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.6083, allocations: 205.4 kB / 430.9 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003029/0.6086, allocations: 201.6 kB / 431.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.6087, allocations: 14.75 kB / 431.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6089, allocations: 333.6 kB / 431.5 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.6102, allocations: 483.7 kB / 431.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.6117, allocations: 0.6446 MB / 432.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.613, allocations: 429.8 kB / 433 MB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.537e-05/0.6131, allocations: 4 kB / 433 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00321/0.6163, allocations: 1.081 MB / 434.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/0.6164, allocations: 8 kB / 434.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/0.6164, allocations: 8 kB / 434.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.492e-05/0.6165, allocations: 8.719 kB / 434.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002735/0.6192, allocations: 227.3 kB / 434.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.593e-05/0.6193, allocations: 19.88 kB / 434.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/0.6213, allocations: 118.3 kB / 434.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.6215, allocations: 38.72 kB / 434.5 MB, free: 13.43 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.0003706/0.6219, allocations: 151 kB / 434.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/0.6224, allocations: 155.2 kB / 434.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.6227, allocations: 68.14 kB / 434.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.6227, allocations: 12 kB / 434.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.6227, allocations: 0 / 434.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.6227, allocations: 7.938 kB / 434.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006747/0.6295, allocations: 2.009 MB / 436.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-05/0.6296, allocations: 12 kB / 436.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001664/0.6313, allocations: 200 kB / 437.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.611e-05/0.6314, allocations: 16 kB / 437.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.6315, allocations: 30.61 kB / 437.2 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.073e-05/0.6315, allocations: 16.12 kB / 437.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.905e-05/0.6316, allocations: 15.94 kB / 437.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003183/0.6348, allocations: 1.766 MB / 439 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004868/0.6353, allocations: 181.4 kB / 439.1 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001198/0.6354, allocations: 30.55 kB / 439.2 MB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.6367, allocations: 102.2 kB / 439.3 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003775/0.6371, allocations: 105.8 kB / 439.4 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.162e-05/0.6372, allocations: 27.62 kB / 439.4 MB, free: 8.816 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003303/0.6375, allocations: 195.5 kB / 439.6 MB, free: 8.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6375, allocations: 0 / 439.6 MB, free: 8.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001131/0.6387, allocations: 125.9 kB / 439.7 MB, free: 8.555 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.004784/0.6435, allocations: 5.361 MB / 445.1 MB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.6461, allocations: 0.8469 MB / 445.9 MB, free: 2.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.6462, allocations: 1.438 kB / 445.9 MB, free: 2.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008878/0.6471, allocations: 221.1 kB / 446.1 MB, free: 2.129 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.6483, allocations: 140.4 kB / 446.3 MB, free: 1.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.6526, allocations: 1.14 MB / 447.4 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.6533, allocations: 0.8405 MB / 448.2 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007677/0.6541, allocations: 123.4 kB / 448.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6542, allocations: 4.469 kB / 448.4 MB, free: 15.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.93/3.584, allocations: 8.434 MB / 456.8 MB, free: 7.238 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat does not exist to compare? outputFormat=mat