Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.295/2.295, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.771e-05/2.753e-05, allocations: 2.75 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5776/0.6809, allocations: 75.26 MB / 369.6 MB, free: 7.016 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.6813, allocations: 70.98 kB / 369.6 MB, free: 7.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03632/0.7176, allocations: 6.474 MB / 376.1 MB, free: 22.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.7176, allocations: 0 / 376.1 MB, free: 22.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.659e-05/0.7177, allocations: 7.75 kB / 376.1 MB, free: 22.31 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00233/0.72, allocations: 0.6528 MB / 376.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/0.7201, allocations: 11.34 kB / 376.8 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.7203, allocations: 39 kB / 376.8 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.7209, allocations: 295.3 kB / 377.1 MB, free: 21.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.721, allocations: 11.62 kB / 377.1 MB, free: 21.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.7211, allocations: 23.41 kB / 377.1 MB, free: 21.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00116/0.7223, allocations: 355.7 kB / 377.5 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.7233, allocations: 345.4 kB / 377.8 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.664e-05/0.7234, allocations: 4 kB / 377.8 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.36e-05/0.7235, allocations: 0 / 377.8 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.7235, allocations: 7.75 kB / 377.8 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004625/0.7282, allocations: 1.234 MB / 379.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.7293, allocations: 325 kB / 379.4 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005379/0.7298, allocations: 195.5 kB / 379.6 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.73, allocations: 12.09 kB / 379.6 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.73, allocations: 42.61 kB / 379.6 MB, free: 20.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 4.448e-06/0.73, allocations: 0 / 379.6 MB, free: 20.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006087/0.7361, allocations: 1.517 MB / 381.1 MB, free: 19.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.7362, allocations: 55.75 kB / 381.2 MB, free: 19.8 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.7365, allocations: 184.3 kB / 381.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.7367, allocations: 37.36 kB / 381.4 MB, free: 19.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.7368, allocations: 168.5 kB / 381.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/0.737, allocations: 170.8 kB / 381.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.7371, allocations: 0 / 381.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.7373, allocations: 340 kB / 382.1 MB, free: 19.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/0.7378, allocations: 183.2 kB / 382.2 MB, free: 19.08 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.7384, allocations: 240.5 kB / 382.5 MB, free: 19.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/0.7391, allocations: 153.7 kB / 382.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.7392, allocations: 3.906 kB / 382.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002955/0.7421, allocations: 0.6573 MB / 383.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.7422, allocations: 9.938 kB / 383.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/0.7423, allocations: 3.969 kB / 383.3 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.744, allocations: 437.5 kB / 383.7 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000658/0.7447, allocations: 70.3 kB / 383.8 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004588/0.7493, allocations: 3.343 MB / 387.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.7505, allocations: 94.34 kB / 387.2 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.7507, allocations: 31.3 kB / 387.3 MB, free: 15.59 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0003297/0.751, allocations: 122.6 kB / 387.4 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002084/0.7531, allocations: 0.5432 MB / 387.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.7533, allocations: 38.8 kB / 388 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.756, allocations: 0.6718 MB / 388.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.756, allocations: 3.875 kB / 388.6 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.756, allocations: 11.8 kB / 388.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.7561, allocations: 3.953 kB / 388.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.7592, allocations: 1.066 MB / 389.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.7593, allocations: 0 / 389.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007032/0.76, allocations: 66.58 kB / 389.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.7616, allocations: 412.6 kB / 390.2 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.375e-05/0.7617, allocations: 15.66 kB / 390.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004344/0.766, allocations: 3.315 MB / 393.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.7661, allocations: 3.984 kB / 393.5 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002655/0.7688, allocations: 0.853 MB / 394.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003609/0.7692, allocations: 151.3 kB / 394.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.7693, allocations: 15.45 kB / 394.5 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.7704, allocations: 92.97 kB / 394.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.7708, allocations: 106.5 kB / 394.7 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.222e-05/0.7709, allocations: 31.22 kB / 394.8 MB, free: 10.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002257/0.7712, allocations: 151.6 kB / 394.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7712, allocations: 0 / 394.9 MB, free: 10.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000877/0.7721, allocations: 112.8 kB / 395 MB, free: 10.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.003194/0.7753, allocations: 1.438 MB / 396.5 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.7774, allocations: 0.7282 MB / 397.2 MB, free: 9.703 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.7775, allocations: 4.25 kB / 397.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.7788, allocations: 480.1 kB / 397.7 MB, free: 9.457 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008772/0.7797, allocations: 41.62 kB / 397.7 MB, free: 9.449 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003714/0.7834, allocations: 0.85 MB / 398.6 MB, free: 8.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000514/0.784, allocations: 0.8052 MB / 399.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.7843, allocations: 30.75 kB / 399.4 MB, free: 8.164 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.7846, allocations: 109.5 kB / 399.5 MB, free: 8.141 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.7846, allocations: 0 / 399.5 MB, free: 8.141 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06975/0.8543, allocations: 10.76 MB / 410.3 MB, free: 2.793 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002624/0.8547, allocations: 155.1 kB / 410.4 MB, free: 2.598 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.704/4.559, allocations: 0 / 410.4 MB, free: 2.598 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat