Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.506e-05/2.514e-05, allocations: 4 kB / 299.5 MB, free: 6.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4441/0.4441, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.6303, allocations: 85.74 MB / 440.1 MB, free: 12.46 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/0.6307, allocations: 63.97 kB / 440.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07861/0.7094, allocations: 11.61 MB / 451.8 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.953e-06/0.7094, allocations: 4 kB / 451.8 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.798e-05/0.7095, allocations: 12 kB / 451.8 MB, free: 0.7305 MB / 378.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.00345/0.713, allocations: 0.9351 MB / 452.7 MB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.861e-05/0.7131, allocations: 8.031 kB / 452.7 MB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.7134, allocations: 79.06 kB / 452.8 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009318/0.7144, allocations: 402.9 kB / 453.2 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.042e-05/0.7145, allocations: 20 kB / 453.2 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.7147, allocations: 43.91 kB / 453.2 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001887/0.7166, allocations: 0.5765 MB / 453.8 MB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/0.7185, allocations: 0.6598 MB / 454.5 MB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-05/0.7186, allocations: 15.89 kB / 454.5 MB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.273e-05/0.7187, allocations: 3.938 kB / 454.5 MB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.7187, allocations: 16 kB / 454.5 MB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00757/0.7263, allocations: 2.476 MB / 457 MB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.728, allocations: 0.5374 MB / 457.5 MB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008311/0.7289, allocations: 312.2 kB / 457.8 MB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001617/0.7291, allocations: 23.91 kB / 457.9 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.7291, allocations: 47.03 kB / 457.9 MB, free: 10.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 4.258e-06/0.7291, allocations: 0 / 457.9 MB, free: 10.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.008103/0.7373, allocations: 2.313 MB / 460.2 MB, free: 7.793 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.309e-05/0.7374, allocations: 136.5 kB / 460.3 MB, free: 7.629 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005701/0.738, allocations: 305.2 kB / 460.6 MB, free: 7.328 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000289/0.7383, allocations: 41.69 kB / 460.7 MB, free: 7.281 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.7386, allocations: 268.5 kB / 460.9 MB, free: 7.012 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004459/0.739, allocations: 272.2 kB / 461.2 MB, free: 6.742 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.402e-05/0.7391, allocations: 4 kB / 461.2 MB, free: 6.738 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002587/0.7394, allocations: 370.8 kB / 461.6 MB, free: 6.367 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008976/0.7403, allocations: 290.6 kB / 461.9 MB, free: 6.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.7414, allocations: 451.2 kB / 462.3 MB, free: 5.586 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.7426, allocations: 275.6 kB / 462.6 MB, free: 5.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.7426, allocations: 0 / 462.6 MB, free: 5.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004088/0.7467, allocations: 1.05 MB / 463.6 MB, free: 4.254 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.7468, allocations: 7.984 kB / 463.6 MB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.702e-05/0.7468, allocations: 8 kB / 463.6 MB, free: 4.238 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.7487, allocations: 0.5853 MB / 464.2 MB, free: 3.641 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.7499, allocations: 151.7 kB / 464.4 MB, free: 3.492 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003763/0.7537, allocations: 2.651 MB / 467 MB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.7556, allocations: 179.7 kB / 467.2 MB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002255/0.7559, allocations: 47.92 kB / 467.2 MB, free: 0.5156 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004377/0.7563, allocations: 150.9 kB / 467.4 MB, free: 372 kB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003702/0.76, allocations: 0.8696 MB / 468.3 MB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.7604, allocations: 59.3 kB / 468.3 MB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003677/0.7641, allocations: 0.9845 MB / 469.3 MB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.7641, allocations: 8 kB / 469.3 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.7642, allocations: 0 / 469.3 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.7642, allocations: 7.938 kB / 469.3 MB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005895/0.7701, allocations: 1.89 MB / 471.2 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.7702, allocations: 4 kB / 471.2 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.7714, allocations: 123.9 kB / 471.3 MB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/0.7731, allocations: 0.5498 MB / 471.9 MB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001606/0.7733, allocations: 27.95 kB / 471.9 MB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/0.7767, allocations: 2.58 MB / 474.5 MB, free: 9.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.214e-05/0.7767, allocations: 8.094 kB / 474.5 MB, free: 9.023 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004528/0.7813, allocations: 1.59 MB / 476.1 MB, free: 7.367 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006146/0.7819, allocations: 212.2 kB / 476.3 MB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002425/0.7822, allocations: 20 kB / 476.3 MB, free: 7.121 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/0.784, allocations: 163.8 kB / 476.5 MB, free: 6.961 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006378/0.7846, allocations: 175.5 kB / 476.6 MB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.7848, allocations: 39.95 kB / 476.7 MB, free: 6.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004374/0.7852, allocations: 251 kB / 476.9 MB, free: 6.508 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7853, allocations: 0 / 476.9 MB, free: 6.508 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001293/0.7866, allocations: 172 kB / 477.1 MB, free: 6.34 MB / 410.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.005156/0.7917, allocations: 2.506 MB / 479.6 MB, free: 3.766 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002748/0.7946, allocations: 0.8707 MB / 480.5 MB, free: 2.867 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.7946, allocations: 0 / 480.5 MB, free: 2.867 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/0.7972, allocations: 472.4 kB / 480.9 MB, free: 2.406 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.7995, allocations: 78.91 kB / 481 MB, free: 2.332 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.8124, allocations: 2.083 MB / 483.1 MB, free: 196 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006703/0.8131, allocations: 0.9185 MB / 484 MB, free: 15.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004807/0.8136, allocations: 60.81 kB / 484.1 MB, free: 15.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004629/0.8141, allocations: 207.3 kB / 484.3 MB, free: 14.98 MB / 426.7 MB Notification: Performance of SimCode: time 9.12e-07/0.8141, allocations: 0 / 484.3 MB, free: 14.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3597/1.174, allocations: 17.48 MB / 0.49 GB, free: 124.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/1.174, allocations: 131.9 kB / 0.4901 GB, free: 124.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.186/4.36, allocations: 1.75 kB / 0.4901 GB, free: 124.4 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat