Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.194e-05/3.2e-05, allocations: 4 kB / 292.7 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 50.41 MB / 343.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4835/0.5904, allocations: 81.31 MB / 424.5 MB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.5908, allocations: 70.7 kB / 424.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04492/0.6357, allocations: 9.495 MB / 434 MB, free: 4.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6358, allocations: 0 / 434 MB, free: 4.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.6358, allocations: 8 kB / 434 MB, free: 4.848 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001425/0.6373, allocations: 0.5661 MB / 434.6 MB, free: 4.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.6373, allocations: 8.031 kB / 434.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.6375, allocations: 62.36 kB / 434.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.6379, allocations: 55.59 kB / 434.7 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005484/0.6385, allocations: 279.5 kB / 435 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.6387, allocations: 86.08 kB / 435.1 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.795e-05/0.6388, allocations: 30.19 kB / 435.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.6397, allocations: 344.7 kB / 435.5 MB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.6398, allocations: 3.906 kB / 435.5 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.821e-05/0.6398, allocations: 17.77 kB / 435.5 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.6399, allocations: 15.98 kB / 435.5 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.6409, allocations: 372 kB / 435.9 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002929/0.6438, allocations: 1.157 MB / 437 MB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008496/0.6447, allocations: 319.1 kB / 437.3 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004265/0.6452, allocations: 156.8 kB / 437.5 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.111e-05/0.6452, allocations: 4 kB / 437.5 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.6453, allocations: 41.75 kB / 437.5 MB, free: 1.812 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.617e-06/0.6453, allocations: 0 / 437.5 MB, free: 1.812 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00379/0.6491, allocations: 1.316 MB / 438.8 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.6492, allocations: 84.86 kB / 438.9 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003346/0.6496, allocations: 195 kB / 439.1 MB, free: 420 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.027e-05/0.6496, allocations: 32.08 kB / 439.1 MB, free: 388 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.6498, allocations: 138.1 kB / 439.3 MB, free: 260 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.65, allocations: 151.3 kB / 439.4 MB, free: 128 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.938e-05/0.65, allocations: 7.5 kB / 439.4 MB, free: 124 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.6502, allocations: 340.4 kB / 439.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004182/0.6506, allocations: 149.3 kB / 439.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.6511, allocations: 201.4 kB / 440.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004317/0.6516, allocations: 139.4 kB / 440.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.6516, allocations: 4.031 kB / 440.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001473/0.6531, allocations: 0.501 MB / 440.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.6531, allocations: 4 kB / 440.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.6531, allocations: 0 / 440.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.6543, allocations: 241.8 kB / 441 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.6547, allocations: 59.77 kB / 441 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005418/0.6602, allocations: 2.628 MB / 443.7 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005194/0.6607, allocations: 30.89 kB / 443.7 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.408e-05/0.6608, allocations: 19.61 kB / 443.7 MB, free: 12.58 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001759/0.661, allocations: 124.5 kB / 443.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.6611, allocations: 27.67 kB / 443.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.6613, allocations: 42.45 kB / 443.9 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.6613, allocations: 4 kB / 443.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.6613, allocations: 3.938 kB / 443.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.6613, allocations: 0 / 443.9 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.6638, allocations: 1.038 MB / 445 MB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.6638, allocations: 4 kB / 445 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004519/0.6643, allocations: 51.89 kB / 445 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001022/0.6653, allocations: 220.9 kB / 445.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.158e-05/0.6654, allocations: 14.55 kB / 445.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/0.6708, allocations: 2.588 MB / 447.8 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6708, allocations: 4.062 kB / 447.8 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001881/0.6727, allocations: 0.7287 MB / 448.6 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.6731, allocations: 136.8 kB / 448.7 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.6732, allocations: 12 kB / 448.7 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/0.6737, allocations: 32.03 kB / 448.7 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.674, allocations: 75.81 kB / 448.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.609e-05/0.674, allocations: 12 kB / 448.8 MB, free: 8.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002487/0.6743, allocations: 160.3 kB / 449 MB, free: 8.176 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6743, allocations: 0 / 449 MB, free: 8.176 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001004/0.6753, allocations: 147.9 kB / 449.1 MB, free: 8.031 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.003176/0.6785, allocations: 1.343 MB / 450.5 MB, free: 6.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.6801, allocations: 0.5498 MB / 451 MB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.6802, allocations: 4.062 kB / 451 MB, free: 6.094 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009172/0.6811, allocations: 384 kB / 451.4 MB, free: 5.707 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.6815, allocations: 23.98 kB / 451.4 MB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.6835, allocations: 0.6127 MB / 452 MB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.684, allocations: 0.7881 MB / 452.8 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003623/0.6843, allocations: 58.95 kB / 452.9 MB, free: 4.168 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.6846, allocations: 83.39 kB / 453 MB, free: 4.086 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6846, allocations: 0 / 453 MB, free: 4.086 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04384/0.7285, allocations: 8.702 MB / 461.7 MB, free: 11.49 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003107/0.7288, allocations: 186 kB / 461.8 MB, free: 11.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/3.69, allocations: 0 / 461.8 MB, free: 11.26 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat