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.054/2.054, allocations: 194.9 MB / 208 MB, free: 3.27 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.665e-05/3.681e-05, allocations: 8 kB / 255.5 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 44.49 MB / 300 MB, free: 6.086 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.5557, allocations: 75.7 MB / 375.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.5561, allocations: 67.38 kB / 375.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04564/0.6017, allocations: 9.282 MB / 385 MB, free: 11.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6018, allocations: 1.344 kB / 385 MB, free: 11.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.37e-05/0.6018, allocations: 5.219 kB / 385 MB, free: 11.59 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.001408/0.6032, allocations: 0.5647 MB / 385.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.6033, allocations: 8.562 kB / 385.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.6034, allocations: 65.22 kB / 385.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000478/0.6039, allocations: 46.08 kB / 385.7 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.6045, allocations: 272.1 kB / 386 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001593/0.6047, allocations: 89.55 kB / 386.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.863e-05/0.6048, allocations: 25.56 kB / 386.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009002/0.6057, allocations: 348.8 kB / 386.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.6057, allocations: 5.125 kB / 386.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/0.6058, allocations: 10.91 kB / 386.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.6058, allocations: 6.469 kB / 386.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009566/0.6068, allocations: 381.3 kB / 386.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/0.6096, allocations: 1.165 MB / 388 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.6105, allocations: 314.5 kB / 388.3 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004152/0.611, allocations: 165.7 kB / 388.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.997e-05/0.611, allocations: 3.875 kB / 388.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.6111, allocations: 38.44 kB / 388.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.188e-06/0.6111, allocations: 0 / 388.5 MB, free: 10.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.003574/0.6147, allocations: 1.314 MB / 389.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.6148, allocations: 84.45 kB / 389.9 MB, free: 9.465 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003409/0.6151, allocations: 188.6 kB / 390.1 MB, free: 9.371 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.375e-05/0.6153, allocations: 35.92 kB / 390.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.31e-05/0.6154, allocations: 139.8 kB / 390.2 MB, free: 9.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.6155, allocations: 148.4 kB / 390.4 MB, free: 9.141 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.6156, allocations: 11.56 kB / 390.4 MB, free: 9.137 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.6157, allocations: 339.8 kB / 390.7 MB, free: 8.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.6161, allocations: 147.2 kB / 390.9 MB, free: 8.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/0.6165, allocations: 200.7 kB / 391.1 MB, free: 8.766 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.6169, allocations: 144.9 kB / 391.2 MB, free: 8.758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.6169, allocations: 3.938 kB / 391.2 MB, free: 8.754 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001384/0.6183, allocations: 0.5014 MB / 391.7 MB, free: 8.684 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.6184, allocations: 9.875 kB / 391.7 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.6184, allocations: 0 / 391.7 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.6196, allocations: 232.3 kB / 392 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005042/0.6201, allocations: 56.97 kB / 392 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005362/0.6255, allocations: 2.652 MB / 394.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005891/0.6262, allocations: 26.3 kB / 394.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.972e-05/0.6263, allocations: 21.33 kB / 394.7 MB, free: 7.234 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.000181/0.6265, allocations: 129.6 kB / 394.8 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.6266, allocations: 26 kB / 394.9 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.6267, allocations: 39.92 kB / 394.9 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.6267, allocations: 3.875 kB / 394.9 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.6267, allocations: 0 / 394.9 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.6268, allocations: 10.47 kB / 394.9 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.6293, allocations: 1.032 MB / 395.9 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.6294, allocations: 0 / 395.9 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.6298, allocations: 50.92 kB / 396 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.6309, allocations: 229.7 kB / 396.2 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.396e-05/0.631, allocations: 10.39 kB / 396.2 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005411/0.6364, allocations: 2.577 MB / 398.8 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.6365, allocations: 0 / 398.8 MB, free: 21.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001814/0.6383, allocations: 0.7485 MB / 399.6 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003124/0.6387, allocations: 137.2 kB / 399.7 MB, free: 21.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.869e-05/0.6388, allocations: 16.38 kB / 399.7 MB, free: 21.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005103/0.6393, allocations: 29.84 kB / 399.7 MB, free: 21.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.6396, allocations: 73.52 kB / 399.8 MB, free: 21.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/0.6397, allocations: 14.19 kB / 399.8 MB, free: 21.05 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002588/0.64, allocations: 149.9 kB / 400 MB, free: 20.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.64, allocations: 0 / 400 MB, free: 20.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001095/0.6411, allocations: 145.4 kB / 400.1 MB, free: 20.97 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.002583/0.6437, allocations: 1.353 MB / 401.5 MB, free: 20.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.6457, allocations: 0.5481 MB / 402 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.6458, allocations: 3.938 kB / 402 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.6469, allocations: 388.8 kB / 402.4 MB, free: 19.95 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.6476, allocations: 25.66 kB / 402.4 MB, free: 19.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.6498, allocations: 0.5993 MB / 403 MB, free: 19.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.6504, allocations: 0.7847 MB / 403.8 MB, free: 18.97 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.6508, allocations: 60.09 kB / 403.9 MB, free: 18.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002461/0.6511, allocations: 90.77 kB / 404 MB, free: 18.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.6511, allocations: 3.938 kB / 404 MB, free: 18.94 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04945/0.7005, allocations: 8.702 MB / 412.7 MB, free: 16.33 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003376/0.7009, allocations: 189.3 kB / 412.8 MB, free: 16.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.293/3.994, allocations: 0 / 412.8 MB, free: 16.11 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