Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.672/2.672, allocations: 235 MB / 247.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.889e-05/3.902e-05, allocations: 3.984 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4685/0.4686, allocations: 54.85 MB / 359.9 MB, free: 2.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.6575, allocations: 99.52 MB / 459.4 MB, free: 13.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.6578, allocations: 64.5 kB / 459.4 MB, free: 13.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2338/0.8916, allocations: 47.89 MB / 0.4954 GB, free: 13.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.8917, allocations: 0 / 0.4954 GB, free: 13.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002042/0.892, allocations: 51.98 kB / 0.4955 GB, free: 13.19 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01168/0.9036, allocations: 2.348 MB / 0.4978 GB, free: 10.78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.256e-05/0.9038, allocations: 12.03 kB / 0.4978 GB, free: 10.77 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001379/0.9051, allocations: 303.9 kB / 0.4981 GB, free: 10.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002126/0.9073, allocations: 296.9 kB / 0.4984 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003856/0.9112, allocations: 0.9785 MB / 0.4993 GB, free: 9.133 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001548/0.9128, allocations: 460.1 kB / 0.4998 GB, free: 8.637 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001275/0.9142, allocations: 243.7 kB / 0.5 GB, free: 8.398 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008977/0.9232, allocations: 2.339 MB / 0.5023 GB, free: 5.973 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002094/0.9234, allocations: 35.7 kB / 0.5023 GB, free: 5.938 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004273/0.9239, allocations: 87.95 kB / 0.5024 GB, free: 5.852 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-05/0.924, allocations: 56 kB / 0.5025 GB, free: 5.797 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007723/0.9317, allocations: 2.196 MB / 0.5046 GB, free: 3.594 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02448/0.9562, allocations: 6.759 MB / 0.5112 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006679/0.963, allocations: 2.245 MB / 0.5134 GB, free: 10.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004196/0.9672, allocations: 1.212 MB / 0.5146 GB, free: 9.117 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006127/0.9679, allocations: 135.4 kB / 0.5147 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.693e-05/0.968, allocations: 65 kB / 0.5148 GB, free: 8.895 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 7.073e-06/0.968, allocations: 0 / 0.5148 GB, free: 8.895 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.3687/1.337, allocations: 11.1 MB / 0.5256 GB, free: 118.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/1.337, allocations: 338.1 kB / 0.5259 GB, free: 118.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/1.339, allocations: 0.9009 MB / 0.5268 GB, free: 118.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00087/1.34, allocations: 97.53 kB / 0.5269 GB, free: 118.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007719/1.341, allocations: 0.6815 MB / 0.5276 GB, free: 118 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001832/1.343, allocations: 1.135 MB / 0.5287 GB, free: 117.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003423/1.343, allocations: 69.34 kB / 0.5287 GB, free: 117.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002645/1.343, allocations: 427.4 kB / 0.5291 GB, free: 117.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/1.347, allocations: 1.011 MB / 0.5301 GB, free: 117.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004549/1.352, allocations: 1.424 MB / 0.5315 GB, free: 116.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003784/1.356, allocations: 1.02 MB / 0.5325 GB, free: 116.7 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.314e-05/1.356, allocations: 2.25 kB / 0.5325 GB, free: 116.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01217/1.368, allocations: 3.284 MB / 0.5357 GB, free: 116.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/1.368, allocations: 10.69 kB / 0.5357 GB, free: 116.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.259e-05/1.368, allocations: 12.78 kB / 0.5358 GB, free: 116.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004211/1.372, allocations: 1.021 MB / 0.5367 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006333/1.379, allocations: 0.7445 MB / 0.5375 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/1.393, allocations: 7.387 MB / 0.5447 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004644/1.397, allocations: 297.2 kB / 0.545 GB, free: 111.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/1.399, allocations: 128.5 kB / 0.5451 GB, free: 111.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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,$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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001466/1.4, allocations: 287.1 kB / 0.5454 GB, free: 111.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009669/1.401, allocations: 217.4 kB / 0.5456 GB, free: 111.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008029/1.409, allocations: 2.303 MB / 0.5478 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.814e-05/1.409, allocations: 32.16 kB / 0.5479 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-05/1.409, allocations: 3.938 kB / 0.5479 GB, free: 110.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001043/1.409, allocations: 18.27 kB / 0.5479 GB, free: 110.6 MB / 458.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.02518/1.435, allocations: 7.349 MB / 0.5551 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.679e-05/1.435, allocations: 7.781 kB / 0.5551 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006553/1.441, allocations: 0.7413 MB / 0.5558 GB, free: 107.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003817/1.445, allocations: 1.019 MB / 0.5568 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007852/1.446, allocations: 101.5 kB / 0.5569 GB, free: 106.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/1.46, allocations: 10.01 MB / 0.5666 GB, free: 98.44 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/1.46, allocations: 16.44 kB / 0.5667 GB, free: 98.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/1.475, allocations: 5.757 MB / 0.5723 GB, free: 95.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/1.477, allocations: 0.5358 MB / 0.5728 GB, free: 94.69 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009031/1.478, allocations: 86.12 kB / 0.5729 GB, free: 94.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004409/1.482, allocations: 302.7 kB / 0.5732 GB, free: 94.6 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001835/1.484, allocations: 455.8 kB / 0.5736 GB, free: 94.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005264/1.485, allocations: 127.7 kB / 0.5737 GB, free: 94.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001449/1.486, allocations: 0.7026 MB / 0.5744 GB, free: 94.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.486, allocations: 0 / 0.5744 GB, free: 94.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004944/1.491, allocations: 0.7322 MB / 0.5751 GB, free: 94.09 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,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 (270): * Single equations (assignments): 263 * 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.01661/1.508, allocations: 8.845 MB / 0.5838 GB, free: 87.67 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008586/1.517, allocations: 3.089 MB / 0.5868 GB, free: 86.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.805e-05/1.517, allocations: 6.594 kB / 0.5868 GB, free: 86.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008118/1.525, allocations: 2.645 MB / 0.5894 GB, free: 84.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/1.528, allocations: 314.1 kB / 0.5897 GB, free: 84.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/1.548, allocations: 6.169 MB / 0.5957 GB, free: 81.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/1.55, allocations: 1.592 MB / 0.5973 GB, free: 79.84 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002384/1.552, allocations: 313.9 kB / 0.5976 GB, free: 79.62 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002012/1.554, allocations: 0.8719 MB / 0.5984 GB, free: 78.84 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/1.554, allocations: 3.984 kB / 0.5984 GB, free: 78.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1459/1.7, allocations: 53.66 MB / 0.6508 GB, free: 31.48 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002113/1.7, allocations: 180.7 kB / 0.651 GB, free: 31.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.468/7.169, allocations: 0 / 0.651 GB, free: 31.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat