Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.224/2.224, allocations: 218.4 MB / 231.1 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.937e-05/3.941e-05, allocations: 4 kB / 284.4 MB, free: 8.105 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 50.36 MB / 334.8 MB, free: 5.648 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4318/0.5413, allocations: 82.28 MB / 417.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.5416, allocations: 70.47 kB / 417.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0352/0.5768, allocations: 7.023 MB / 424.2 MB, free: 6.094 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5769, allocations: 0 / 424.2 MB, free: 6.094 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.344e-05/0.5769, allocations: 8 kB / 424.2 MB, free: 6.086 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.5786, allocations: 0.5787 MB / 424.7 MB, free: 5.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.5787, allocations: 8.031 kB / 424.8 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.5788, allocations: 81.16 kB / 424.8 MB, free: 5.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.579, allocations: 39.62 kB / 424.9 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005516/0.5795, allocations: 264.1 kB / 425.1 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003356/0.5799, allocations: 147 kB / 425.3 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.948e-05/0.58, allocations: 30.09 kB / 425.3 MB, free: 4.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.5813, allocations: 0.5003 MB / 425.8 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.5814, allocations: 0 / 425.8 MB, free: 4.535 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.333e-05/0.5815, allocations: 11 kB / 425.8 MB, free: 4.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.5815, allocations: 8 kB / 425.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.5827, allocations: 414.3 kB / 426.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002636/0.5854, allocations: 1.02 MB / 427.2 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.587, allocations: 410.9 kB / 427.6 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006128/0.5877, allocations: 212.8 kB / 427.9 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.628e-05/0.5878, allocations: 4 kB / 427.9 MB, free: 2.844 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.5879, allocations: 38.44 kB / 427.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 3.847e-06/0.5879, allocations: 0 / 427.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01968/0.6076, allocations: 2.082 MB / 430 MB, free: 1.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.6078, allocations: 148.9 kB / 430.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.6083, allocations: 187.3 kB / 430.3 MB, free: 0.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002401/0.6086, allocations: 42.89 kB / 430.4 MB, free: 0.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001701/0.6088, allocations: 138.7 kB / 430.5 MB, free: 0.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004265/0.6092, allocations: 189.8 kB / 430.7 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.6094, allocations: 14.5 kB / 430.7 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.6097, allocations: 344.9 kB / 431 MB, free: 304 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.6117, allocations: 477.3 kB / 431.5 MB, free: 68 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.614, allocations: 0.6389 MB / 432.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.616, allocations: 437.5 kB / 432.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.616, allocations: 0 / 432.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.004884/0.6209, allocations: 1.093 MB / 433.6 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.74e-05/0.6211, allocations: 8 kB / 433.7 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.6211, allocations: 4 kB / 433.7 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.772e-05/0.6212, allocations: 12 kB / 433.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/0.625, allocations: 230.4 kB / 433.9 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.277e-05/0.6252, allocations: 15.94 kB / 433.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002379/0.6276, allocations: 124.9 kB / 434 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001516/0.6278, allocations: 33.61 kB / 434.1 MB, free: 14.3 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.0003636/0.6281, allocations: 146.6 kB / 434.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000492/0.6286, allocations: 158.2 kB / 434.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.6289, allocations: 65.22 kB / 434.4 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.6289, allocations: 11.98 kB / 434.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.6289, allocations: 0 / 434.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.6289, allocations: 3.953 kB / 434.4 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006689/0.6356, allocations: 1.996 MB / 436.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.783e-05/0.6357, allocations: 15.98 kB / 436.5 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.6374, allocations: 199.7 kB / 436.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.458e-05/0.6375, allocations: 16 kB / 436.7 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001187/0.6376, allocations: 23.88 kB / 436.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.012e-05/0.6376, allocations: 23.92 kB / 436.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.995e-05/0.6377, allocations: 15.94 kB / 436.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.6408, allocations: 1.751 MB / 438.5 MB, free: 9.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.6412, allocations: 172.5 kB / 438.6 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.6413, allocations: 27.98 kB / 438.7 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.6425, allocations: 95.98 kB / 438.8 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/0.6429, allocations: 107.6 kB / 438.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-05/0.643, allocations: 36 kB / 438.9 MB, free: 9.492 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000221/0.6432, allocations: 145.2 kB / 439.1 MB, free: 9.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6432, allocations: 0 / 439.1 MB, free: 9.352 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001062/0.6443, allocations: 124 kB / 439.2 MB, free: 9.23 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.004584/0.6489, allocations: 5.362 MB / 444.5 MB, free: 3.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002442/0.6514, allocations: 0.8431 MB / 445.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/0.6514, allocations: 0 / 445.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008514/0.6523, allocations: 227 kB / 445.6 MB, free: 2.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009905/0.6533, allocations: 121.2 kB / 445.7 MB, free: 2.363 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003848/0.6572, allocations: 1.063 MB / 446.8 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.6577, allocations: 0.8168 MB / 447.6 MB, free: 292 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001041/0.6588, allocations: 99.3 kB / 447.7 MB, free: 192 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006252/0.6594, allocations: 115.4 kB / 447.8 MB, free: 76 kB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6594, allocations: 0 / 447.8 MB, free: 76 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03998/0.6994, allocations: 10.37 MB / 458.2 MB, free: 5.746 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003258/0.6998, allocations: 167.7 kB / 458.3 MB, free: 5.527 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.979/3.679, allocations: 0 / 458.3 MB, free: 5.527 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat does not exist to compare? outputFormat=mat