Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.729/2.729, allocations: 235.1 MB / 242.2 MB, free: 15.83 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.574e-05/2.589e-05, allocations: 0 / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.3986, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.5534, allocations: 81.85 MB / 436.2 MB, free: 368 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.5537, allocations: 63.97 kB / 436.2 MB, free: 304 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02262/0.5763, allocations: 4.656 MB / 440.9 MB, free: 11.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5764, allocations: 0 / 440.9 MB, free: 11.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.5765, allocations: 8 kB / 440.9 MB, free: 11.61 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0011/0.5776, allocations: 0.5177 MB / 441.4 MB, free: 11.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.5776, allocations: 12.03 kB / 441.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.772e-05/0.5777, allocations: 35.53 kB / 441.5 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/0.5782, allocations: 250.6 kB / 441.7 MB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.5782, allocations: 9.094 kB / 441.7 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.5783, allocations: 12 kB / 441.7 MB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004044/0.5787, allocations: 129 kB / 441.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000532/0.5793, allocations: 220.9 kB / 442.1 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.75e-05/0.5793, allocations: 4 kB / 442.1 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/0.5794, allocations: 11.88 kB / 442.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.5794, allocations: 8 kB / 442.1 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002362/0.5818, allocations: 1.259 MB / 443.4 MB, free: 8.957 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/0.5823, allocations: 206.9 kB / 443.6 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.5825, allocations: 71.44 kB / 443.6 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.5825, allocations: 12.06 kB / 443.6 MB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.5826, allocations: 34.56 kB / 443.7 MB, free: 8.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 3.757e-06/0.5826, allocations: 0 / 443.7 MB, free: 8.582 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002963/0.5856, allocations: 1.339 MB / 445 MB, free: 7.035 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.034e-05/0.5857, allocations: 132.5 kB / 445.1 MB, free: 6.875 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.5861, allocations: 188.4 kB / 445.3 MB, free: 6.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.5861, allocations: 25.7 kB / 445.4 MB, free: 6.648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.5863, allocations: 176.6 kB / 445.5 MB, free: 6.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.5864, allocations: 106.4 kB / 445.6 MB, free: 6.363 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.5864, allocations: 0.9375 kB / 445.6 MB, free: 6.363 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.5866, allocations: 346.8 kB / 446 MB, free: 6.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.5869, allocations: 64.88 kB / 446 MB, free: 5.953 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.5872, allocations: 200.5 kB / 446.2 MB, free: 5.699 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002836/0.5875, allocations: 99.95 kB / 446.3 MB, free: 5.602 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.5875, allocations: 4 kB / 446.3 MB, free: 5.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008222/0.5883, allocations: 289.2 kB / 446.6 MB, free: 5.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.5884, allocations: 12.03 kB / 446.6 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.5884, allocations: 4 kB / 446.6 MB, free: 5.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.979e-05/0.5884, allocations: 8 kB / 446.6 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007691/0.5892, allocations: 103.9 kB / 446.7 MB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.5893, allocations: 11.94 kB / 446.7 MB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.5897, allocations: 27.92 kB / 446.8 MB, free: 5.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.078e-05/0.5897, allocations: 27.94 kB / 446.8 MB, free: 5.117 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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.0001666/0.5899, allocations: 108.9 kB / 446.9 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006444/0.5906, allocations: 209.5 kB / 447.1 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5907, allocations: 27.62 kB / 447.1 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.5909, allocations: 33.83 kB / 447.2 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.5909, allocations: 4 kB / 447.2 MB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.5909, allocations: 7.953 kB / 447.2 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.5909, allocations: 0 / 447.2 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.5928, allocations: 0.8689 MB / 448.1 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.5928, allocations: 384 / 448.1 MB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007614/0.5936, allocations: 87.88 kB / 448.1 MB, free: 3.719 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-05/0.5936, allocations: 4 kB / 448.1 MB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.436e-05/0.5937, allocations: 8.062 kB / 448.2 MB, free: 3.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.5937, allocations: 3.938 kB / 448.2 MB, free: 3.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.5937, allocations: 4 kB / 448.2 MB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.5949, allocations: 0.6827 MB / 448.8 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.595, allocations: 100.8 kB / 448.9 MB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.796e-05/0.5951, allocations: 7.984 kB / 448.9 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005114/0.5956, allocations: 19.98 kB / 449 MB, free: 2.816 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.5957, allocations: 24.03 kB / 449 MB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.5958, allocations: 12 kB / 449 MB, free: 2.781 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002038/0.596, allocations: 144.5 kB / 449.1 MB, free: 2.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.596, allocations: 0 / 449.1 MB, free: 2.637 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007936/0.5968, allocations: 59.94 kB / 449.2 MB, free: 2.578 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.001673/0.5985, allocations: 1.572 MB / 450.8 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006488/0.5992, allocations: 200.4 kB / 451 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.5992, allocations: 0 / 451 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002605/0.5995, allocations: 96.92 kB / 451.1 MB, free: 0.6602 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007348/0.6002, allocations: 29.95 kB / 451.1 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.6028, allocations: 0.767 MB / 451.9 MB, free: 15.81 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.6034, allocations: 0.7878 MB / 452.6 MB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000288/0.6037, allocations: 35.27 kB / 452.7 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.6039, allocations: 87.97 kB / 452.8 MB, free: 14.87 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6039, allocations: 0 / 452.8 MB, free: 14.87 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07175/0.6757, allocations: 4.348 MB / 457.1 MB, free: 10.55 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002713/0.676, allocations: 117.6 kB / 457.2 MB, free: 10.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.288, allocations: 3.938 kB / 457.2 MB, free: 10.36 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestSpeed_res.mat does not exist to compare? outputFormat=mat