Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.501/2.501, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.333e-05/5.359e-05, allocations: 11.94 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1523, allocations: 61.88 MB / 410.4 MB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5459/0.6982, allocations: 106.4 MB / 0.5047 GB, free: 13.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.6985, allocations: 63.97 kB / 0.5047 GB, free: 13.51 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2958/0.9944, allocations: 50.03 MB / 0.5536 GB, free: 11.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.9944, allocations: 4 kB / 0.5536 GB, free: 11.29 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001933/0.9947, allocations: 44 kB / 0.5536 GB, free: 11.25 MB / 474.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.01231/1.007, allocations: 2.352 MB / 0.5559 GB, free: 8.84 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/1.007, allocations: 12.02 kB / 0.5559 GB, free: 8.828 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001286/1.008, allocations: 303.9 kB / 0.5562 GB, free: 8.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0022/1.011, allocations: 296.9 kB / 0.5565 GB, free: 8.227 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003608/1.014, allocations: 0.9746 MB / 0.5575 GB, free: 7.195 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001553/1.016, allocations: 472 kB / 0.5579 GB, free: 6.688 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/1.017, allocations: 243.6 kB / 0.5581 GB, free: 6.449 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01001/1.027, allocations: 2.311 MB / 0.5604 GB, free: 4.059 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002928/1.028, allocations: 35.64 kB / 0.5604 GB, free: 4.023 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006833/1.028, allocations: 92 kB / 0.5605 GB, free: 3.934 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.741e-05/1.028, allocations: 52 kB / 0.5606 GB, free: 3.883 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008472/1.037, allocations: 2.168 MB / 0.5627 GB, free: 1.707 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03243/1.069, allocations: 6.767 MB / 0.5693 GB, free: 10.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009617/1.079, allocations: 2.211 MB / 0.5714 GB, free: 8.488 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005865/1.085, allocations: 1.207 MB / 0.5726 GB, free: 7.266 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007138/1.086, allocations: 127.1 kB / 0.5727 GB, free: 7.125 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/1.086, allocations: 68.38 kB / 0.5728 GB, free: 7.051 MB / 490.7 MB Notification: Performance of pre-optimization done (n=280): time 1.06e-05/1.086, allocations: 4 kB / 0.5728 GB, free: 7.047 MB / 490.7 MB Notification: Performance of matching and sorting (n=338): time 0.04612/1.132, allocations: 11.1 MB / 0.5837 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002398/1.132, allocations: 325.5 kB / 0.584 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002469/1.135, allocations: 0.9081 MB / 0.5849 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009811/1.136, allocations: 93.7 kB / 0.5849 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001035/1.137, allocations: 0.6755 MB / 0.5856 GB, free: 9.371 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002261/1.139, allocations: 1.128 MB / 0.5867 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008464/1.14, allocations: 75.92 kB / 0.5868 GB, free: 8.152 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000429/1.141, allocations: 424.6 kB / 0.5872 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00419/1.145, allocations: 1.018 MB / 0.5882 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005222/1.15, allocations: 1.402 MB / 0.5895 GB, free: 5.191 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003974/1.154, allocations: 1.017 MB / 0.5905 GB, free: 4.172 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-05/1.154, allocations: 4 kB / 0.5905 GB, free: 4.168 MB / 0.4948 GB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01313/1.167, allocations: 3.264 MB / 0.5937 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/1.167, allocations: 8 kB / 0.5937 GB, free: 0.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.855e-05/1.167, allocations: 15.98 kB / 0.5937 GB, free: 0.8594 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004526/1.172, allocations: 1.013 MB / 0.5947 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00716/1.179, allocations: 0.7489 MB / 0.5955 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/1.195, allocations: 7.399 MB / 0.6027 GB, free: 7.348 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00455/1.2, allocations: 295.8 kB / 0.603 GB, free: 7.059 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/1.201, allocations: 124 kB / 0.6031 GB, free: 6.938 MB / 0.5105 GB 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.001601/1.202, allocations: 296.3 kB / 0.6034 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.204, allocations: 217.4 kB / 0.6036 GB, free: 6.426 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.215, allocations: 2.289 MB / 0.6058 GB, free: 4.102 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-05/1.215, allocations: 36 kB / 0.6059 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/1.215, allocations: 4 kB / 0.6059 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000118/1.215, allocations: 19.88 kB / 0.6059 GB, free: 4.043 MB / 0.5105 GB 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.4038/1.619, allocations: 7.307 MB / 0.613 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.606e-05/1.619, allocations: 16.48 kB / 0.613 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006928/1.626, allocations: 0.7398 MB / 0.6138 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004091/1.63, allocations: 1.006 MB / 0.6147 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008042/1.631, allocations: 103.5 kB / 0.6148 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/1.649, allocations: 10.02 MB / 0.6246 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.529e-05/1.649, allocations: 14.72 kB / 0.6246 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/1.666, allocations: 5.753 MB / 0.6302 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002228/1.669, allocations: 0.5293 MB / 0.6308 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/1.67, allocations: 88.05 kB / 0.6309 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004839/1.675, allocations: 303.9 kB / 0.6311 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002081/1.677, allocations: 450.7 kB / 0.6316 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008121/1.678, allocations: 130.7 kB / 0.6317 GB, free: 132.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001753/1.679, allocations: 0.7022 MB / 0.6324 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.052e-06/1.68, allocations: 0 / 0.6324 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005106/1.685, allocations: 0.7312 MB / 0.6331 GB, free: 132.8 MB / 0.5105 GB 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.01834/1.703, allocations: 8.861 MB / 0.6417 GB, free: 127.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00909/1.712, allocations: 3.014 MB / 0.6447 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.46e-05/1.712, allocations: 0 / 0.6447 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00853/1.721, allocations: 2.592 MB / 0.6472 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/1.725, allocations: 310.6 kB / 0.6475 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02176/1.747, allocations: 6.157 MB / 0.6535 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/1.748, allocations: 1.584 MB / 0.6551 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002593/1.751, allocations: 311.4 kB / 0.6554 GB, free: 121.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/1.753, allocations: 0.8687 MB / 0.6562 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/1.753, allocations: 0 / 0.6562 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1491/1.902, allocations: 53.48 MB / 0.7085 GB, free: 90.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002252/1.903, allocations: 175.9 kB / 0.7086 GB, free: 90.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.206/7.109, allocations: 0 / 0.7086 GB, free: 90.64 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat