Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2/2, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.784e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1004, allocations: 48.7 MB / 316.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4331/0.5336, allocations: 91.47 MB / 407.8 MB, free: 1.062 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.5339, allocations: 69.47 kB / 407.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2113/0.7452, allocations: 44.02 MB / 451.8 MB, free: 8.875 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7453, allocations: 0 / 451.8 MB, free: 8.875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001392/0.7454, allocations: 47.98 kB / 451.9 MB, free: 8.828 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.009303/0.7548, allocations: 2.207 MB / 454.1 MB, free: 6.566 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.7548, allocations: 16.03 kB / 454.1 MB, free: 6.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00173/0.7566, allocations: 273.1 kB / 454.4 MB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002795/0.7594, allocations: 0.9429 MB / 455.3 MB, free: 5.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009534/0.7604, allocations: 334.1 kB / 455.7 MB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006204/0.761, allocations: 139.8 kB / 455.8 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006184/0.7672, allocations: 2.019 MB / 457.8 MB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00565/0.7729, allocations: 1.946 MB / 459.8 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.7731, allocations: 31.72 kB / 459.8 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002723/0.7734, allocations: 0 / 459.8 MB, free: 0.7031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.814e-05/0.7734, allocations: 48 kB / 459.8 MB, free: 0.6562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01854/0.792, allocations: 5.817 MB / 465.6 MB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005123/0.7972, allocations: 1.982 MB / 467.6 MB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003281/0.8005, allocations: 1.058 MB / 468.7 MB, free: 7.598 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003548/0.8009, allocations: 38.23 kB / 468.7 MB, free: 7.562 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.226e-05/0.801, allocations: 72.66 kB / 468.8 MB, free: 7.477 MB / 394.7 MB Notification: Performance of pre-optimization done (n=260): time 6.171e-06/0.801, allocations: 4 kB / 468.8 MB, free: 7.473 MB / 394.7 MB Notification: Performance of matching and sorting (n=315): time 0.02963/0.8307, allocations: 9.267 MB / 478.1 MB, free: 13.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.8309, allocations: 243.7 kB / 478.3 MB, free: 13.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.8325, allocations: 0.7337 MB / 479 MB, free: 12.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006378/0.8332, allocations: 45.69 kB / 479.1 MB, free: 12.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006971/0.8339, allocations: 0.6492 MB / 479.7 MB, free: 12.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/0.8355, allocations: 1.024 MB / 480.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.8358, allocations: 0 / 480.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002938/0.8361, allocations: 425.1 kB / 481.2 MB, free: 10.61 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002762/0.8388, allocations: 0.9315 MB / 482.1 MB, free: 9.68 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003257/0.8421, allocations: 1.296 MB / 483.4 MB, free: 8.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/0.8454, allocations: 0.9493 MB / 484.3 MB, free: 7.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.8455, allocations: 4 kB / 484.4 MB, free: 7.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01025/0.8557, allocations: 3.064 MB / 487.4 MB, free: 4.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.8558, allocations: 8 kB / 487.4 MB, free: 4.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/0.8558, allocations: 8 kB / 487.4 MB, free: 4.215 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004143/0.86, allocations: 1.205 MB / 488.6 MB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00531/0.8654, allocations: 0.667 MB / 489.3 MB, free: 2.328 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2796/1.145, allocations: 7.378 MB / 496.7 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003809/1.149, allocations: 219.3 kB / 496.9 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006265/1.15, allocations: 122.5 kB / 497 MB, free: 105 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.0008912/1.15, allocations: 192.7 kB / 497.2 MB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009128/1.16, allocations: 2.7 MB / 499.9 MB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009649/1.161, allocations: 190.7 kB / 0.4884 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/1.162, allocations: 0.5313 MB / 0.4889 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.922e-05/1.162, allocations: 32.66 kB / 0.4889 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.61e-05/1.162, allocations: 11.3 kB / 0.4889 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.274e-05/1.162, allocations: 16.11 kB / 0.4889 GB, free: 104.7 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.02229/1.185, allocations: 6.662 MB / 0.4954 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.735e-05/1.185, allocations: 7.172 kB / 0.4955 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00569/1.191, allocations: 0.6293 MB / 0.4961 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00428/1.195, allocations: 1.192 MB / 0.4972 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000686/1.196, allocations: 56.19 kB / 0.4973 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01389/1.209, allocations: 9.885 MB / 0.5069 GB, free: 96.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-05/1.21, allocations: 15.05 kB / 0.507 GB, free: 96.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/1.223, allocations: 5.147 MB / 0.512 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002692/1.226, allocations: 0.5089 MB / 0.5125 GB, free: 93.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/1.227, allocations: 41.81 kB / 0.5125 GB, free: 93.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005442/1.233, allocations: 212.9 kB / 0.5127 GB, free: 93.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002192/1.235, allocations: 424.7 kB / 0.5131 GB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006336/1.235, allocations: 124.7 kB / 0.5132 GB, free: 93.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001465/1.237, allocations: 0.5382 MB / 0.5138 GB, free: 93.31 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.12e-07/1.237, allocations: 0 / 0.5138 GB, free: 93.31 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00548/1.242, allocations: 0.5969 MB / 0.5144 GB, free: 93.31 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.01981/1.262, allocations: 7.935 MB / 0.5221 GB, free: 87.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00741/1.27, allocations: 2.738 MB / 0.5248 GB, free: 86.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/1.27, allocations: 0 / 0.5248 GB, free: 86.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006174/1.276, allocations: 2.257 MB / 0.527 GB, free: 85.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003717/1.28, allocations: 214 kB / 0.5272 GB, free: 85.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02338/1.303, allocations: 5.483 MB / 0.5325 GB, free: 82.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001881/1.305, allocations: 1.547 MB / 0.5341 GB, free: 81.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00294/1.308, allocations: 0.8223 MB / 0.5349 GB, free: 81.39 MB / 410.7 MB Notification: Performance of SimCode: time 2.946e-06/1.308, allocations: 0 / 0.5349 GB, free: 81.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.765/5.074, allocations: 74.35 MB / 0.6075 GB, free: 18.37 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat