Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.222e-05, allocations: 0 / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4331/0.5398, allocations: 77.67 MB / 377.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/0.5401, allocations: 70.5 kB / 377.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05485/0.595, allocations: 11.53 MB / 389.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.5951, allocations: 0 / 389.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.267e-05/0.5951, allocations: 11.41 kB / 389.2 MB, free: 11.74 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.002898/0.5981, allocations: 0.7087 MB / 389.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.593e-05/0.5982, allocations: 7.781 kB / 389.9 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002626/0.5984, allocations: 80.11 kB / 390 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007594/0.5992, allocations: 63.77 kB / 390.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009904/0.6002, allocations: 333.4 kB / 390.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002395/0.6005, allocations: 98.64 kB / 390.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.6008, allocations: 44.47 kB / 390.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.6028, allocations: 0.503 MB / 391.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.17e-05/0.6029, allocations: 3.844 kB / 391.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.603, allocations: 15.59 kB / 391.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.6031, allocations: 7.469 kB / 391.1 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/0.6052, allocations: 0.5378 MB / 391.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00521/0.6105, allocations: 1.163 MB / 392.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.6124, allocations: 460.8 kB / 393.2 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.6137, allocations: 281.2 kB / 393.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001375/0.6138, allocations: 15.64 kB / 393.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.6139, allocations: 38.75 kB / 393.6 MB, free: 10.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 5.68e-06/0.6139, allocations: 0 / 393.6 MB, free: 10.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=71): time 0.008492/0.6224, allocations: 1.981 MB / 395.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.6225, allocations: 85.64 kB / 395.6 MB, free: 9.664 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004191/0.623, allocations: 248.6 kB / 395.9 MB, free: 9.566 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.6231, allocations: 49.27 kB / 395.9 MB, free: 9.535 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.6232, allocations: 206.2 kB / 396.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.6234, allocations: 239.5 kB / 396.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-05/0.6235, allocations: 17.16 kB / 396.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.937e-05/0.6236, allocations: 339.2 kB / 396.7 MB, free: 8.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000626/0.6242, allocations: 243.7 kB / 396.9 MB, free: 8.895 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006643/0.6249, allocations: 297.8 kB / 397.2 MB, free: 8.855 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005797/0.6255, allocations: 208.8 kB / 397.4 MB, free: 8.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.6255, allocations: 3.875 kB / 397.4 MB, free: 8.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002147/0.6277, allocations: 0.7827 MB / 398.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/0.6277, allocations: 5.406 kB / 398.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.6278, allocations: 0 / 398.2 MB, free: 8.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/0.6293, allocations: 430 kB / 398.6 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/0.6301, allocations: 87 kB / 398.7 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/0.6317, allocations: 0.9987 MB / 399.7 MB, free: 8.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/0.6328, allocations: 82.39 kB / 399.8 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.6329, allocations: 30.11 kB / 399.8 MB, free: 8.188 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.0002303/0.6332, allocations: 146.3 kB / 400 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.6333, allocations: 42.75 kB / 400 MB, free: 8.043 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.6356, allocations: 0.8179 MB / 400.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.6357, allocations: 7.75 kB / 400.8 MB, free: 7.961 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.6357, allocations: 4 kB / 400.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.6357, allocations: 7.359 kB / 400.9 MB, free: 7.953 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004203/0.6399, allocations: 1.65 MB / 402.5 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.64, allocations: 4.062 kB / 402.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/0.6407, allocations: 88.25 kB / 402.6 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00138/0.6421, allocations: 394.5 kB / 403 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.182e-05/0.6422, allocations: 20.44 kB / 403 MB, free: 7.504 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001479/0.6437, allocations: 0.9808 MB / 404 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6437, allocations: 3.875 kB / 404 MB, free: 6.953 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002966/0.6467, allocations: 1.184 MB / 405.2 MB, free: 6.703 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003848/0.6471, allocations: 186.1 kB / 405.4 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.6473, allocations: 17.62 kB / 405.4 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008338/0.6481, allocations: 75.33 kB / 405.4 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.6484, allocations: 102.9 kB / 405.5 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.803e-05/0.6485, allocations: 29.36 kB / 405.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000284/0.6488, allocations: 206.1 kB / 405.8 MB, free: 6.496 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6488, allocations: 4 kB / 405.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007997/0.6496, allocations: 157.3 kB / 405.9 MB, free: 6.48 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.003364/0.653, allocations: 1.938 MB / 407.9 MB, free: 5.559 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.6549, allocations: 0.6248 MB / 408.5 MB, free: 5.504 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.6549, allocations: 4.125 kB / 408.5 MB, free: 5.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009569/0.6559, allocations: 348.3 kB / 408.8 MB, free: 5.484 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.6565, allocations: 45.12 kB / 408.9 MB, free: 5.477 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.6608, allocations: 1.102 MB / 410 MB, free: 5.098 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.6615, allocations: 0.8335 MB / 410.8 MB, free: 20.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.6619, allocations: 133.6 kB / 410.9 MB, free: 20.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6619, allocations: 0 / 410.9 MB, free: 20.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.922/3.584, allocations: 8.55 MB / 419.5 MB, free: 16.16 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat