Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.824e-05/2.834e-05, allocations: 0 / 255.4 MB, free: 2.648 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 44.52 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5273, allocations: 75.68 MB / 375.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5276, allocations: 70.58 kB / 375.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04266/0.5703, allocations: 9.285 MB / 385 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.5703, allocations: 1.312 kB / 385 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.5704, allocations: 5.5 kB / 385 MB, free: 11.64 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001359/0.5717, allocations: 0.5582 MB / 385.6 MB, free: 11.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.5718, allocations: 10.41 kB / 385.6 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.5719, allocations: 65.02 kB / 385.6 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004726/0.5724, allocations: 48.58 kB / 385.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005149/0.5729, allocations: 274.9 kB / 385.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.5731, allocations: 84.91 kB / 386 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.066e-05/0.5732, allocations: 30.14 kB / 386.1 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008574/0.5741, allocations: 352.3 kB / 386.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.5741, allocations: 7.906 kB / 386.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/0.5742, allocations: 12.59 kB / 386.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.219e-05/0.5742, allocations: 6.562 kB / 386.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009174/0.5751, allocations: 374.8 kB / 386.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002688/0.5778, allocations: 1.165 MB / 388 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007564/0.5786, allocations: 328 kB / 388.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.579, allocations: 159.4 kB / 388.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.37e-05/0.5791, allocations: 3.844 kB / 388.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.5791, allocations: 38.19 kB / 388.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.815e-06/0.5791, allocations: 0 / 388.5 MB, free: 10.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.003339/0.5825, allocations: 1.316 MB / 389.8 MB, free: 9.609 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.5826, allocations: 88.64 kB / 389.9 MB, free: 9.512 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.5829, allocations: 192.6 kB / 390.1 MB, free: 9.414 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.583, allocations: 36.2 kB / 390.1 MB, free: 9.383 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.5831, allocations: 136.5 kB / 390.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.5832, allocations: 151.2 kB / 390.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.718e-05/0.5833, allocations: 5.938 kB / 390.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.917e-05/0.5833, allocations: 335.1 kB / 390.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.5837, allocations: 144.8 kB / 390.9 MB, free: 8.871 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.5842, allocations: 209.8 kB / 391.1 MB, free: 8.809 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.5846, allocations: 142.7 kB / 391.2 MB, free: 8.805 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.5846, allocations: 0 / 391.2 MB, free: 8.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001294/0.5859, allocations: 0.516 MB / 391.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.586, allocations: 10.28 kB / 391.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.586, allocations: 0 / 391.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/0.5871, allocations: 231 kB / 392 MB, free: 8.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.5875, allocations: 53.47 kB / 392 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004937/0.5925, allocations: 2.636 MB / 394.6 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.5931, allocations: 33.5 kB / 394.7 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.678e-05/0.5932, allocations: 22.17 kB / 394.7 MB, free: 7.289 MB / 314.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: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001706/0.5934, allocations: 127.6 kB / 394.8 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5935, allocations: 27.34 kB / 394.8 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.5936, allocations: 44.88 kB / 394.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.5936, allocations: 7.781 kB / 394.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5936, allocations: 0 / 394.9 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.5936, allocations: 7.516 kB / 394.9 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.596, allocations: 1.028 MB / 395.9 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.5961, allocations: 0 / 395.9 MB, free: 6.832 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.5966, allocations: 52.27 kB / 396 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009817/0.5976, allocations: 229.1 kB / 396.2 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.479e-05/0.5976, allocations: 12.42 kB / 396.2 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005281/0.6029, allocations: 2.573 MB / 398.8 MB, free: 21.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.603, allocations: 3.938 kB / 398.8 MB, free: 21.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.6047, allocations: 0.7382 MB / 399.5 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002813/0.6051, allocations: 144 kB / 399.7 MB, free: 21.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.67e-05/0.6052, allocations: 10.81 kB / 399.7 MB, free: 21.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.6057, allocations: 28.19 kB / 399.7 MB, free: 21.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.6059, allocations: 69.81 kB / 399.8 MB, free: 21.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.88e-05/0.606, allocations: 19.84 kB / 399.8 MB, free: 21.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002253/0.6062, allocations: 150.2 kB / 400 MB, free: 21.03 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6063, allocations: 0 / 400 MB, free: 21.03 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009026/0.6072, allocations: 147 kB / 400.1 MB, free: 21.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002356/0.6095, allocations: 1.354 MB / 401.4 MB, free: 20.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.611, allocations: 0.5661 MB / 402 MB, free: 20.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.6111, allocations: 0 / 402 MB, free: 20.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000884/0.612, allocations: 407.2 kB / 402.4 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.6125, allocations: 25.69 kB / 402.4 MB, free: 19.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.6144, allocations: 0.5968 MB / 403 MB, free: 19.71 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.6148, allocations: 0.7857 MB / 403.8 MB, free: 19.01 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003488/0.6151, allocations: 55.48 kB / 403.9 MB, free: 19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.6154, allocations: 84.56 kB / 404 MB, free: 18.99 MB / 330.7 MB Notification: Performance of SimCode: time 1.873e-06/0.6154, allocations: 0 / 404 MB, free: 18.99 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04202/0.6574, allocations: 8.753 MB / 412.7 MB, free: 16.38 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/0.6577, allocations: 178.8 kB / 412.9 MB, free: 16.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.202/3.86, allocations: 3.938 kB / 412.9 MB, free: 16.15 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat