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 1.896/1.896, allocations: 209.3 MB / 221.4 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.321e-05/3.343e-05, allocations: 0 / 273.1 MB, free: 164 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.102, allocations: 48.7 MB / 321.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4246/0.5266, allocations: 91.87 MB / 413.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.5269, allocations: 71.22 kB / 413.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2199/0.7469, allocations: 44.36 MB / 458.1 MB, free: 1.191 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7469, allocations: 0 / 458.1 MB, free: 1.191 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001481/0.7471, allocations: 40 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.009696/0.7568, allocations: 2.211 MB / 460.4 MB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.7569, allocations: 8.031 kB / 460.4 MB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009936/0.7579, allocations: 287.1 kB / 460.7 MB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001579/0.7595, allocations: 281 kB / 461 MB, free: 14.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003114/0.7626, allocations: 0.939 MB / 461.9 MB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001126/0.7638, allocations: 398.2 kB / 462.3 MB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009465/0.7647, allocations: 231.7 kB / 462.5 MB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007395/0.7722, allocations: 2.211 MB / 464.7 MB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001868/0.7724, allocations: 31.7 kB / 464.8 MB, free: 10.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004079/0.7728, allocations: 80 kB / 464.8 MB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.147e-05/0.7729, allocations: 51.98 kB / 464.9 MB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007097/0.78, allocations: 2.133 MB / 467 MB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01922/0.7993, allocations: 6.168 MB / 473.2 MB, free: 1.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005476/0.8048, allocations: 2.104 MB / 475.3 MB, free: 15.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003083/0.8079, allocations: 1.144 MB / 476.4 MB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002652/0.8082, allocations: 38.3 kB / 476.5 MB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.724e-05/0.8083, allocations: 72.64 kB / 476.5 MB, free: 14.33 MB / 410.7 MB Notification: Performance of pre-optimization done (n=260): time 5.741e-06/0.8083, allocations: 0 / 476.5 MB, free: 14.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=315): time 0.02902/0.8373, allocations: 9.929 MB / 486.5 MB, free: 4.004 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001929/0.8376, allocations: 243.7 kB / 486.7 MB, free: 3.719 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/0.8397, allocations: 0.9106 MB / 487.6 MB, free: 2.797 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006719/0.8404, allocations: 93.69 kB / 487.7 MB, free: 2.699 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007697/0.8412, allocations: 0.6472 MB / 488.4 MB, free: 2.043 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001662/0.8429, allocations: 1.059 MB / 489.4 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.8432, allocations: 67.94 kB / 489.5 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002965/0.8435, allocations: 424.1 kB / 489.9 MB, free: 492 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003231/0.8468, allocations: 0.9823 MB / 490.9 MB, free: 15.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003604/0.8504, allocations: 1.372 MB / 492.3 MB, free: 14.01 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.8536, allocations: 0.9857 MB / 493.2 MB, free: 13.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/0.8537, allocations: 0 / 493.2 MB, free: 13.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01204/0.8657, allocations: 3.387 MB / 496.6 MB, free: 9.613 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.8658, allocations: 11.94 kB / 496.6 MB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-05/0.8658, allocations: 8 kB / 496.6 MB, free: 9.594 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006145/0.872, allocations: 1.223 MB / 497.9 MB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007274/0.8793, allocations: 0.6709 MB / 498.5 MB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3401/1.219, allocations: 7.478 MB / 0.4942 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005371/1.225, allocations: 279.6 kB / 0.4944 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005686/1.225, allocations: 122.3 kB / 0.4945 GB, free: 118.4 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.001081/1.227, allocations: 270.1 kB / 0.4948 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003099/1.23, allocations: 203.9 kB / 0.495 GB, free: 118.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/1.232, allocations: 0.6165 MB / 0.4956 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.677e-05/1.233, allocations: 30.5 kB / 0.4956 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/1.233, allocations: 3.125 kB / 0.4956 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.543e-05/1.233, allocations: 23 kB / 0.4956 GB, free: 118.2 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.02776/1.26, allocations: 7.123 MB / 0.5026 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.82e-05/1.261, allocations: 7.641 kB / 0.5026 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005749/1.266, allocations: 0.6282 MB / 0.5032 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005422/1.272, allocations: 1.201 MB / 0.5044 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008127/1.273, allocations: 97.02 kB / 0.5045 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02045/1.293, allocations: 10.11 MB / 0.5144 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.897e-05/1.293, allocations: 10.59 kB / 0.5144 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01985/1.313, allocations: 5.444 MB / 0.5197 GB, free: 108.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002297/1.315, allocations: 0.5187 MB / 0.5202 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00196/1.317, allocations: 89.34 kB / 0.5203 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004981/1.322, allocations: 264 kB / 0.5205 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001576/1.324, allocations: 421.8 kB / 0.5209 GB, free: 107.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004011/1.324, allocations: 128.5 kB / 0.5211 GB, free: 107.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001535/1.326, allocations: 0.6898 MB / 0.5217 GB, free: 107.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.326, allocations: 0 / 0.5217 GB, free: 107.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004434/1.33, allocations: 0.7122 MB / 0.5224 GB, free: 107.5 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.01561/1.346, allocations: 8.222 MB / 0.5305 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009994/1.356, allocations: 2.925 MB / 0.5333 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.479e-05/1.356, allocations: 3.375 kB / 0.5333 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009414/1.366, allocations: 2.467 MB / 0.5357 GB, free: 99.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004226/1.37, allocations: 280.1 kB / 0.536 GB, free: 99.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02219/1.392, allocations: 5.698 MB / 0.5416 GB, free: 96.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001767/1.394, allocations: 1.552 MB / 0.5431 GB, free: 95.76 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002738/1.397, allocations: 292.2 kB / 0.5433 GB, free: 95.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/1.399, allocations: 0.8129 MB / 0.5441 GB, free: 95.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/1.399, allocations: 0 / 0.5441 GB, free: 95.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1283/1.528, allocations: 50.73 MB / 0.5937 GB, free: 58.85 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002237/1.528, allocations: 172.8 kB / 0.5939 GB, free: 58.62 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.878/6.406, allocations: 0 / 0.5939 GB, free: 58.62 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