Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.304e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.098, allocations: 44.5 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5402, allocations: 76.3 MB / 376.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.5405, allocations: 70.94 kB / 376.3 MB, free: 12.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04802/0.5885, allocations: 9.899 MB / 386.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.5886, allocations: 6.953 kB / 386.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.5886, allocations: 3.844 kB / 386.2 MB, free: 11.83 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.001513/0.5902, allocations: 0.5908 MB / 386.8 MB, free: 11.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.5902, allocations: 10.09 kB / 386.8 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.5904, allocations: 74.92 kB / 386.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.5909, allocations: 55.42 kB / 387 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/0.5914, allocations: 286.1 kB / 387.3 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.5916, allocations: 86.64 kB / 387.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.5917, allocations: 37.52 kB / 387.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009483/0.5927, allocations: 378.9 kB / 387.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.5927, allocations: 3.938 kB / 387.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.925e-05/0.5928, allocations: 14.34 kB / 387.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.5928, allocations: 7.781 kB / 387.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009858/0.5938, allocations: 417.2 kB / 388.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002053/0.5959, allocations: 0.8992 MB / 389.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009216/0.5969, allocations: 347.7 kB / 389.4 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/0.5974, allocations: 202.4 kB / 389.6 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.39e-05/0.5975, allocations: 8.234 kB / 389.6 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.5975, allocations: 38.94 kB / 389.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.646e-06/0.5975, allocations: 3.938 kB / 389.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004021/0.6015, allocations: 1.54 MB / 391.2 MB, free: 9.965 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.6016, allocations: 81.55 kB / 391.3 MB, free: 9.871 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.602, allocations: 216 kB / 391.5 MB, free: 9.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.174e-05/0.6021, allocations: 39.67 kB / 391.5 MB, free: 9.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.919e-05/0.6022, allocations: 138.8 kB / 391.7 MB, free: 9.633 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.6024, allocations: 179.7 kB / 391.8 MB, free: 9.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.514e-05/0.6024, allocations: 9.5 kB / 391.9 MB, free: 9.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.997e-05/0.6025, allocations: 340.6 kB / 392.2 MB, free: 9.207 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.6029, allocations: 166.3 kB / 392.4 MB, free: 9.207 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.6034, allocations: 205.4 kB / 392.6 MB, free: 9.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000449/0.6039, allocations: 166.5 kB / 392.7 MB, free: 9.168 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6039, allocations: 4.031 kB / 392.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00139/0.6053, allocations: 0.5544 MB / 393.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.6054, allocations: 7.531 kB / 393.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.6054, allocations: 0 / 393.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.6065, allocations: 238.5 kB / 393.5 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006219/0.6071, allocations: 72.91 kB / 393.6 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00509/0.6122, allocations: 2.673 MB / 396.3 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/0.6129, allocations: 39.08 kB / 396.3 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-05/0.613, allocations: 20.92 kB / 396.3 MB, free: 7.652 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.0001767/0.6132, allocations: 134.2 kB / 396.4 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.6133, allocations: 30.97 kB / 396.5 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.6135, allocations: 47.06 kB / 396.5 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.6135, allocations: 7.75 kB / 396.5 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.6135, allocations: 0 / 396.5 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.6135, allocations: 6.719 kB / 396.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.6163, allocations: 1.188 MB / 397.7 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.6163, allocations: 4 kB / 397.7 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006377/0.617, allocations: 70.39 kB / 397.8 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009779/0.618, allocations: 231.4 kB / 398 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.439e-05/0.6181, allocations: 16.92 kB / 398 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004791/0.6229, allocations: 2.581 MB / 400.6 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.623, allocations: 0 / 400.6 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.6253, allocations: 0.8631 MB / 401.5 MB, free: 21.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/0.6256, allocations: 158.5 kB / 401.6 MB, free: 21.41 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.557e-05/0.6257, allocations: 10.5 kB / 401.6 MB, free: 21.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.6263, allocations: 36.19 kB / 401.7 MB, free: 21.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/0.6266, allocations: 83.91 kB / 401.8 MB, free: 21.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-05/0.6267, allocations: 18.83 kB / 401.8 MB, free: 21.4 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002694/0.6269, allocations: 176.6 kB / 402 MB, free: 21.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.627, allocations: 0 / 402 MB, free: 21.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001029/0.628, allocations: 169.5 kB / 402.1 MB, free: 21.3 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.002872/0.6309, allocations: 1.545 MB / 403.7 MB, free: 20.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.6326, allocations: 0.6087 MB / 404.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6326, allocations: 0 / 404.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.6336, allocations: 434.7 kB / 404.7 MB, free: 20.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.6342, allocations: 36.36 kB / 404.7 MB, free: 20.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.6365, allocations: 0.6951 MB / 405.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.637, allocations: 0.8042 MB / 406.2 MB, free: 19.19 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004392/0.6375, allocations: 67.36 kB / 406.3 MB, free: 19.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002858/0.6378, allocations: 95.38 kB / 406.4 MB, free: 19.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6378, allocations: 1.281 kB / 406.4 MB, free: 19.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03972/0.6776, allocations: 9.64 MB / 416 MB, free: 15.66 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/0.6779, allocations: 185.3 kB / 416.2 MB, free: 15.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.909/3.587, allocations: 0 / 416.2 MB, free: 15.43 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat