Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SinCosEncoder,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_SinCosEncoder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.691e-05/3.703e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4701/0.5785, allocations: 78.63 MB / 421.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.5788, allocations: 65.16 kB / 421.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01977/0.5985, allocations: 4.382 MB / 425.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5986, allocations: 0 / 425.7 MB, free: 11.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.5986, allocations: 11.94 kB / 425.7 MB, free: 11.49 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.0009725/0.5996, allocations: 0.5062 MB / 426.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5997, allocations: 12.03 kB / 426.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.086e-05/0.5998, allocations: 54.09 kB / 426.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.291e-05/0.5999, allocations: 27.72 kB / 426.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.6003, allocations: 254 kB / 426.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.6003, allocations: 15.94 kB / 426.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.6004, allocations: 23.56 kB / 426.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007241/0.6011, allocations: 235.4 kB / 426.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.402e-05/0.6012, allocations: 7.984 kB / 426.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.724e-05/0.6013, allocations: 7.625 kB / 426.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.384e-05/0.6013, allocations: 12.44 kB / 426.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00076/0.6021, allocations: 156.3 kB / 427 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00298/0.6051, allocations: 0.831 MB / 427.8 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007086/0.6059, allocations: 158.4 kB / 428 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.6063, allocations: 91.64 kB / 428.1 MB, free: 9.281 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001703/0.6064, allocations: 89.22 kB / 428.2 MB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.6065, allocations: 42.39 kB / 428.2 MB, free: 9.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.978e-06/0.6065, allocations: 4 kB / 428.2 MB, free: 9.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008685/0.6074, allocations: 193.8 kB / 428.4 MB, free: 8.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.6075, allocations: 59.34 kB / 428.5 MB, free: 8.898 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004901/0.608, allocations: 190.4 kB / 428.7 MB, free: 8.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.6081, allocations: 25.7 kB / 428.7 MB, free: 8.699 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.6083, allocations: 146.5 kB / 428.8 MB, free: 8.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.6085, allocations: 80.84 kB / 428.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.142e-05/0.6085, allocations: 3.562 kB / 428.9 MB, free: 8.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.6088, allocations: 336.1 kB / 429.2 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.6092, allocations: 63.45 kB / 429.3 MB, free: 8.137 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.6096, allocations: 104.1 kB / 429.4 MB, free: 8.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.6099, allocations: 80.86 kB / 429.5 MB, free: 7.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.61, allocations: 4 kB / 429.5 MB, free: 7.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007868/0.6108, allocations: 236.7 kB / 429.7 MB, free: 7.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.6108, allocations: 4 kB / 429.7 MB, free: 7.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.6109, allocations: 7.938 kB / 429.7 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.6109, allocations: 4 kB / 429.7 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008513/0.6118, allocations: 55.91 kB / 429.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.6118, allocations: 0 / 429.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/0.6123, allocations: 38.69 kB / 429.8 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.6123, allocations: 8 kB / 429.8 MB, free: 7.695 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.0001555/0.6125, allocations: 115.5 kB / 429.9 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.6126, allocations: 19.72 kB / 430 MB, free: 7.562 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009852/0.6136, allocations: 247.3 kB / 430.2 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.6137, allocations: 7.953 kB / 430.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.6137, allocations: 0 / 430.2 MB, free: 7.367 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6137, allocations: 7.984 kB / 430.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.6156, allocations: 0.6236 MB / 430.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/0.6156, allocations: 0 / 430.8 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008438/0.6165, allocations: 55.95 kB / 430.9 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.457e-05/0.6165, allocations: 3.953 kB / 430.9 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.238e-05/0.6166, allocations: 3.875 kB / 430.9 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.008e-05/0.6166, allocations: 4 kB / 430.9 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.6166, allocations: 4 kB / 430.9 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.618, allocations: 422 kB / 431.3 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002253/0.6182, allocations: 118.9 kB / 431.4 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.04e-05/0.6183, allocations: 15.33 kB / 431.5 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000404/0.6188, allocations: 15.38 kB / 431.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.6189, allocations: 19.59 kB / 431.5 MB, free: 6.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.6189, allocations: 4.188 kB / 431.5 MB, free: 6.207 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002957/0.6193, allocations: 158.9 kB / 431.6 MB, free: 6.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.153e-06/0.6193, allocations: 0 / 431.6 MB, free: 6.078 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007193/0.62, allocations: 62.66 kB / 431.7 MB, free: 6.023 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.001793/0.6218, allocations: 0.977 MB / 432.7 MB, free: 5.113 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007817/0.6227, allocations: 179.9 kB / 432.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.6227, allocations: 0 / 432.9 MB, free: 4.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003849/0.6231, allocations: 99.16 kB / 433 MB, free: 4.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.6236, allocations: 19.61 kB / 433 MB, free: 4.898 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.6263, allocations: 0.6471 MB / 433.6 MB, free: 4.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.6269, allocations: 0.7714 MB / 434.4 MB, free: 3.473 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000381/0.6273, allocations: 46.03 kB / 434.4 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.6275, allocations: 88.14 kB / 434.5 MB, free: 3.391 MB / 346.7 MB Notification: Performance of SimCode: time 1.944e-06/0.6276, allocations: 0 / 434.5 MB, free: 3.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03394/0.6615, allocations: 4.007 MB / 438.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002959/0.6619, allocations: 150.5 kB / 438.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/3.232, allocations: 0 / 438.7 MB, free: 15.24 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.SinCosEncoder_res.mat does not exist to compare? outputFormat=mat