Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3.03e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09476/0.09482, allocations: 44.5 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4625/0.5573, allocations: 76.3 MB / 376.2 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.5577, allocations: 71.38 kB / 376.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04799/0.6057, allocations: 9.9 MB / 386.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6058, allocations: 0 / 386.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.729e-05/0.6058, allocations: 13.77 kB / 386.2 MB, free: 11.94 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001679/0.6075, allocations: 0.5928 MB / 386.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.6076, allocations: 7.75 kB / 386.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.6077, allocations: 72.5 kB / 386.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004909/0.6082, allocations: 60.05 kB / 386.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.6088, allocations: 275.7 kB / 387.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.609, allocations: 91.97 kB / 387.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.662e-05/0.6091, allocations: 36.92 kB / 387.3 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009444/0.6101, allocations: 380.8 kB / 387.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.6102, allocations: 3.094 kB / 387.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.6102, allocations: 12.97 kB / 387.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.6103, allocations: 7.25 kB / 387.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.6113, allocations: 419.1 kB / 388.1 MB, free: 11.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.6136, allocations: 0.8969 MB / 389 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000893/0.6145, allocations: 360.8 kB / 389.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004749/0.615, allocations: 203.1 kB / 389.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.616e-05/0.6151, allocations: 19.23 kB / 389.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.6151, allocations: 34.06 kB / 389.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.667e-06/0.6151, allocations: 3.938 kB / 389.6 MB, free: 10.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004004/0.6192, allocations: 1.534 MB / 391.2 MB, free: 10.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.6193, allocations: 85.39 kB / 391.3 MB, free: 9.969 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.6196, allocations: 212.9 kB / 391.5 MB, free: 9.871 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.348e-05/0.6197, allocations: 36.2 kB / 391.5 MB, free: 9.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/0.6198, allocations: 190.9 kB / 391.7 MB, free: 9.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.62, allocations: 191.8 kB / 391.9 MB, free: 9.559 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.181e-05/0.62, allocations: 11.03 kB / 391.9 MB, free: 9.559 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.564e-05/0.6201, allocations: 331.5 kB / 392.2 MB, free: 9.242 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004409/0.6206, allocations: 162.7 kB / 392.4 MB, free: 9.242 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004773/0.6211, allocations: 210 kB / 392.6 MB, free: 9.215 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.6215, allocations: 162.5 kB / 392.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.6215, allocations: 3.844 kB / 392.7 MB, free: 9.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001333/0.6229, allocations: 0.5425 MB / 393.3 MB, free: 9.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.6229, allocations: 3.875 kB / 393.3 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.6229, allocations: 4.031 kB / 393.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.624, allocations: 247.8 kB / 393.5 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.6247, allocations: 68.77 kB / 393.6 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005218/0.6299, allocations: 2.67 MB / 396.3 MB, free: 7.699 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006571/0.6306, allocations: 46.97 kB / 396.3 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.63e-05/0.6308, allocations: 20.06 kB / 396.3 MB, free: 7.691 MB / 314.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.0001817/0.6309, allocations: 122.1 kB / 396.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.6311, allocations: 35.16 kB / 396.5 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.6312, allocations: 49.69 kB / 396.5 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.6312, allocations: 15.81 kB / 396.5 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.6313, allocations: 0 / 396.5 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.6313, allocations: 6.953 kB / 396.5 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.634, allocations: 1.186 MB / 397.7 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.6341, allocations: 0 / 397.7 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006452/0.6347, allocations: 68.77 kB / 397.8 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009856/0.6358, allocations: 232.5 kB / 398 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-05/0.6359, allocations: 13.84 kB / 398 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00501/0.6409, allocations: 2.578 MB / 400.6 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.641, allocations: 8.031 kB / 400.6 MB, free: 5.766 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001971/0.6429, allocations: 0.8606 MB / 401.5 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002919/0.6433, allocations: 148.1 kB / 401.6 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.6434, allocations: 11.25 kB / 401.6 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005979/0.644, allocations: 44.73 kB / 401.7 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.6443, allocations: 85.39 kB / 401.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-05/0.6444, allocations: 17.89 kB / 401.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004356/0.6448, allocations: 171.1 kB / 402 MB, free: 21.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6448, allocations: 0 / 402 MB, free: 21.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009684/0.6458, allocations: 168.3 kB / 402.1 MB, free: 21.35 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.002864/0.6487, allocations: 1.545 MB / 403.7 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.6504, allocations: 0.6286 MB / 404.3 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6504, allocations: 0 / 404.3 MB, free: 20.38 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.6514, allocations: 444.7 kB / 404.7 MB, free: 20.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.652, allocations: 26.5 kB / 404.8 MB, free: 20.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002264/0.6543, allocations: 0.7282 MB / 405.5 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004776/0.6548, allocations: 0.8055 MB / 406.3 MB, free: 19.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/0.6552, allocations: 110.5 kB / 406.4 MB, free: 19.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6552, allocations: 0 / 406.4 MB, free: 19.18 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.806/3.461, allocations: 7.024 MB / 413.4 MB, free: 17.05 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat