Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.23/2.23, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.845e-05/4.843e-05, allocations: 4 kB / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5814/0.6964, allocations: 80.8 MB / 397.8 MB, free: 7.23 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003583/0.6968, allocations: 72.52 kB / 397.9 MB, free: 7.191 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06942/0.7663, allocations: 10.15 MB / 408 MB, free: 14.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.579e-06/0.7664, allocations: 0 / 408 MB, free: 14.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.57e-05/0.7664, allocations: 7.828 kB / 408 MB, free: 14.59 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.002398/0.7688, allocations: 0.5888 MB / 408.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.876e-05/0.7689, allocations: 8.031 kB / 408.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002437/0.7692, allocations: 67.23 kB / 408.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007474/0.77, allocations: 51.59 kB / 408.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008785/0.7709, allocations: 303.9 kB / 409.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002481/0.7711, allocations: 88.17 kB / 409.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.7713, allocations: 37.44 kB / 409.2 MB, free: 13.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.7728, allocations: 373.7 kB / 409.5 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.7729, allocations: 4 kB / 409.5 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-05/0.773, allocations: 13.55 kB / 409.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.773, allocations: 8 kB / 409.6 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.7747, allocations: 410.7 kB / 410 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.7781, allocations: 0.9004 MB / 410.9 MB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.7797, allocations: 352.5 kB / 411.2 MB, free: 11.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007994/0.7805, allocations: 200.7 kB / 411.4 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-05/0.7806, allocations: 4.438 kB / 411.4 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/0.7807, allocations: 38.12 kB / 411.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 6.171e-06/0.7807, allocations: 0 / 411.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.006267/0.787, allocations: 1.54 MB / 413 MB, free: 10.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.7871, allocations: 81.67 kB / 413.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/0.7877, allocations: 214.1 kB / 413.3 MB, free: 10.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.7879, allocations: 35.89 kB / 413.3 MB, free: 10.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.7881, allocations: 140 kB / 413.4 MB, free: 9.961 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003163/0.7884, allocations: 183.5 kB / 413.6 MB, free: 9.805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.263e-05/0.7885, allocations: 6.812 kB / 413.6 MB, free: 9.805 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000233/0.7888, allocations: 344.8 kB / 414 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007423/0.7895, allocations: 169.7 kB / 414.1 MB, free: 9.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007941/0.7903, allocations: 206.9 kB / 414.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.7911, allocations: 170.6 kB / 414.5 MB, free: 9.105 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.7911, allocations: 4.031 kB / 414.5 MB, free: 9.102 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002345/0.7935, allocations: 0.5524 MB / 415.1 MB, free: 8.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.708e-05/0.7936, allocations: 15.39 kB / 415.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.7936, allocations: 0 / 415.1 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/0.7953, allocations: 235.5 kB / 415.3 MB, free: 8.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009256/0.7962, allocations: 75.19 kB / 415.4 MB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008477/0.8047, allocations: 2.673 MB / 418.1 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008958/0.8057, allocations: 39.75 kB / 418.1 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.8058, allocations: 19.11 kB / 418.1 MB, free: 6.152 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * 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: 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002752/0.8061, allocations: 143.5 kB / 418.2 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.8063, allocations: 27.62 kB / 418.3 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001836/0.8065, allocations: 52.95 kB / 418.3 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.8066, allocations: 4 kB / 418.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.8066, allocations: 0 / 418.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.8066, allocations: 3.984 kB / 418.3 MB, free: 5.965 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004332/0.8109, allocations: 1.198 MB / 419.5 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.811, allocations: 0 / 419.5 MB, free: 5.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009962/0.812, allocations: 67.89 kB / 419.6 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001546/0.8136, allocations: 223.5 kB / 419.8 MB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.8138, allocations: 26.12 kB / 419.8 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008008/0.8218, allocations: 2.575 MB / 422.4 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.8219, allocations: 4.031 kB / 422.4 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.8252, allocations: 0.8674 MB / 423.3 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004879/0.8257, allocations: 156.3 kB / 423.4 MB, free: 1.785 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.8259, allocations: 13.75 kB / 423.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008671/0.8268, allocations: 38.97 kB / 423.5 MB, free: 1.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003904/0.8272, allocations: 71.11 kB / 423.6 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-05/0.8273, allocations: 19.23 kB / 423.6 MB, free: 1.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003967/0.8277, allocations: 175.8 kB / 423.8 MB, free: 1.527 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.8278, allocations: 4 kB / 423.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001569/0.8294, allocations: 156.6 kB / 423.9 MB, free: 1.387 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.004506/0.8339, allocations: 1.552 MB / 425.5 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.8365, allocations: 0.6091 MB / 426.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.8366, allocations: 0 / 426.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001558/0.8381, allocations: 433.3 kB / 426.5 MB, free: 15.27 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007132/0.8389, allocations: 34.06 kB / 426.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00346/0.8424, allocations: 0.7006 MB / 427.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006565/0.8431, allocations: 0.8049 MB / 428 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000661/0.8438, allocations: 58.95 kB / 428.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004528/0.8443, allocations: 100.5 kB / 428.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of SimCode: time 2.235e-06/0.8443, allocations: 0 / 428.2 MB, free: 13.69 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05811/0.9024, allocations: 9.634 MB / 437.8 MB, free: 4.133 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003485/0.9028, allocations: 189.5 kB / 438 MB, free: 3.902 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.899/3.802, allocations: 3.938 kB / 438 MB, free: 3.898 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat