Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.33/2.33, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.639e-05/3.652e-05, allocations: 4 kB / 284.4 MB, free: 8.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 50.37 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.48/0.6032, allocations: 81.16 MB / 415.9 MB, free: 12.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/0.6035, allocations: 74.7 kB / 416 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02672/0.6302, allocations: 5.523 MB / 421.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6303, allocations: 0 / 421.5 MB, free: 8.016 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.984e-05/0.6303, allocations: 4 kB / 421.5 MB, free: 8.012 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001501/0.6318, allocations: 0.5397 MB / 422.1 MB, free: 7.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.6319, allocations: 8.031 kB / 422.1 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001051/0.632, allocations: 67.78 kB / 422.1 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.6321, allocations: 27.91 kB / 422.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004413/0.6326, allocations: 250 kB / 422.4 MB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003032/0.6329, allocations: 140.8 kB / 422.6 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.233e-05/0.633, allocations: 30.64 kB / 422.6 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007814/0.6338, allocations: 306.3 kB / 422.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.6338, allocations: 0 / 422.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.6339, allocations: 6.688 kB / 422.9 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.6339, allocations: 8 kB / 422.9 MB, free: 6.691 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.6349, allocations: 390.3 kB / 423.3 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002726/0.6377, allocations: 1.034 MB / 424.3 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/0.6386, allocations: 257.7 kB / 424.6 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.639, allocations: 132.8 kB / 424.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.6391, allocations: 0 / 424.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.6391, allocations: 37.44 kB / 424.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.6391, allocations: 0 / 424.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.01361/0.6528, allocations: 3.091 MB / 427.8 MB, free: 2.746 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.6529, allocations: 59.84 kB / 427.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002984/0.6532, allocations: 175.9 kB / 428.1 MB, free: 2.523 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.87e-05/0.6533, allocations: 36.89 kB / 428.1 MB, free: 2.488 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.6534, allocations: 213.4 kB / 428.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.6536, allocations: 178.8 kB / 428.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/0.6537, allocations: 7.688 kB / 428.5 MB, free: 2.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.6539, allocations: 341.1 kB / 428.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008399/0.6547, allocations: 327.2 kB / 429.1 MB, free: 1.641 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009037/0.6557, allocations: 384.2 kB / 429.5 MB, free: 1.414 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007331/0.6564, allocations: 273.5 kB / 429.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.6564, allocations: 0 / 429.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001928/0.6584, allocations: 0.7 MB / 430.5 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.6584, allocations: 4 kB / 430.5 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.6584, allocations: 0 / 430.5 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.6585, allocations: 8 kB / 430.5 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.6604, allocations: 190.6 kB / 430.7 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/0.6605, allocations: 7.984 kB / 430.7 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.6619, allocations: 107.6 kB / 430.8 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.765e-05/0.662, allocations: 19.94 kB / 430.8 MB, free: 0.5039 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (66): * Single equations (assignments): 66 * 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.0002457/0.6622, allocations: 130.1 kB / 430.9 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.6624, allocations: 31 kB / 431 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000152/0.6625, allocations: 51.83 kB / 431 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.6626, allocations: 8 kB / 431 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.6626, allocations: 0 / 431 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.6626, allocations: 3.984 kB / 431 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00518/0.6678, allocations: 1.705 MB / 432.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.6679, allocations: 8 kB / 432.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.6692, allocations: 167.8 kB / 432.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.654e-05/0.6693, allocations: 15.95 kB / 432.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.725e-05/0.6694, allocations: 19.19 kB / 432.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.307e-05/0.6694, allocations: 15.98 kB / 432.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.6694, allocations: 11.94 kB / 433 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.6717, allocations: 1.341 MB / 434.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.672, allocations: 153.1 kB / 434.5 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.079e-05/0.6721, allocations: 22.73 kB / 434.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.6731, allocations: 90.67 kB / 434.6 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002942/0.6734, allocations: 93.08 kB / 434.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.6735, allocations: 23.31 kB / 434.7 MB, free: 12.81 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002152/0.6737, allocations: 151 kB / 434.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6737, allocations: 0 / 434.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007363/0.6745, allocations: 102.9 kB / 434.9 MB, free: 12.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * 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 (53): * Single equations (assignments): 53 * 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.00346/0.678, allocations: 4.304 MB / 439.2 MB, free: 8.297 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.6796, allocations: 0.5934 MB / 439.8 MB, free: 7.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.594e-05/0.6797, allocations: 4 kB / 439.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007012/0.6804, allocations: 218.5 kB / 440 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.6811, allocations: 62.42 kB / 440.1 MB, free: 7.742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.6843, allocations: 0.9499 MB / 441 MB, free: 6.766 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.6848, allocations: 0.7848 MB / 441.8 MB, free: 5.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005124/0.6853, allocations: 99.16 kB / 441.9 MB, free: 5.91 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6853, allocations: 4 kB / 441.9 MB, free: 5.906 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.691/3.376, allocations: 6.465 MB / 448.4 MB, free: 15.5 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat