Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.308/2.308, allocations: 225.8 MB / 239.3 MB, free: 1.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.389e-05/4.4e-05, allocations: 4 kB / 292.7 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 50.4 MB / 343.1 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.5835, allocations: 81.78 MB / 424.9 MB, free: 7.969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.5839, allocations: 72.25 kB / 425 MB, free: 7.969 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07114/0.6551, allocations: 10.31 MB / 435.3 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.6552, allocations: 0 / 435.3 MB, free: 4.738 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.263e-05/0.6552, allocations: 3.844 kB / 435.3 MB, free: 4.738 MB / 330.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.002388/0.6576, allocations: 0.5879 MB / 435.9 MB, free: 4.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.6577, allocations: 11.31 kB / 435.9 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002645/0.658, allocations: 72.88 kB / 436 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008066/0.6588, allocations: 49.17 kB / 436 MB, free: 4.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008631/0.6598, allocations: 291.2 kB / 436.3 MB, free: 3.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002702/0.6601, allocations: 93.45 kB / 436.4 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/0.6603, allocations: 28.53 kB / 436.4 MB, free: 3.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.6617, allocations: 380.7 kB / 436.8 MB, free: 3.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.501e-05/0.6619, allocations: 10.88 kB / 436.8 MB, free: 3.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.614e-05/0.662, allocations: 8.125 kB / 436.8 MB, free: 3.73 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.662, allocations: 11.86 kB / 436.8 MB, free: 3.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.6638, allocations: 414.8 kB / 437.2 MB, free: 3.668 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.6672, allocations: 0.8992 MB / 438.1 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.6687, allocations: 346.2 kB / 438.5 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008299/0.6696, allocations: 197.6 kB / 438.7 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.299e-05/0.6697, allocations: 11.86 kB / 438.7 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.6698, allocations: 34.25 kB / 438.7 MB, free: 3.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 5.26e-06/0.6698, allocations: 0 / 438.7 MB, free: 3.051 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.006544/0.6764, allocations: 1.542 MB / 440.3 MB, free: 2.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.496e-05/0.6765, allocations: 93.52 kB / 440.4 MB, free: 2.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004996/0.677, allocations: 206.1 kB / 440.6 MB, free: 2.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.6772, allocations: 39.11 kB / 440.6 MB, free: 2.137 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.6774, allocations: 137.6 kB / 440.7 MB, free: 2.027 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.6777, allocations: 173.9 kB / 440.9 MB, free: 1.902 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/0.6778, allocations: 18.66 kB / 440.9 MB, free: 1.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.678, allocations: 339.4 kB / 441.2 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007268/0.6787, allocations: 167 kB / 441.4 MB, free: 1.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008097/0.6796, allocations: 208 kB / 441.6 MB, free: 1.527 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007328/0.6803, allocations: 162.6 kB / 441.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.6804, allocations: 0 / 441.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002278/0.6827, allocations: 0.5493 MB / 442.3 MB, free: 1.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.463e-05/0.6828, allocations: 8 kB / 442.3 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.6828, allocations: 3.875 kB / 442.3 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.6845, allocations: 239.5 kB / 442.6 MB, free: 1.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000916/0.6855, allocations: 73.75 kB / 442.6 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008409/0.694, allocations: 2.678 MB / 445.3 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.6951, allocations: 37.91 kB / 445.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.6953, allocations: 18.61 kB / 445.4 MB, free: 15.73 MB / 346.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.0003117/0.6957, allocations: 132.8 kB / 445.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002041/0.6959, allocations: 34.89 kB / 445.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.6961, allocations: 52.92 kB / 445.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.6961, allocations: 7.219 kB / 445.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6962, allocations: 0 / 445.6 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.49e-05/0.6962, allocations: 3.984 kB / 445.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004731/0.7009, allocations: 1.186 MB / 446.8 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/0.701, allocations: 0 / 446.8 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.7021, allocations: 77.88 kB / 446.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001823/0.7039, allocations: 219.5 kB / 447.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/0.7042, allocations: 14.45 kB / 447.1 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008378/0.7126, allocations: 2.601 MB / 449.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.7127, allocations: 0 / 449.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003363/0.716, allocations: 0.8637 MB / 450.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005919/0.7167, allocations: 151 kB / 450.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/0.7169, allocations: 15.59 kB / 450.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.718, allocations: 39 kB / 450.8 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004799/0.7185, allocations: 78.78 kB / 450.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7186, allocations: 15.5 kB / 450.8 MB, free: 12.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004492/0.7191, allocations: 173.4 kB / 451 MB, free: 12.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.12e-06/0.7192, allocations: 0 / 451 MB, free: 12.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001653/0.7208, allocations: 161.8 kB / 451.2 MB, free: 12.88 MB / 346.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.004727/0.7256, allocations: 1.555 MB / 452.7 MB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.7285, allocations: 0.6133 MB / 453.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.7286, allocations: 0 / 453.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.7304, allocations: 432.8 kB / 453.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008752/0.7313, allocations: 27.77 kB / 453.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.7353, allocations: 0.7005 MB / 454.5 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.736, allocations: 0.8015 MB / 455.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006753/0.7367, allocations: 61.73 kB / 455.4 MB, free: 10.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004663/0.7372, allocations: 103.8 kB / 455.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.703e-06/0.7373, allocations: 0 / 455.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05874/0.796, allocations: 9.649 MB / 465.1 MB, free: 1.457 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003383/0.7964, allocations: 178.1 kB / 465.3 MB, free: 1.238 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.158/3.955, allocations: 0 / 465.3 MB, free: 1.238 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat