Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.925e-05, allocations: 0 / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3272, allocations: 44.5 MB / 294.2 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.4749, allocations: 75.27 MB / 369.5 MB, free: 6.578 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003872/0.4753, allocations: 71.95 kB / 369.6 MB, free: 6.508 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04412/0.5195, allocations: 6.459 MB / 376 MB, free: 32 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5195, allocations: 3.938 kB / 376 MB, free: 28 kB / 314.7 MB Notification: Performance of Transformations before backend: time 4.111e-05/0.5196, allocations: 11.98 kB / 376 MB, free: 16 kB / 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.002789/0.5224, allocations: 0.6466 MB / 376.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.27e-05/0.5225, allocations: 12.03 kB / 376.7 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.5227, allocations: 39.53 kB / 376.7 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.5235, allocations: 305.2 kB / 377 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.227e-05/0.5236, allocations: 12 kB / 377 MB, free: 14.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.5238, allocations: 20 kB / 377.1 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001552/0.5253, allocations: 357.4 kB / 377.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.5268, allocations: 346 kB / 377.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.627e-05/0.5268, allocations: 0 / 377.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.545e-05/0.5269, allocations: 0 / 377.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.346e-05/0.527, allocations: 8 kB / 377.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005844/0.5328, allocations: 1.234 MB / 379 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.5343, allocations: 319.9 kB / 379.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.535, allocations: 210 kB / 379.5 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001221/0.5352, allocations: 8.438 kB / 379.5 MB, free: 12.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.5353, allocations: 42.97 kB / 379.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 5.33e-06/0.5353, allocations: 0 / 379.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.008107/0.5434, allocations: 1.516 MB / 381.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.5435, allocations: 55.84 kB / 381.1 MB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003813/0.5439, allocations: 188.5 kB / 381.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001326/0.5441, allocations: 33.7 kB / 381.3 MB, free: 10.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.5443, allocations: 164.7 kB / 381.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002991/0.5446, allocations: 169.7 kB / 381.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.5447, allocations: 4 kB / 381.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.5449, allocations: 334.8 kB / 382 MB, free: 9.734 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007719/0.5457, allocations: 177.1 kB / 382.2 MB, free: 9.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009735/0.5467, allocations: 246.8 kB / 382.4 MB, free: 9.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.5478, allocations: 154 kB / 382.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.5478, allocations: 3.938 kB / 382.6 MB, free: 9.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004315/0.5521, allocations: 0.661 MB / 383.2 MB, free: 8.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.5522, allocations: 4 kB / 383.2 MB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/0.5522, allocations: 4 kB / 383.2 MB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002565/0.5548, allocations: 434.3 kB / 383.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009233/0.5558, allocations: 79.83 kB / 383.7 MB, free: 7.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.5611, allocations: 3.347 MB / 387.1 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.5622, allocations: 96 kB / 387.2 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-05/0.5623, allocations: 27.98 kB / 387.2 MB, free: 4.223 MB / 330.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.000279/0.5626, allocations: 116.7 kB / 387.3 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001849/0.5645, allocations: 0.5488 MB / 387.9 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.5646, allocations: 35.58 kB / 387.9 MB, free: 3.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.5671, allocations: 0.6676 MB / 388.6 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.5671, allocations: 11.98 kB / 388.6 MB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.5671, allocations: 4 kB / 388.6 MB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.5672, allocations: 3.953 kB / 388.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002844/0.57, allocations: 1.065 MB / 389.7 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.57, allocations: 4 kB / 389.7 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005896/0.5706, allocations: 59.95 kB / 389.7 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.5721, allocations: 414.2 kB / 390.1 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/0.5722, allocations: 11.97 kB / 390.1 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003815/0.5761, allocations: 3.314 MB / 393.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.5761, allocations: 0 / 393.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.5786, allocations: 0.8641 MB / 394.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003519/0.579, allocations: 152.7 kB / 394.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.5791, allocations: 8 kB / 394.5 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009074/0.58, allocations: 91.91 kB / 394.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003667/0.5804, allocations: 112.2 kB / 394.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.328e-05/0.5805, allocations: 19.98 kB / 394.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.5808, allocations: 150 kB / 394.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.5808, allocations: 0 / 394.8 MB, free: 12.19 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007934/0.5816, allocations: 112 kB / 394.9 MB, free: 12.08 MB / 346.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.002922/0.5845, allocations: 1.436 MB / 396.4 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.5865, allocations: 0.7316 MB / 397.1 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5865, allocations: 0 / 397.1 MB, free: 9.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.5876, allocations: 475.4 kB / 397.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006502/0.5883, allocations: 44.75 kB / 397.6 MB, free: 9.312 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.5917, allocations: 0.8606 MB / 398.5 MB, free: 8.418 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.5922, allocations: 0.8075 MB / 399.3 MB, free: 7.586 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.5925, allocations: 27.28 kB / 399.3 MB, free: 7.559 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.5928, allocations: 111.4 kB / 399.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5928, allocations: 0 / 399.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0524/0.6452, allocations: 10.76 MB / 410.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003245/0.6456, allocations: 146.6 kB / 410.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.059/3.704, allocations: 0 / 410.3 MB, free: 12.5 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat