Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.335/2.335, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.84e-05/3.851e-05, allocations: 4 kB / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.406/0.4061, allocations: 54.86 MB / 359.9 MB, free: 2.691 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/0.6198, allocations: 99.53 MB / 459.4 MB, free: 13.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.6201, allocations: 69.16 kB / 459.5 MB, free: 13.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.254/0.8741, allocations: 47.89 MB / 0.4954 GB, free: 13.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.8741, allocations: 0 / 0.4954 GB, free: 13.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001599/0.8743, allocations: 48 kB / 0.4955 GB, free: 13.35 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.01069/0.885, allocations: 2.353 MB / 0.4978 GB, free: 10.94 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.8851, allocations: 16.02 kB / 0.4978 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009379/0.8861, allocations: 295.9 kB / 0.4981 GB, free: 10.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.8875, allocations: 300.9 kB / 0.4984 GB, free: 10.33 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/0.8904, allocations: 0.9784 MB / 0.4993 GB, free: 9.293 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001314/0.8918, allocations: 464.1 kB / 0.4998 GB, free: 8.793 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008437/0.8926, allocations: 239.7 kB / 0.5 GB, free: 8.559 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007162/0.8998, allocations: 2.315 MB / 0.5023 GB, free: 6.164 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001849/0.9, allocations: 27.7 kB / 0.5023 GB, free: 6.137 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004005/0.9004, allocations: 91.95 kB / 0.5024 GB, free: 6.047 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.84e-05/0.9005, allocations: 56 kB / 0.5024 GB, free: 5.992 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007187/0.9077, allocations: 2.172 MB / 0.5046 GB, free: 3.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02196/0.9297, allocations: 6.755 MB / 0.5111 GB, free: 12.95 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006233/0.936, allocations: 2.223 MB / 0.5133 GB, free: 10.59 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003925/0.94, allocations: 1.198 MB / 0.5145 GB, free: 9.367 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004332/0.9405, allocations: 135 kB / 0.5146 GB, free: 9.219 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.694e-05/0.9406, allocations: 64.44 kB / 0.5147 GB, free: 9.148 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 6.502e-06/0.9406, allocations: 96 / 0.5147 GB, free: 9.148 MB / 458.7 MB Notification: Performance of matching and sorting (n=338): time 0.3294/1.27, allocations: 11.09 MB / 0.5255 GB, free: 119.3 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/1.27, allocations: 337.2 kB / 0.5258 GB, free: 118.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002039/1.272, allocations: 0.9105 MB / 0.5267 GB, free: 118.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007936/1.273, allocations: 96.17 kB / 0.5268 GB, free: 118.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006143/1.274, allocations: 0.6581 MB / 0.5275 GB, free: 118.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001669/1.275, allocations: 1.134 MB / 0.5286 GB, free: 117.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004924/1.276, allocations: 64.94 kB / 0.5286 GB, free: 117.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000255/1.276, allocations: 433.5 kB / 0.529 GB, free: 117.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003648/1.28, allocations: 1.008 MB / 0.53 GB, free: 117.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004242/1.284, allocations: 1.409 MB / 0.5314 GB, free: 117.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003564/1.288, allocations: 1.018 MB / 0.5324 GB, free: 117.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.35e-05/1.288, allocations: 6.531 kB / 0.5324 GB, free: 117.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01182/1.3, allocations: 3.178 MB / 0.5355 GB, free: 116.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/1.3, allocations: 13.7 kB / 0.5355 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.385e-05/1.3, allocations: 10.81 kB / 0.5355 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004188/1.304, allocations: 1.016 MB / 0.5365 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006132/1.31, allocations: 0.7497 MB / 0.5373 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/1.323, allocations: 7.389 MB / 0.5445 GB, free: 112.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/1.327, allocations: 293.1 kB / 0.5447 GB, free: 112.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006209/1.328, allocations: 124.4 kB / 0.5449 GB, free: 112.2 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.0008996/1.329, allocations: 288.6 kB / 0.5451 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.33, allocations: 221.8 kB / 0.5454 GB, free: 111.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007116/1.337, allocations: 2.288 MB / 0.5476 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.234e-05/1.338, allocations: 40.36 kB / 0.5476 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-05/1.338, allocations: 4.156 kB / 0.5476 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-05/1.338, allocations: 18.47 kB / 0.5476 GB, free: 110.9 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.02303/1.361, allocations: 7.328 MB / 0.5548 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.509e-05/1.361, allocations: 7.875 kB / 0.5548 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006371/1.367, allocations: 0.7444 MB / 0.5555 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003716/1.371, allocations: 1.011 MB / 0.5565 GB, free: 107.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008133/1.372, allocations: 108.9 kB / 0.5566 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/1.385, allocations: 10.01 MB / 0.5664 GB, free: 98.87 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/1.385, allocations: 11.75 kB / 0.5664 GB, free: 98.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/1.399, allocations: 5.758 MB / 0.572 GB, free: 95.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/1.401, allocations: 0.5313 MB / 0.5726 GB, free: 95.12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005661/1.401, allocations: 93.47 kB / 0.5726 GB, free: 95.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003764/1.405, allocations: 292.1 kB / 0.5729 GB, free: 95.04 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001256/1.406, allocations: 456 kB / 0.5734 GB, free: 94.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003308/1.407, allocations: 130 kB / 0.5735 GB, free: 94.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001276/1.408, allocations: 0.7021 MB / 0.5742 GB, free: 94.63 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.408, allocations: 3.812 kB / 0.5742 GB, free: 94.63 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003732/1.412, allocations: 0.7306 MB / 0.5749 GB, free: 94.53 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.01325/1.425, allocations: 8.853 MB / 0.5835 GB, free: 88.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00749/1.432, allocations: 3.02 MB / 0.5865 GB, free: 86.78 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.432, allocations: 0 / 0.5865 GB, free: 86.78 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006746/1.439, allocations: 2.481 MB / 0.5889 GB, free: 85.54 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003176/1.442, allocations: 303.2 kB / 0.5892 GB, free: 85.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/1.46, allocations: 6.219 MB / 0.5953 GB, free: 82.18 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/1.462, allocations: 1.592 MB / 0.5968 GB, free: 80.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/1.464, allocations: 0.8925 MB / 0.5977 GB, free: 80.07 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/1.464, allocations: 0 / 0.5977 GB, free: 80.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.833/5.297, allocations: 80.05 MB / 0.6759 GB, free: 6.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat