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 1.932/1.932, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.024e-05/4.058e-05, allocations: 11.98 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.5794, allocations: 91.87 MB / 413.7 MB, free: 14.03 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003814/0.5798, allocations: 71.95 kB / 413.8 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3457/0.9256, allocations: 44.36 MB / 458.1 MB, free: 1.504 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.135e-06/0.9256, allocations: 0 / 458.1 MB, free: 1.504 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002417/0.9259, allocations: 44 kB / 458.2 MB, free: 1.461 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.01648/0.9424, allocations: 2.203 MB / 460.4 MB, free: 15.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.762e-05/0.9425, allocations: 12.03 kB / 460.4 MB, free: 15.19 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001487/0.944, allocations: 295.1 kB / 460.7 MB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002884/0.947, allocations: 277.1 kB / 460.9 MB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005248/0.9523, allocations: 0.9391 MB / 461.9 MB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001854/0.9542, allocations: 398.1 kB / 462.3 MB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001611/0.9559, allocations: 231.6 kB / 462.5 MB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/0.969, allocations: 2.211 MB / 464.7 MB, free: 10.67 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003343/0.9694, allocations: 35.64 kB / 464.7 MB, free: 10.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007986/0.9702, allocations: 80 kB / 464.8 MB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.73e-05/0.9703, allocations: 48 kB / 464.9 MB, free: 10.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01216/0.9825, allocations: 2.129 MB / 467 MB, free: 8.391 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0356/1.018, allocations: 6.175 MB / 473.2 MB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009831/1.028, allocations: 2.1 MB / 475.3 MB, free: 15.91 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005878/1.034, allocations: 1.144 MB / 476.4 MB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005391/1.035, allocations: 38.3 kB / 476.4 MB, free: 14.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.349e-05/1.035, allocations: 60.72 kB / 476.5 MB, free: 14.65 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 1.093e-05/1.035, allocations: 0 / 476.5 MB, free: 14.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.04356/1.078, allocations: 9.938 MB / 486.4 MB, free: 4.316 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/1.079, allocations: 239.7 kB / 486.7 MB, free: 4.035 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002108/1.081, allocations: 0.9067 MB / 487.6 MB, free: 3.117 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007287/1.081, allocations: 101.7 kB / 487.7 MB, free: 3.012 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006902/1.082, allocations: 0.6301 MB / 488.3 MB, free: 2.375 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001696/1.084, allocations: 1.063 MB / 489.4 MB, free: 1.297 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/1.084, allocations: 60 kB / 489.4 MB, free: 1.238 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002943/1.085, allocations: 429 kB / 489.9 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/1.088, allocations: 0.9823 MB / 490.8 MB, free: 15.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003949/1.092, allocations: 1.372 MB / 492.2 MB, free: 14.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/1.095, allocations: 0.9974 MB / 493.2 MB, free: 13.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-05/1.095, allocations: 4 kB / 493.2 MB, free: 13.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01154/1.107, allocations: 3.306 MB / 496.5 MB, free: 10.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/1.107, allocations: 8 kB / 496.5 MB, free: 10 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.018e-05/1.107, allocations: 12 kB / 496.5 MB, free: 9.988 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00436/1.112, allocations: 1.219 MB / 497.8 MB, free: 8.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005373/1.117, allocations: 0.6709 MB / 498.4 MB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/1.132, allocations: 7.474 MB / 0.494 GB, free: 284 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004107/1.136, allocations: 279.8 kB / 0.4943 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2735/1.41, allocations: 119.1 kB / 0.4944 GB, free: 119.1 MB / 426.7 MB 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.001024/1.411, allocations: 271.9 kB / 0.4947 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008096/1.411, allocations: 204.2 kB / 0.4949 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/1.414, allocations: 0.6132 MB / 0.4955 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-05/1.414, allocations: 35.19 kB / 0.4955 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.747e-05/1.414, allocations: 3.125 kB / 0.4955 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.561e-05/1.414, allocations: 19.33 kB / 0.4955 GB, free: 118.9 MB / 426.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.02443/1.438, allocations: 7.127 MB / 0.5025 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.017e-05/1.438, allocations: 7.781 kB / 0.5025 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005783/1.444, allocations: 0.6311 MB / 0.5031 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004498/1.449, allocations: 1.201 MB / 0.5043 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008624/1.45, allocations: 98.53 kB / 0.5044 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01578/1.465, allocations: 10.11 MB / 0.5143 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-05/1.465, allocations: 11.52 kB / 0.5143 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01807/1.483, allocations: 5.443 MB / 0.5196 GB, free: 109.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.486, allocations: 0.5206 MB / 0.5201 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001345/1.487, allocations: 83.08 kB / 0.5202 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004434/1.492, allocations: 267.9 kB / 0.5204 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001922/1.494, allocations: 428.6 kB / 0.5208 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008793/1.495, allocations: 118.4 kB / 0.5209 GB, free: 108.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001883/1.497, allocations: 0.6945 MB / 0.5216 GB, free: 108.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.497, allocations: 3.562 kB / 0.5216 GB, free: 108.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004968/1.502, allocations: 0.7159 MB / 0.5223 GB, free: 108.2 MB / 426.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.01602/1.518, allocations: 8.207 MB / 0.5303 GB, free: 102.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008149/1.526, allocations: 2.925 MB / 0.5332 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/1.526, allocations: 2.469 kB / 0.5332 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00693/1.533, allocations: 2.368 MB / 0.5355 GB, free: 100.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003515/1.537, allocations: 285.8 kB / 0.5358 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01929/1.556, allocations: 5.753 MB / 0.5414 GB, free: 97.32 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001669/1.558, allocations: 1.545 MB / 0.5429 GB, free: 96.55 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/1.56, allocations: 0.8274 MB / 0.5437 GB, free: 95.95 MB / 426.7 MB Notification: Performance of SimCode: time 1.413e-06/1.56, allocations: 288 / 0.5437 GB, free: 95.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.796/5.357, allocations: 75.07 MB / 0.617 GB, free: 35.53 MB / 426.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