Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.142/2.142, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.162e-05/3.164e-05, allocations: 4 kB / 292.8 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 50.4 MB / 343.2 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4522/0.5608, allocations: 79.91 MB / 423.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5612, allocations: 73.14 kB / 423.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0453/0.6065, allocations: 9.287 MB / 432.4 MB, free: 5.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6066, allocations: 0 / 432.4 MB, free: 5.891 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.117e-05/0.6066, allocations: 8 kB / 432.4 MB, free: 5.883 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002642/0.6093, allocations: 0.7722 MB / 433.2 MB, free: 5.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.6093, allocations: 8.031 kB / 433.2 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001806/0.6095, allocations: 84.45 kB / 433.3 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.6097, allocations: 59.25 kB / 433.4 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007027/0.6104, allocations: 337.5 kB / 433.7 MB, free: 4.621 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/0.6105, allocations: 35 kB / 433.7 MB, free: 4.602 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.6107, allocations: 45.75 kB / 433.8 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.6122, allocations: 0.547 MB / 434.3 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.753e-05/0.6122, allocations: 11.91 kB / 434.3 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.951e-05/0.6123, allocations: 21.77 kB / 434.3 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.6124, allocations: 8 kB / 434.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.6139, allocations: 496.5 kB / 434.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004623/0.6186, allocations: 1.348 MB / 436.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.6203, allocations: 444.3 kB / 436.6 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.6212, allocations: 265.2 kB / 436.9 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.6214, allocations: 8.562 kB / 436.9 MB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.6214, allocations: 41.94 kB / 436.9 MB, free: 2.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 4.489e-06/0.6214, allocations: 4 kB / 436.9 MB, free: 2.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.0061/0.6275, allocations: 1.924 MB / 438.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.6276, allocations: 63.91 kB / 438.9 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.6281, allocations: 258.6 kB / 439.2 MB, free: 308 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.6283, allocations: 44.69 kB / 439.2 MB, free: 268 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.6284, allocations: 187.8 kB / 439.4 MB, free: 120 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.6287, allocations: 227.6 kB / 439.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.301e-05/0.6288, allocations: 15.61 kB / 439.6 MB, free: 15.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.629, allocations: 352.3 kB / 440 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000743/0.6298, allocations: 266.5 kB / 440.2 MB, free: 15.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007884/0.6306, allocations: 314.4 kB / 440.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005862/0.6312, allocations: 194.4 kB / 440.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.6312, allocations: 0 / 440.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002284/0.6335, allocations: 0.7864 MB / 441.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.6335, allocations: 11.95 kB / 441.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.6336, allocations: 11.95 kB / 441.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.6353, allocations: 0.5499 MB / 442.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007825/0.6361, allocations: 103.3 kB / 442.2 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001921/0.638, allocations: 0.9722 MB / 443.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.6395, allocations: 150.1 kB / 443.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.6397, allocations: 27.55 kB / 443.3 MB, free: 13.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003034/0.64, allocations: 155.2 kB / 443.5 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.6402, allocations: 47.44 kB / 443.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002665/0.6428, allocations: 0.861 MB / 444.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.6429, allocations: 4 kB / 444.4 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.6429, allocations: 4 kB / 444.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.6429, allocations: 7.938 kB / 444.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.6467, allocations: 1.428 MB / 445.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.6467, allocations: 0 / 445.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008961/0.6476, allocations: 91.7 kB / 445.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001605/0.6492, allocations: 0.53 MB / 446.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.6494, allocations: 30.77 kB / 446.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.6512, allocations: 0.9442 MB / 447.4 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6512, allocations: 0 / 447.4 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003278/0.6545, allocations: 1.119 MB / 448.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004315/0.6549, allocations: 188.4 kB / 448.7 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.6551, allocations: 23.95 kB / 448.8 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.6565, allocations: 143.9 kB / 448.9 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004671/0.657, allocations: 152.2 kB / 449 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.6571, allocations: 35.95 kB / 449.1 MB, free: 8.289 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003395/0.6574, allocations: 210.2 kB / 449.3 MB, free: 8.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6574, allocations: 0 / 449.3 MB, free: 8.082 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008236/0.6583, allocations: 156 kB / 449.4 MB, free: 7.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.003848/0.6621, allocations: 1.718 MB / 451.2 MB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002206/0.6644, allocations: 0.7325 MB / 451.9 MB, free: 5.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.6644, allocations: 4.062 kB / 451.9 MB, free: 5.426 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.6656, allocations: 372.8 kB / 452.3 MB, free: 5.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009007/0.6665, allocations: 85.05 kB / 452.3 MB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.6708, allocations: 1.329 MB / 453.7 MB, free: 3.613 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.6713, allocations: 0.8557 MB / 454.5 MB, free: 2.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003166/0.6717, allocations: 36.19 kB / 454.6 MB, free: 2.691 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003597/0.672, allocations: 147.4 kB / 454.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of SimCode: time 1.383e-06/0.672, allocations: 0 / 454.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05366/0.7257, allocations: 15.33 MB / 470 MB, free: 3.367 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002868/0.7261, allocations: 183.1 kB / 470.2 MB, free: 3.145 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.214/3.94, allocations: 0 / 470.2 MB, free: 3.145 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat