Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.49e-05/3.498e-05, allocations: 4 kB / 292.7 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 50.41 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4637/0.5759, allocations: 78.64 MB / 421.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.5762, allocations: 69.83 kB / 421.9 MB, free: 15.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02075/0.5969, allocations: 4.379 MB / 426.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.597, allocations: 0 / 426.2 MB, free: 11.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.435e-05/0.597, allocations: 15.92 kB / 426.2 MB, free: 11.55 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001073/0.5981, allocations: 0.4997 MB / 426.7 MB, free: 11.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.5982, allocations: 8.031 kB / 426.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.379e-05/0.5983, allocations: 53.17 kB / 426.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.5984, allocations: 27.72 kB / 426.8 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.5988, allocations: 256.4 kB / 427.1 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/0.5989, allocations: 18.75 kB / 427.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.095e-05/0.5989, allocations: 23.19 kB / 427.1 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005727/0.5995, allocations: 230.7 kB / 427.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.5996, allocations: 0 / 427.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.5996, allocations: 11.31 kB / 427.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.75e-05/0.5996, allocations: 8.438 kB / 427.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004964/0.6002, allocations: 164.3 kB / 427.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.6021, allocations: 0.8289 MB / 428.4 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004379/0.6026, allocations: 170.7 kB / 428.5 MB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.6028, allocations: 86.16 kB / 428.6 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001456/0.603, allocations: 93.25 kB / 428.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.603, allocations: 38.2 kB / 428.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.226e-06/0.603, allocations: 0 / 428.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005844/0.6036, allocations: 194 kB / 428.9 MB, free: 9.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.6037, allocations: 59.34 kB / 429 MB, free: 8.969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.604, allocations: 188.1 kB / 429.2 MB, free: 8.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.604, allocations: 36.39 kB / 429.2 MB, free: 8.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.6042, allocations: 144.6 kB / 429.3 MB, free: 8.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.812e-05/0.6043, allocations: 79.66 kB / 429.4 MB, free: 8.574 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.6043, allocations: 7.562 kB / 429.4 MB, free: 8.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.6045, allocations: 332.5 kB / 429.8 MB, free: 8.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.6047, allocations: 62.58 kB / 429.8 MB, free: 8.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002232/0.6049, allocations: 97.06 kB / 429.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.6052, allocations: 88.7 kB / 430 MB, free: 8.059 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6052, allocations: 0 / 430 MB, free: 8.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005899/0.6058, allocations: 233.5 kB / 430.2 MB, free: 7.875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.6058, allocations: 8 kB / 430.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.6058, allocations: 3.953 kB / 430.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.6059, allocations: 4 kB / 430.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.6064, allocations: 59.95 kB / 430.3 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.6065, allocations: 4 kB / 430.3 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.6067, allocations: 34.77 kB / 430.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.6068, allocations: 8 kB / 430.3 MB, free: 7.762 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001167/0.6069, allocations: 115.8 kB / 430.5 MB, free: 7.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.926e-05/0.607, allocations: 27.7 kB / 430.5 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006891/0.6077, allocations: 248.2 kB / 430.7 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.6077, allocations: 7.953 kB / 430.7 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6077, allocations: 0 / 430.7 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.6077, allocations: 3.984 kB / 430.7 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.6091, allocations: 0.6211 MB / 431.4 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.6091, allocations: 0 / 431.4 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005689/0.6097, allocations: 51.91 kB / 431.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.186e-05/0.6097, allocations: 11.95 kB / 431.4 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.6098, allocations: 3.562 kB / 431.4 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.6098, allocations: 4 kB / 431.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.6098, allocations: 0 / 431.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008347/0.6107, allocations: 417.1 kB / 431.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.6108, allocations: 120 kB / 432 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.143e-05/0.6109, allocations: 15.52 kB / 432 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.6112, allocations: 19.55 kB / 432 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.6113, allocations: 15.97 kB / 432 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.6113, allocations: 7.5 kB / 432 MB, free: 6.273 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002001/0.6115, allocations: 149.1 kB / 432.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6115, allocations: 0 / 432.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004862/0.612, allocations: 65.52 kB / 432.2 MB, free: 6.098 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cosB.phi,cosBminus.phi,sinA.phi,sinAminus.phi,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.001333/0.6134, allocations: 0.9814 MB / 433.2 MB, free: 5.184 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000502/0.6139, allocations: 175.5 kB / 433.4 MB, free: 5.055 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6139, allocations: 4 kB / 433.4 MB, free: 5.051 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002292/0.6141, allocations: 91.48 kB / 433.5 MB, free: 4.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.6145, allocations: 22.78 kB / 433.5 MB, free: 4.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.6164, allocations: 0.6569 MB / 434.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000508/0.617, allocations: 0.7708 MB / 434.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.6172, allocations: 50.02 kB / 435 MB, free: 3.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.6175, allocations: 82.84 kB / 435.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6175, allocations: 0 / 435.1 MB, free: 3.457 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.6477, allocations: 4.004 MB / 439.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003435/0.6481, allocations: 150.8 kB / 439.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.277, allocations: 0 / 439.2 MB, free: 15.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat