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.284/2.284, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.406e-05/4.404e-05, allocations: 8 kB / 273.2 MB, free: 156 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1216, allocations: 48.7 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5627/0.6844, allocations: 91.88 MB / 413.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003818/0.6848, allocations: 67.95 kB / 413.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3007/0.9855, allocations: 44.36 MB / 458.2 MB, free: 1.203 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.9856, allocations: 0 / 458.2 MB, free: 1.203 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001957/0.9858, allocations: 52 kB / 458.2 MB, free: 1.152 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.01105/0.9969, allocations: 2.207 MB / 460.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.997, allocations: 8.031 kB / 460.4 MB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001419/0.9984, allocations: 287.1 kB / 460.7 MB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/1.001, allocations: 285 kB / 461 MB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003588/1.004, allocations: 0.9312 MB / 461.9 MB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001249/1.006, allocations: 406.2 kB / 462.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00125/1.007, allocations: 223.7 kB / 462.5 MB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009341/1.016, allocations: 2.191 MB / 464.7 MB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002673/1.017, allocations: 27.7 kB / 464.8 MB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006487/1.017, allocations: 88 kB / 464.9 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.826e-05/1.017, allocations: 48 kB / 464.9 MB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008065/1.025, allocations: 2.105 MB / 467 MB, free: 8.137 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02422/1.05, allocations: 6.164 MB / 473.2 MB, free: 1.879 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006797/1.057, allocations: 2.083 MB / 475.2 MB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004374/1.061, allocations: 1.137 MB / 476.4 MB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004816/1.062, allocations: 46.27 kB / 476.4 MB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000104/1.062, allocations: 60.72 kB / 476.5 MB, free: 14.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 8.847e-06/1.062, allocations: 3.938 kB / 476.5 MB, free: 14.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.07517/1.137, allocations: 9.917 MB / 486.4 MB, free: 4.125 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001731/1.137, allocations: 247.7 kB / 486.7 MB, free: 3.832 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002344/1.139, allocations: 0.9067 MB / 487.6 MB, free: 2.914 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008832/1.14, allocations: 97.64 kB / 487.7 MB, free: 2.812 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008851/1.141, allocations: 0.655 MB / 488.3 MB, free: 2.148 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002035/1.143, allocations: 1.051 MB / 489.4 MB, free: 1.082 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007092/1.144, allocations: 63.98 kB / 489.4 MB, free: 1.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003665/1.145, allocations: 424.1 kB / 489.8 MB, free: 0.5977 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/1.149, allocations: 0.9901 MB / 490.8 MB, free: 15.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005189/1.154, allocations: 1.346 MB / 492.2 MB, free: 14.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/1.158, allocations: 0.9896 MB / 493.2 MB, free: 13.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.688e-05/1.158, allocations: 0 / 493.2 MB, free: 13.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01325/1.171, allocations: 3.372 MB / 496.5 MB, free: 9.762 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/1.171, allocations: 12 kB / 496.5 MB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.361e-05/1.171, allocations: 8 kB / 496.6 MB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004636/1.176, allocations: 1.223 MB / 497.8 MB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005684/1.182, allocations: 0.6593 MB / 498.4 MB, free: 7.848 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01594/1.198, allocations: 7.479 MB / 0.4941 GB, free: 24 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3012/1.499, allocations: 274.2 kB / 0.4943 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001003/1.5, allocations: 121.7 kB / 0.4944 GB, free: 118.5 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.001129/1.501, allocations: 275.8 kB / 0.4947 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009717/1.502, allocations: 204.2 kB / 0.4949 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/1.505, allocations: 0.6101 MB / 0.4955 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-05/1.505, allocations: 30.81 kB / 0.4955 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.71e-05/1.505, allocations: 2.688 kB / 0.4955 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/1.505, allocations: 19.58 kB / 0.4955 GB, free: 118.3 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.02748/1.532, allocations: 7.111 MB / 0.5025 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.343e-05/1.533, allocations: 6.625 kB / 0.5025 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005983/1.539, allocations: 0.6324 MB / 0.5031 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004829/1.543, allocations: 1.2 MB / 0.5043 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008718/1.544, allocations: 98.42 kB / 0.5044 GB, free: 117.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01616/1.561, allocations: 10.11 MB / 0.5142 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.531e-05/1.561, allocations: 10.25 kB / 0.5143 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01724/1.578, allocations: 5.44 MB / 0.5196 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002299/1.58, allocations: 0.5229 MB / 0.5201 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001259/1.582, allocations: 77.59 kB / 0.5202 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004425/1.586, allocations: 265.5 kB / 0.5204 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001879/1.588, allocations: 433.7 kB / 0.5208 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008067/1.589, allocations: 123.3 kB / 0.5209 GB, free: 108 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001829/1.591, allocations: 0.6927 MB / 0.5216 GB, free: 107.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.021e-06/1.591, allocations: 0 / 0.5216 GB, free: 107.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005217/1.596, allocations: 0.7124 MB / 0.5223 GB, free: 107.6 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.02008/1.616, allocations: 8.215 MB / 0.5303 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01095/1.627, allocations: 2.847 MB / 0.5331 GB, free: 100.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/1.627, allocations: 0 / 0.5331 GB, free: 100.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009929/1.637, allocations: 2.403 MB / 0.5355 GB, free: 99.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004372/1.642, allocations: 295.8 kB / 0.5357 GB, free: 99.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/1.666, allocations: 5.673 MB / 0.5413 GB, free: 96.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/1.667, allocations: 1.544 MB / 0.5428 GB, free: 96.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002279/1.669, allocations: 299.1 kB / 0.5431 GB, free: 95.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002143/1.672, allocations: 0.8125 MB / 0.5439 GB, free: 95.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/1.672, allocations: 0 / 0.5439 GB, free: 95.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/1.801, allocations: 50.59 MB / 0.5933 GB, free: 59.39 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002675/1.802, allocations: 171.4 kB / 0.5934 GB, free: 59.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.268/7.069, allocations: 0 / 0.5934 GB, free: 59.17 MB / 426.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