Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.526e-05/3.551e-05, allocations: 4 kB / 255.5 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 44.5 MB / 300 MB, free: 6.074 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4514/0.553, allocations: 77.68 MB / 377.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.5534, allocations: 69.84 kB / 377.7 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05423/0.6076, allocations: 11.52 MB / 389.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6077, allocations: 0 / 389.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.946e-05/0.6077, allocations: 15.28 kB / 389.3 MB, free: 11.51 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002159/0.6099, allocations: 0.7009 MB / 390 MB, free: 11.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.61, allocations: 14.56 kB / 390 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000196/0.6102, allocations: 81.27 kB / 390.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/0.6107, allocations: 67.16 kB / 390.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007402/0.6115, allocations: 328.3 kB / 390.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.6117, allocations: 99.88 kB / 390.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001439/0.6118, allocations: 39.75 kB / 390.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.6132, allocations: 0.505 MB / 391.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.6132, allocations: 3.875 kB / 391.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.6133, allocations: 21.59 kB / 391.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.4e-05/0.6134, allocations: 7.656 kB / 391.1 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.6147, allocations: 0.5347 MB / 391.7 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/0.6181, allocations: 1.154 MB / 392.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.6194, allocations: 462.6 kB / 393.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006698/0.6201, allocations: 283.6 kB / 393.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.558e-05/0.6202, allocations: 11.56 kB / 393.5 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.6202, allocations: 42.81 kB / 393.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 4.187e-06/0.6202, allocations: 4 kB / 393.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.00543/0.6257, allocations: 1.983 MB / 395.6 MB, free: 9.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.6258, allocations: 81.67 kB / 395.7 MB, free: 9.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004207/0.6262, allocations: 251.2 kB / 395.9 MB, free: 9.332 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6263, allocations: 44.7 kB / 395.9 MB, free: 9.301 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.6265, allocations: 155.5 kB / 396.1 MB, free: 9.199 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.6267, allocations: 235 kB / 396.3 MB, free: 9.055 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/0.6268, allocations: 15.75 kB / 396.3 MB, free: 9.055 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.6269, allocations: 352.6 kB / 396.7 MB, free: 8.734 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000615/0.6275, allocations: 245 kB / 396.9 MB, free: 8.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006609/0.6282, allocations: 298.6 kB / 397.2 MB, free: 8.688 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005712/0.6288, allocations: 219.3 kB / 397.4 MB, free: 8.676 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6288, allocations: 0 / 397.4 MB, free: 8.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002272/0.6311, allocations: 0.7933 MB / 398.2 MB, free: 8.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.6311, allocations: 11.94 kB / 398.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-05/0.6312, allocations: 3.797 kB / 398.2 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001554/0.6327, allocations: 425.6 kB / 398.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007988/0.6336, allocations: 84.64 kB / 398.7 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.6355, allocations: 1 MB / 399.7 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.6367, allocations: 82.75 kB / 399.8 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.6368, allocations: 32.77 kB / 399.9 MB, free: 8.008 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002887/0.6371, allocations: 143.6 kB / 400 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.6373, allocations: 42.75 kB / 400 MB, free: 7.871 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002415/0.6398, allocations: 0.8214 MB / 400.9 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.6398, allocations: 3.969 kB / 400.9 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6398, allocations: 3.906 kB / 400.9 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.6399, allocations: 3.844 kB / 400.9 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004767/0.6446, allocations: 1.642 MB / 402.5 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.6447, allocations: 0 / 402.5 MB, free: 7.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007919/0.6455, allocations: 86.5 kB / 402.6 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.6471, allocations: 403.2 kB / 403 MB, free: 7.332 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001517/0.6473, allocations: 25.52 kB / 403 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001598/0.6489, allocations: 0.9772 MB / 404 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6489, allocations: 64 / 404 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003281/0.6522, allocations: 1.2 MB / 405.2 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.6527, allocations: 183.6 kB / 405.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.6529, allocations: 13.97 kB / 405.4 MB, free: 6.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008881/0.6538, allocations: 81.56 kB / 405.5 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003217/0.6541, allocations: 96.25 kB / 405.6 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.372e-05/0.6542, allocations: 30.95 kB / 405.6 MB, free: 6.402 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003358/0.6546, allocations: 205.5 kB / 405.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6546, allocations: 0 / 405.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008814/0.6555, allocations: 152.7 kB / 405.9 MB, free: 6.305 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003946/0.6594, allocations: 1.934 MB / 407.9 MB, free: 21.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.6614, allocations: 0.633 MB / 408.5 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.6614, allocations: 0 / 408.5 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.6625, allocations: 347 kB / 408.8 MB, free: 21.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006571/0.6631, allocations: 41.7 kB / 408.9 MB, free: 21.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00438/0.6675, allocations: 1.074 MB / 410 MB, free: 20.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.6681, allocations: 0.8331 MB / 410.8 MB, free: 20.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.6685, allocations: 62.11 kB / 410.8 MB, free: 20.19 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003518/0.6689, allocations: 133.4 kB / 411 MB, free: 20.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.193e-06/0.6689, allocations: 0 / 411 MB, free: 20.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05305/0.7219, allocations: 12.13 MB / 423.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003816/0.7224, allocations: 189.4 kB / 423.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.277/3.999, allocations: 3.844 kB / 423.3 MB, free: 13.86 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat