Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.465/2.465, allocations: 270 MB / 283.6 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.516e-05/4.519e-05, allocations: 7.938 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1444, allocations: 61.89 MB / 410.4 MB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.571/0.7155, allocations: 92.64 MB / 0.4912 GB, free: 11.39 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.7158, allocations: 63.97 kB / 0.4913 GB, free: 11.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0574/0.7732, allocations: 12.09 MB / 0.5031 GB, free: 15.21 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.7733, allocations: 0 / 0.5031 GB, free: 15.21 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.509e-05/0.7733, allocations: 12 kB / 0.5031 GB, free: 15.2 MB / 426.7 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.00321/0.7766, allocations: 0.935 MB / 0.504 GB, free: 14.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.7766, allocations: 12.03 kB / 0.504 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002184/0.7769, allocations: 106.5 kB / 0.5041 GB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.7771, allocations: 75.06 kB / 0.5042 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008782/0.778, allocations: 404.8 kB / 0.5046 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.096e-05/0.7781, allocations: 45.25 kB / 0.5046 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.7783, allocations: 67.91 kB / 0.5047 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.7803, allocations: 0.7378 MB / 0.5054 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/0.7804, allocations: 7.906 kB / 0.5054 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.7806, allocations: 24 kB / 0.5054 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/0.7806, allocations: 19.94 kB / 0.5055 GB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.7825, allocations: 0.6056 MB / 0.506 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007413/0.7899, allocations: 2.571 MB / 0.5086 GB, free: 9.355 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.7918, allocations: 0.5647 MB / 0.5091 GB, free: 8.754 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009056/0.7927, allocations: 335.4 kB / 0.5094 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.7928, allocations: 15.94 kB / 0.5094 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.7929, allocations: 42.56 kB / 0.5095 GB, free: 8.348 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.268e-06/0.7929, allocations: 0 / 0.5095 GB, free: 8.348 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.006828/0.7997, allocations: 2.398 MB / 0.5118 GB, free: 5.762 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.7999, allocations: 144.5 kB / 0.512 GB, free: 5.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005968/0.8005, allocations: 323 kB / 0.5123 GB, free: 5.266 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.8007, allocations: 49.7 kB / 0.5123 GB, free: 5.211 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.801, allocations: 260.6 kB / 0.5126 GB, free: 4.949 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003758/0.8013, allocations: 288.1 kB / 0.5128 GB, free: 4.664 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-05/0.8015, allocations: 16 kB / 0.5129 GB, free: 4.648 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.8017, allocations: 370.8 kB / 0.5132 GB, free: 4.277 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009801/0.8027, allocations: 313.9 kB / 0.5135 GB, free: 3.969 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.8038, allocations: 472.6 kB / 0.514 GB, free: 3.457 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008226/0.8047, allocations: 259.9 kB / 0.5142 GB, free: 3.211 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.8047, allocations: 0 / 0.5142 GB, free: 3.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003991/0.8087, allocations: 1.107 MB / 0.5153 GB, free: 2.094 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.8087, allocations: 8 kB / 0.5153 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.475e-05/0.8088, allocations: 8 kB / 0.5153 GB, free: 2.078 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001974/0.8108, allocations: 0.5853 MB / 0.5159 GB, free: 1.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.8119, allocations: 143.8 kB / 0.516 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003333/0.8153, allocations: 2.573 MB / 0.5185 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.8173, allocations: 199.7 kB / 0.5187 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/0.8175, allocations: 43.98 kB / 0.5188 GB, free: 14.43 MB / 442.7 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.0003919/0.8179, allocations: 163.3 kB / 0.5189 GB, free: 14.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.8182, allocations: 63.19 kB / 0.519 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00396/0.8222, allocations: 1.033 MB / 0.52 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/0.8223, allocations: 12 kB / 0.52 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.8223, allocations: 0 / 0.52 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.8223, allocations: 3.984 kB / 0.52 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005801/0.8281, allocations: 2.03 MB / 0.522 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.096e-06/0.8282, allocations: 0 / 0.522 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.8294, allocations: 127.9 kB / 0.5221 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/0.8312, allocations: 0.542 MB / 0.5226 GB, free: 10.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.8314, allocations: 35.95 kB / 0.5227 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/0.8345, allocations: 2.518 MB / 0.5251 GB, free: 7.684 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.8345, allocations: 0 / 0.5251 GB, free: 7.684 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/0.8391, allocations: 1.641 MB / 0.5267 GB, free: 5.973 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/0.8398, allocations: 212.2 kB / 0.5269 GB, free: 5.746 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.84, allocations: 28.12 kB / 0.527 GB, free: 5.719 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/0.8418, allocations: 179.8 kB / 0.5271 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005884/0.8424, allocations: 175.6 kB / 0.5273 GB, free: 5.371 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.8425, allocations: 43.95 kB / 0.5273 GB, free: 5.328 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004741/0.843, allocations: 257.2 kB / 0.5276 GB, free: 5.078 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.843, allocations: 0 / 0.5276 GB, free: 5.078 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001232/0.8443, allocations: 207.9 kB / 0.5278 GB, free: 4.875 MB / 442.7 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.00523/0.8495, allocations: 2.568 MB / 0.5303 GB, free: 2.242 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002904/0.8525, allocations: 0.909 MB / 0.5312 GB, free: 1.309 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.8525, allocations: 0 / 0.5312 GB, free: 1.309 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.8544, allocations: 467.6 kB / 0.5316 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.8557, allocations: 102.8 kB / 0.5317 GB, free: 0.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009311/0.865, allocations: 2.159 MB / 0.5338 GB, free: 14.53 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006644/0.8657, allocations: 0.9221 MB / 0.5347 GB, free: 13.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004806/0.8662, allocations: 56.81 kB / 0.5348 GB, free: 13.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/0.8667, allocations: 203.4 kB / 0.535 GB, free: 13.33 MB / 458.7 MB Notification: Performance of SimCode: time 1.222e-06/0.8667, allocations: 4 kB / 0.535 GB, free: 13.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06271/0.9294, allocations: 18.26 MB / 0.5528 GB, free: 11.22 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003036/0.9298, allocations: 170 kB / 0.553 GB, free: 11 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.223/4.153, allocations: 0 / 0.553 GB, free: 11 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat