Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.833/2.833, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.842e-05/4.853e-05, allocations: 4 kB / 323.5 MB, free: 4.219 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4311/0.4312, allocations: 58.82 MB / 382.3 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1771/0.6084, allocations: 91.45 MB / 473.7 MB, free: 1.051 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.6086, allocations: 63.97 kB / 473.8 MB, free: 0.9883 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.05801/0.6667, allocations: 11.89 MB / 485.7 MB, free: 5.059 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6667, allocations: 3.938 kB / 485.7 MB, free: 5.055 MB / 410.8 MB Notification: Performance of Transformations before backend: time 4.736e-05/0.6668, allocations: 12 kB / 485.7 MB, free: 5.043 MB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003487/0.6703, allocations: 0.9389 MB / 486.6 MB, free: 4.055 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/0.6704, allocations: 12.03 kB / 486.7 MB, free: 4.043 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002811/0.6707, allocations: 98.5 kB / 486.8 MB, free: 3.938 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002632/0.671, allocations: 83.06 kB / 486.8 MB, free: 3.855 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.6719, allocations: 404.7 kB / 487.2 MB, free: 3.422 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-05/0.672, allocations: 49.25 kB / 487.3 MB, free: 3.375 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000209/0.6722, allocations: 63.91 kB / 487.3 MB, free: 3.312 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.6742, allocations: 0.7347 MB / 488.1 MB, free: 2.543 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/0.6743, allocations: 11.84 kB / 488.1 MB, free: 2.531 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.6744, allocations: 27.95 kB / 488.1 MB, free: 2.504 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.6744, allocations: 16 kB / 488.1 MB, free: 2.488 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.6763, allocations: 0.5941 MB / 488.7 MB, free: 1.895 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007505/0.6839, allocations: 2.582 MB / 491.3 MB, free: 15.19 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.6857, allocations: 0.5614 MB / 491.9 MB, free: 14.59 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000961/0.6867, allocations: 331.6 kB / 492.2 MB, free: 14.26 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001302/0.6869, allocations: 15.98 kB / 492.2 MB, free: 14.24 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.6869, allocations: 50.5 kB / 492.3 MB, free: 14.18 MB / 426.8 MB Notification: Performance of pre-optimization done (n=78): time 4.298e-06/0.6869, allocations: 0 / 492.3 MB, free: 14.18 MB / 426.8 MB Notification: Performance of matching and sorting (n=82): time 0.007217/0.6942, allocations: 2.39 MB / 494.6 MB, free: 11.6 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.6943, allocations: 140.5 kB / 494.8 MB, free: 11.43 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006306/0.695, allocations: 327 kB / 495.1 MB, free: 11.1 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002843/0.6953, allocations: 53.69 kB / 495.2 MB, free: 11.04 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002917/0.6956, allocations: 260.7 kB / 495.4 MB, free: 10.78 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/0.696, allocations: 276.1 kB / 495.7 MB, free: 10.51 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-05/0.6961, allocations: 23.98 kB / 495.7 MB, free: 10.48 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.6963, allocations: 370.8 kB / 496.1 MB, free: 10.11 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000978/0.6973, allocations: 310 kB / 496.4 MB, free: 9.809 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/0.6984, allocations: 467.4 kB / 496.8 MB, free: 9.301 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008086/0.6993, allocations: 272.2 kB / 497.1 MB, free: 9.039 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.6993, allocations: 0 / 497.1 MB, free: 9.039 MB / 426.8 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003964/0.7033, allocations: 1.1 MB / 498.2 MB, free: 7.926 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.138e-05/0.7033, allocations: 8.781 kB / 498.2 MB, free: 7.918 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.244e-05/0.7034, allocations: 12 kB / 498.2 MB, free: 7.906 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/0.7054, allocations: 0.5853 MB / 498.8 MB, free: 7.309 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.7065, allocations: 155.7 kB / 498.9 MB, free: 7.156 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/0.7098, allocations: 2.573 MB / 0.4898 GB, free: 4.48 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.7118, allocations: 195.9 kB / 0.49 GB, free: 4.289 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.712, allocations: 43.98 kB / 0.49 GB, free: 4.246 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000355/0.7123, allocations: 163.9 kB / 0.4902 GB, free: 4.078 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.7126, allocations: 63.2 kB / 0.4902 GB, free: 4.016 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003795/0.7164, allocations: 1.029 MB / 0.4912 GB, free: 2.957 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/0.7165, allocations: 12 kB / 0.4912 GB, free: 2.945 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.7165, allocations: 3.953 kB / 0.4912 GB, free: 2.941 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.7165, allocations: 3.984 kB / 0.4912 GB, free: 2.938 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005768/0.7223, allocations: 2.023 MB / 0.4932 GB, free: 0.8359 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.7224, allocations: 0 / 0.4932 GB, free: 0.8359 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/0.7236, allocations: 135.9 kB / 0.4933 GB, free: 0.7031 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/0.7254, allocations: 0.5459 MB / 0.4939 GB, free: 148 kB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/0.7256, allocations: 35.95 kB / 0.4939 GB, free: 112 kB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003065/0.7287, allocations: 2.522 MB / 0.4964 GB, free: 13.48 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.7288, allocations: 0 / 0.4964 GB, free: 13.48 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004541/0.7333, allocations: 1.622 MB / 0.498 GB, free: 11.8 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005594/0.7339, allocations: 212.2 kB / 0.4982 GB, free: 11.57 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.7342, allocations: 28 kB / 0.4982 GB, free: 11.54 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.7359, allocations: 187.7 kB / 0.4984 GB, free: 11.36 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005658/0.7365, allocations: 171.5 kB / 0.4985 GB, free: 11.19 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.7367, allocations: 43.95 kB / 0.4986 GB, free: 11.15 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0004683/0.7372, allocations: 261.2 kB / 0.4988 GB, free: 10.89 MB / 442.8 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7372, allocations: 0 / 0.4988 GB, free: 10.89 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.001185/0.7384, allocations: 199.9 kB / 0.499 GB, free: 10.7 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005052/0.7434, allocations: 2.571 MB / 0.5015 GB, free: 8.062 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.7464, allocations: 0.9105 MB / 0.5024 GB, free: 7.125 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7465, allocations: 0 / 0.5024 GB, free: 7.125 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.7483, allocations: 472.5 kB / 0.5029 GB, free: 6.664 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.7496, allocations: 91.62 kB / 0.5029 GB, free: 6.578 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009069/0.7587, allocations: 2.159 MB / 0.5051 GB, free: 4.359 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006833/0.7594, allocations: 0.9301 MB / 0.506 GB, free: 3.402 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.7599, allocations: 56.81 kB / 0.506 GB, free: 3.344 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004464/0.7604, allocations: 211.4 kB / 0.5062 GB, free: 3.141 MB / 442.8 MB Notification: Performance of SimCode: time 1.413e-06/0.7604, allocations: 0 / 0.5062 GB, free: 3.141 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06386/0.8242, allocations: 18.27 MB / 0.5241 GB, free: 0.9375 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003729/0.8247, allocations: 170.9 kB / 0.5242 GB, free: 0.707 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.382/4.206, allocations: 0 / 0.5242 GB, free: 0.707 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat