Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.148/2.148, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.05e-05/3.062e-05, allocations: 7.984 kB / 267.6 MB, free: 4.957 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1271, allocations: 48.7 MB / 316.3 MB, free: 4.16 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4723/0.5994, allocations: 91.44 MB / 407.8 MB, free: 1.242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/0.5998, allocations: 64.34 kB / 407.8 MB, free: 1.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2325/0.8323, allocations: 44.03 MB / 451.9 MB, free: 8.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.8324, allocations: 0 / 451.9 MB, free: 8.652 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001697/0.8326, allocations: 47.98 kB / 451.9 MB, free: 8.605 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: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.0105/0.8431, allocations: 2.203 MB / 454.1 MB, free: 6.348 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.8432, allocations: 8.031 kB / 454.1 MB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002111/0.8453, allocations: 281 kB / 454.4 MB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.8487, allocations: 0.9429 MB / 455.3 MB, free: 5.062 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.85, allocations: 330.2 kB / 455.7 MB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.851, allocations: 139.8 kB / 455.8 MB, free: 4.562 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007417/0.8585, allocations: 2.019 MB / 457.8 MB, free: 2.535 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007453/0.866, allocations: 1.946 MB / 459.8 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002067/0.8662, allocations: 27.7 kB / 459.8 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003357/0.8666, allocations: 4 kB / 459.8 MB, free: 500 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.204e-05/0.8667, allocations: 48 kB / 459.8 MB, free: 452 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02003/0.8867, allocations: 5.814 MB / 465.6 MB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005695/0.8925, allocations: 1.993 MB / 467.6 MB, free: 8.445 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00352/0.8961, allocations: 1.05 MB / 468.7 MB, free: 7.383 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003468/0.8965, allocations: 42.23 kB / 468.7 MB, free: 7.344 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.858e-05/0.8965, allocations: 76.64 kB / 468.8 MB, free: 7.254 MB / 394.7 MB Notification: Performance of pre-optimization done (n=260): time 6.883e-06/0.8966, allocations: 0 / 468.8 MB, free: 7.254 MB / 394.7 MB Notification: Performance of matching and sorting (n=315): time 0.02966/0.9262, allocations: 9.267 MB / 478.1 MB, free: 13.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001572/0.9264, allocations: 239.7 kB / 478.3 MB, free: 13.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.9281, allocations: 0.7337 MB / 479 MB, free: 12.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007404/0.9289, allocations: 45.7 kB / 479.1 MB, free: 12.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007985/0.9297, allocations: 0.6546 MB / 479.7 MB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001767/0.9315, allocations: 1.016 MB / 480.8 MB, free: 10.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003801/0.9319, allocations: 0 / 480.8 MB, free: 10.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003023/0.9322, allocations: 424.2 kB / 481.2 MB, free: 10.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/0.9352, allocations: 0.9275 MB / 482.1 MB, free: 9.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003651/0.9389, allocations: 1.292 MB / 483.4 MB, free: 8.066 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003559/0.9425, allocations: 0.952 MB / 484.3 MB, free: 7.113 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.778e-05/0.9426, allocations: 0 / 484.3 MB, free: 7.113 MB / 410.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01162/0.9542, allocations: 3.129 MB / 487.5 MB, free: 3.961 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.9543, allocations: 8 kB / 487.5 MB, free: 3.953 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.9544, allocations: 8 kB / 487.5 MB, free: 3.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004191/0.9586, allocations: 1.201 MB / 488.7 MB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005451/0.9641, allocations: 0.6709 MB / 489.4 MB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2994/1.264, allocations: 7.377 MB / 496.7 MB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006317/1.27, allocations: 222.2 kB / 496.9 MB, free: 104.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/1.271, allocations: 123 kB / 497.1 MB, free: 104.5 MB / 410.7 MB 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.00143/1.273, allocations: 187.6 kB / 497.3 MB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01444/1.287, allocations: 2.699 MB / 500 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/1.289, allocations: 194.4 kB / 0.4884 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002692/1.291, allocations: 0.5256 MB / 0.4889 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.141e-05/1.291, allocations: 34.3 kB / 0.489 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.203e-05/1.292, allocations: 3.031 kB / 0.489 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001119/1.292, allocations: 16.02 kB / 0.489 GB, free: 104.2 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03473/1.326, allocations: 6.677 MB / 0.4955 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-05/1.327, allocations: 9.156 kB / 0.4955 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008232/1.335, allocations: 0.6271 MB / 0.4961 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006206/1.341, allocations: 1.189 MB / 0.4973 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009348/1.342, allocations: 54.98 kB / 0.4973 GB, free: 103 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02053/1.363, allocations: 9.896 MB / 0.507 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.109e-05/1.363, allocations: 10.88 kB / 0.507 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0212/1.384, allocations: 5.145 MB / 0.512 GB, free: 93.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002815/1.387, allocations: 0.5137 MB / 0.5125 GB, free: 93.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/1.388, allocations: 27.41 kB / 0.5126 GB, free: 93.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005798/1.394, allocations: 220.7 kB / 0.5128 GB, free: 93.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00267/1.397, allocations: 426 kB / 0.5132 GB, free: 93.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008971/1.398, allocations: 125.8 kB / 0.5133 GB, free: 93.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001546/1.399, allocations: 0.5392 MB / 0.5138 GB, free: 92.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.399, allocations: 0 / 0.5138 GB, free: 92.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005747/1.405, allocations: 0.5954 MB / 0.5144 GB, free: 92.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01708/1.422, allocations: 7.924 MB / 0.5221 GB, free: 87.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006654/1.429, allocations: 2.744 MB / 0.5248 GB, free: 86.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.009e-05/1.429, allocations: 0 / 0.5248 GB, free: 86.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006413/1.435, allocations: 2.358 MB / 0.5271 GB, free: 84.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/1.438, allocations: 213 kB / 0.5273 GB, free: 84.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/1.455, allocations: 5.418 MB / 0.5326 GB, free: 82.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/1.457, allocations: 1.553 MB / 0.5341 GB, free: 81.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002291/1.459, allocations: 279.1 kB / 0.5344 GB, free: 81.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002113/1.461, allocations: 0.8088 MB / 0.5352 GB, free: 80.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/1.461, allocations: 0 / 0.5352 GB, free: 80.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1925/1.654, allocations: 47.6 MB / 0.5817 GB, free: 44.34 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/1.654, allocations: 122.5 kB / 0.5818 GB, free: 44.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.054/6.708, allocations: 4 kB / 0.5818 GB, free: 44.14 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat