Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.222/2.222, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.56e-05, allocations: 4 kB / 292.7 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 50.41 MB / 343.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5413/0.6522, allocations: 79.59 MB / 422.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002827/0.6525, allocations: 71.34 kB / 422.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02792/0.6804, allocations: 5.597 MB / 428.4 MB, free: 9.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.6805, allocations: 0 / 428.4 MB, free: 9.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.285e-05/0.6805, allocations: 4 kB / 428.4 MB, free: 9.434 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.001615/0.6822, allocations: 0.5325 MB / 428.9 MB, free: 8.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.6822, allocations: 16.03 kB / 429 MB, free: 8.855 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.6824, allocations: 65.09 kB / 429 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.6825, allocations: 31.72 kB / 429.1 MB, free: 8.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.683, allocations: 242.7 kB / 429.3 MB, free: 8.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/0.6833, allocations: 140.8 kB / 429.4 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.71e-05/0.6834, allocations: 23.56 kB / 429.5 MB, free: 8.348 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007851/0.6842, allocations: 304.4 kB / 429.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.6842, allocations: 0 / 429.8 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.914e-05/0.6843, allocations: 15.58 kB / 429.8 MB, free: 8.125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.6843, allocations: 4 kB / 429.8 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.6854, allocations: 388.3 kB / 430.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002847/0.6883, allocations: 1.034 MB / 431.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009564/0.6893, allocations: 255.5 kB / 431.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003757/0.6897, allocations: 127.1 kB / 431.6 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.798e-05/0.6898, allocations: 8 kB / 431.6 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.6898, allocations: 41.88 kB / 431.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.996e-06/0.6898, allocations: 0 / 431.6 MB, free: 6.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=53): time 0.01522/0.7051, allocations: 3.077 MB / 434.7 MB, free: 4.188 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.7052, allocations: 59.78 kB / 434.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.7058, allocations: 190.9 kB / 434.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.7059, allocations: 31.27 kB / 435 MB, free: 3.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.7061, allocations: 152.8 kB / 435.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/0.7063, allocations: 172.4 kB / 435.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.446e-05/0.7064, allocations: 9.125 kB / 435.3 MB, free: 3.629 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.7066, allocations: 340.8 kB / 435.6 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008911/0.7075, allocations: 325.9 kB / 435.9 MB, free: 3.137 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009319/0.7084, allocations: 384.6 kB / 436.3 MB, free: 2.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000721/0.7092, allocations: 262.1 kB / 436.6 MB, free: 2.766 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.7092, allocations: 7.938 kB / 436.6 MB, free: 2.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002033/0.7113, allocations: 0.7197 MB / 437.3 MB, free: 2.301 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.7113, allocations: 4 kB / 437.3 MB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.7113, allocations: 3.953 kB / 437.3 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.7114, allocations: 4 kB / 437.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00195/0.7133, allocations: 187.6 kB / 437.5 MB, free: 2.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/0.7134, allocations: 7.938 kB / 437.5 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.7148, allocations: 110.3 kB / 437.6 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-05/0.7149, allocations: 18.5 kB / 437.6 MB, free: 1.988 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.0002595/0.7152, allocations: 132 kB / 437.8 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.7153, allocations: 27.7 kB / 437.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.7155, allocations: 49.66 kB / 437.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/0.7155, allocations: 11.95 kB / 437.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.7155, allocations: 0 / 437.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.7155, allocations: 3.984 kB / 437.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005282/0.7208, allocations: 1.703 MB / 439.5 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.7209, allocations: 8 kB / 439.6 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.7223, allocations: 163.3 kB / 439.7 MB, free: 128 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.29e-05/0.7223, allocations: 12 kB / 439.7 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.7224, allocations: 27.55 kB / 439.8 MB, free: 96 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-05/0.7225, allocations: 15.94 kB / 439.8 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/0.7225, allocations: 11.94 kB / 439.8 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.7249, allocations: 1.335 MB / 441.1 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002978/0.7253, allocations: 145.6 kB / 441.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.463e-05/0.7254, allocations: 22.56 kB / 441.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.7264, allocations: 95.59 kB / 441.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003093/0.7268, allocations: 94.2 kB / 441.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.443e-05/0.7269, allocations: 31.05 kB / 441.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002263/0.7271, allocations: 151.8 kB / 441.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.7271, allocations: 0 / 441.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007581/0.7279, allocations: 102.3 kB / 441.7 MB, free: 14.09 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.00383/0.7317, allocations: 4.304 MB / 446 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001715/0.7335, allocations: 0.5949 MB / 446.6 MB, free: 9.449 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.7335, allocations: 0 / 446.6 MB, free: 9.449 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000736/0.7343, allocations: 222.6 kB / 446.9 MB, free: 9.285 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006691/0.735, allocations: 54.34 kB / 446.9 MB, free: 9.242 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.7383, allocations: 0.9161 MB / 447.8 MB, free: 8.305 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.7389, allocations: 0.7956 MB / 448.6 MB, free: 7.484 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008808/0.7398, allocations: 74.94 kB / 448.7 MB, free: 7.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004341/0.7402, allocations: 92.59 kB / 448.8 MB, free: 7.375 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7403, allocations: 4 kB / 448.8 MB, free: 7.371 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.7806, allocations: 7.626 MB / 456.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002877/0.7809, allocations: 176.3 kB / 456.6 MB, free: 15.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.776/3.557, allocations: 0 / 456.6 MB, free: 15.58 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat