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.995/1.995, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.494e-05/3.483e-05, allocations: 0 / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4282/0.5327, allocations: 91.88 MB / 413.7 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.533, allocations: 67.97 kB / 413.8 MB, free: 13.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2214/0.7544, allocations: 44.34 MB / 458.1 MB, free: 1.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.354e-06/0.7544, allocations: 0 / 458.1 MB, free: 1.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001983/0.7547, allocations: 55.94 kB / 458.2 MB, free: 1.355 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.01033/0.765, allocations: 2.207 MB / 460.4 MB, free: 15.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.7651, allocations: 8.031 kB / 460.4 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001014/0.7661, allocations: 295.1 kB / 460.7 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001647/0.7678, allocations: 277.1 kB / 461 MB, free: 14.51 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003147/0.771, allocations: 0.935 MB / 461.9 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001199/0.7722, allocations: 402.2 kB / 462.3 MB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001381/0.7736, allocations: 227.6 kB / 462.5 MB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008797/0.7825, allocations: 2.191 MB / 464.7 MB, free: 10.6 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002001/0.7827, allocations: 23.72 kB / 464.7 MB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004346/0.7832, allocations: 84 kB / 464.8 MB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-05/0.7833, allocations: 52 kB / 464.9 MB, free: 10.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007385/0.7907, allocations: 2.109 MB / 467 MB, free: 8.336 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02246/0.8132, allocations: 6.163 MB / 473.1 MB, free: 2.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006186/0.8194, allocations: 2.091 MB / 475.2 MB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003864/0.8233, allocations: 1.135 MB / 476.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003466/0.8237, allocations: 46.22 kB / 476.4 MB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.166e-05/0.8238, allocations: 64.72 kB / 476.5 MB, free: 14.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 5.981e-06/0.8239, allocations: 0 / 476.5 MB, free: 14.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.03116/0.855, allocations: 9.914 MB / 486.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.8552, allocations: 243.7 kB / 486.6 MB, free: 4.035 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002104/0.8574, allocations: 0.9106 MB / 487.5 MB, free: 3.113 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007219/0.8581, allocations: 97.69 kB / 487.6 MB, free: 3.012 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006861/0.8588, allocations: 0.6379 MB / 488.3 MB, free: 2.367 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001678/0.8605, allocations: 1.059 MB / 489.3 MB, free: 1.293 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/0.8609, allocations: 60 kB / 489.4 MB, free: 1.234 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004054/0.8613, allocations: 421 kB / 489.8 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.8647, allocations: 0.9862 MB / 490.8 MB, free: 15.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003964/0.8687, allocations: 1.35 MB / 492.1 MB, free: 14.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.872, allocations: 1.005 MB / 493.1 MB, free: 13.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.8721, allocations: 0 / 493.1 MB, free: 13.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01151/0.8836, allocations: 3.283 MB / 496.4 MB, free: 10.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.8837, allocations: 8 kB / 496.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.621e-05/0.8838, allocations: 8 kB / 496.4 MB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004467/0.8882, allocations: 1.222 MB / 497.7 MB, free: 8.801 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005557/0.8939, allocations: 0.6631 MB / 498.3 MB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/0.9084, allocations: 7.479 MB / 0.4939 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/0.9125, allocations: 275.9 kB / 0.4942 GB, free: 44 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3058/1.218, allocations: 121.5 kB / 0.4943 GB, free: 118.7 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.001497/1.22, allocations: 269.6 kB / 0.4946 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/1.221, allocations: 205.9 kB / 0.4948 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002936/1.224, allocations: 0.6119 MB / 0.4954 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.353e-05/1.224, allocations: 30.62 kB / 0.4954 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.561e-05/1.224, allocations: 5.25 kB / 0.4954 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001175/1.225, allocations: 19.62 kB / 0.4954 GB, free: 118.5 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.03319/1.258, allocations: 7.112 MB / 0.5024 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.523e-05/1.258, allocations: 6.75 kB / 0.5024 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009164/1.267, allocations: 0.6299 MB / 0.503 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007175/1.274, allocations: 1.202 MB / 0.5042 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001086/1.276, allocations: 101.7 kB / 0.5043 GB, free: 117.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/1.292, allocations: 10.1 MB / 0.5141 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.005e-05/1.293, allocations: 12.31 kB / 0.5141 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01826/1.311, allocations: 5.441 MB / 0.5195 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/1.314, allocations: 0.5211 MB / 0.52 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001398/1.315, allocations: 85.56 kB / 0.5201 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/1.32, allocations: 264.2 kB / 0.5203 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00169/1.321, allocations: 424.2 kB / 0.5207 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005053/1.322, allocations: 121 kB / 0.5208 GB, free: 108.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001508/1.323, allocations: 0.696 MB / 0.5215 GB, free: 108.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.324, allocations: 0 / 0.5215 GB, free: 108.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004471/1.328, allocations: 0.7124 MB / 0.5222 GB, free: 108.1 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.01504/1.343, allocations: 8.22 MB / 0.5302 GB, free: 102.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007604/1.351, allocations: 2.847 MB / 0.533 GB, free: 101.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/1.351, allocations: 0 / 0.533 GB, free: 101.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006519/1.357, allocations: 2.317 MB / 0.5353 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003144/1.361, allocations: 287.6 kB / 0.5355 GB, free: 100.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0182/1.379, allocations: 5.732 MB / 0.5411 GB, free: 97.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/1.38, allocations: 1.543 MB / 0.5426 GB, free: 96.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/1.382, allocations: 0.8228 MB / 0.5435 GB, free: 95.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.382, allocations: 0 / 0.5435 GB, free: 95.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.792/5.174, allocations: 74.98 MB / 0.6167 GB, free: 35.74 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