Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.197/2.197, allocations: 209.4 MB / 216.5 MB, free: 6.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.822e-05, allocations: 4 kB / 267.6 MB, free: 4.977 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1168, allocations: 48.7 MB / 316.3 MB, free: 4.184 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4805/0.5973, allocations: 79.52 MB / 395.8 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.5977, allocations: 65.97 kB / 395.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05563/0.6533, allocations: 11.4 MB / 407.3 MB, free: 3.602 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6534, allocations: 0 / 407.3 MB, free: 3.602 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.038e-05/0.6534, allocations: 20 kB / 407.3 MB, free: 3.582 MB / 330.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.003207/0.6566, allocations: 0.9465 MB / 408.3 MB, free: 2.633 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.6567, allocations: 8.031 kB / 408.3 MB, free: 2.625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002764/0.657, allocations: 83.02 kB / 408.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008537/0.6579, allocations: 413.8 kB / 408.8 MB, free: 2.141 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/0.6579, allocations: 20 kB / 408.8 MB, free: 2.121 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001758/0.6581, allocations: 39.62 kB / 408.8 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001821/0.66, allocations: 0.6401 MB / 409.5 MB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.6618, allocations: 0.6944 MB / 410.2 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.972e-05/0.6619, allocations: 7.656 kB / 410.2 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.176e-05/0.662, allocations: 4 kB / 410.2 MB, free: 1.086 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.662, allocations: 23.95 kB / 410.2 MB, free: 1.062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007058/0.6691, allocations: 2.501 MB / 412.7 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.6709, allocations: 0.557 MB / 413.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007929/0.6717, allocations: 312.4 kB / 413.5 MB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001123/0.6718, allocations: 12.62 kB / 413.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.6719, allocations: 42.81 kB / 413.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 4.148e-06/0.6719, allocations: 0 / 413.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.007251/0.6792, allocations: 2.452 MB / 416.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.961e-05/0.6793, allocations: 144.1 kB / 416.2 MB, free: 11.65 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006333/0.6799, allocations: 342.4 kB / 416.5 MB, free: 11.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002166/0.6802, allocations: 45.69 kB / 416.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.6805, allocations: 284.1 kB / 416.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003321/0.6808, allocations: 253.2 kB / 417.1 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.6809, allocations: 4 kB / 417.1 MB, free: 10.9 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.6811, allocations: 371.6 kB / 417.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00085/0.682, allocations: 328 kB / 417.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.683, allocations: 487.3 kB / 418.3 MB, free: 9.852 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.6841, allocations: 289.5 kB / 418.5 MB, free: 9.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.6841, allocations: 4 kB / 418.6 MB, free: 9.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003966/0.6881, allocations: 1.194 MB / 419.7 MB, free: 8.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/0.6881, allocations: 8 kB / 419.8 MB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.953e-05/0.6882, allocations: 4 kB / 419.8 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002274/0.6905, allocations: 0.7879 MB / 420.5 MB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.6917, allocations: 151.8 kB / 420.7 MB, free: 7.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003659/0.6953, allocations: 2.756 MB / 423.4 MB, free: 4.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/0.6973, allocations: 179.9 kB / 423.6 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.6975, allocations: 43.98 kB / 423.7 MB, free: 4.316 MB / 346.7 MB 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 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: 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: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" 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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004124/0.6979, allocations: 147.8 kB / 423.8 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003744/0.7017, allocations: 1.007 MB / 424.8 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003551/0.7021, allocations: 63.25 kB / 424.9 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.7024, allocations: 83.73 kB / 425 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.7025, allocations: 11.95 kB / 425 MB, free: 2.984 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.7025, allocations: 4 kB / 425 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.7025, allocations: 3.984 kB / 425 MB, free: 2.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0063/0.7088, allocations: 2.099 MB / 427.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.7089, allocations: 4 kB / 427.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.7101, allocations: 115.9 kB / 427.2 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002181/0.7123, allocations: 0.7488 MB / 427.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/0.7125, allocations: 27.95 kB / 428 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.716, allocations: 2.693 MB / 430.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/0.716, allocations: 0 / 430.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004764/0.7208, allocations: 1.747 MB / 432.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.7215, allocations: 220.2 kB / 432.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002285/0.7217, allocations: 16 kB / 432.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/0.7234, allocations: 163.8 kB / 432.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005759/0.724, allocations: 167.6 kB / 433 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.7241, allocations: 39.95 kB / 433 MB, free: 10.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004455/0.7246, allocations: 259 kB / 433.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7246, allocations: 0 / 433.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001185/0.7258, allocations: 171.9 kB / 433.4 MB, free: 10.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.00515/0.731, allocations: 2.548 MB / 436 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.7335, allocations: 0.8023 MB / 436.8 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.9e-06/0.7335, allocations: 0 / 436.8 MB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001545/0.7351, allocations: 443.7 kB / 437.2 MB, free: 6.445 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.7363, allocations: 80.83 kB / 437.3 MB, free: 6.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008796/0.7451, allocations: 2.079 MB / 439.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.7459, allocations: 0.9225 MB / 440.3 MB, free: 3.289 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005171/0.7465, allocations: 68.81 kB / 440.4 MB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004917/0.747, allocations: 211.3 kB / 440.6 MB, free: 3.016 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/0.747, allocations: 3.938 kB / 440.6 MB, free: 3.012 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07527/0.8223, allocations: 16.96 MB / 457.5 MB, free: 2.07 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00029/0.8226, allocations: 129.1 kB / 457.7 MB, free: 1.875 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/3.889, allocations: 4 kB / 457.7 MB, free: 1.871 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat