Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadModel(Modelica): time 1.26/1.26, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.468e-05/2.462e-05, allocations: 4 kB / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05778/0.05783, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003864/0.06175, allocations: 2.163 MB / 181.9 MB, free: 7.441 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.06405, allocations: 0.7854 MB / 182.6 MB, free: 6.652 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002926/0.0644, allocations: 8 kB / 182.6 MB, free: 6.645 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.06463, allocations: 55.62 kB / 182.7 MB, free: 6.59 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004495/0.0651, allocations: 139.5 kB / 182.8 MB, free: 6.453 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007211/0.06583, allocations: 183.7 kB / 183 MB, free: 6.273 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009205/0.06677, allocations: 356.6 kB / 183.4 MB, free: 5.926 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.06705, allocations: 65.69 kB / 183.4 MB, free: 5.863 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006061/0.06767, allocations: 263.3 kB / 183.7 MB, free: 5.605 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005647/0.06825, allocations: 291.2 kB / 184 MB, free: 5.32 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000247/0.06851, allocations: 59.91 kB / 184 MB, free: 5.262 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.06865, allocations: 32 kB / 184.1 MB, free: 5.23 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.06884, allocations: 115.6 kB / 184.2 MB, free: 5.117 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.06902, allocations: 44 kB / 184.2 MB, free: 5.074 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008054/0.06983, allocations: 467 kB / 184.7 MB, free: 4.617 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.06986, allocations: 4 kB / 184.7 MB, free: 4.613 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.06987, allocations: 0 / 184.7 MB, free: 4.613 MB / 154.7 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.0699, allocations: 0 / 184.7 MB, free: 4.613 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002609/0.07252, allocations: 0.7684 MB / 185.4 MB, free: 3.797 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.07259, allocations: 12.03 kB / 185.5 MB, free: 3.785 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.07283, allocations: 55.34 kB / 185.5 MB, free: 3.73 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006588/0.0735, allocations: 326.6 kB / 185.8 MB, free: 3.367 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-05/0.07357, allocations: 33 kB / 185.9 MB, free: 3.332 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.07373, allocations: 47.98 kB / 185.9 MB, free: 3.285 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001839/0.07559, allocations: 0.58 MB / 186.5 MB, free: 2.691 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.07568, allocations: 15.86 kB / 186.5 MB, free: 2.676 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.191e-05/0.07578, allocations: 16 kB / 186.5 MB, free: 2.66 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.0758, allocations: 8 kB / 186.5 MB, free: 2.652 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.07787, allocations: 0.5816 MB / 187.1 MB, free: 2.07 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003942/0.08185, allocations: 1.321 MB / 188.4 MB, free: 0.6914 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.0836, allocations: 433.3 kB / 188.8 MB, free: 264 kB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.08377, allocations: 8.562 kB / 188.9 MB, free: 256 kB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.08382, allocations: 43.12 kB / 188.9 MB, free: 204 kB / 154.7 MB Notification: Performance of pre-optimization done (n=55): time 3.948e-06/0.08384, allocations: 3.938 kB / 188.9 MB, free: 200 kB / 154.7 MB Notification: Performance of matching and sorting (n=61): time 0.01121/0.09506, allocations: 2.889 MB / 191.8 MB, free: 13.16 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.09515, allocations: 55.97 kB / 191.8 MB, free: 13.09 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005027/0.09566, allocations: 292.9 kB / 192.1 MB, free: 12.8 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001227/0.0958, allocations: 45.7 kB / 192.2 MB, free: 12.75 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001824/0.09599, allocations: 243.7 kB / 192.4 MB, free: 12.51 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/0.0963, allocations: 213.2 kB / 192.6 MB, free: 12.3 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.316e-05/0.09638, allocations: 11.94 kB / 192.6 MB, free: 12.29 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.09655, allocations: 342.8 kB / 193 MB, free: 11.95 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.09762, allocations: 305.2 kB / 193.3 MB, free: 11.65 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.09877, allocations: 361.6 kB / 193.6 MB, free: 11.29 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008695/0.09966, allocations: 243.2 kB / 193.9 MB, free: 11.05 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.09968, allocations: 0 / 193.9 MB, free: 11.05 MB / 170.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002893/0.1026, allocations: 0.8654 MB / 194.7 MB, free: 10.18 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.1027, allocations: 11.95 kB / 194.7 MB, free: 10.16 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1027, allocations: 0 / 194.7 MB, free: 10.16 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.1043, allocations: 0.541 MB / 195.3 MB, free: 9.621 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007607/0.1051, allocations: 107.8 kB / 195.4 MB, free: 9.516 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/0.1073, allocations: 1.048 MB / 196.4 MB, free: 8.441 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/0.1086, allocations: 147.9 kB / 196.6 MB, free: 8.297 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.321e-05/0.1087, allocations: 23.94 kB / 196.6 MB, free: 8.273 MB / 170.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 (61): * Single equations (assignments): 60 * 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 prepare postOptimizeDAE: time 0.0003746/0.1091, allocations: 180 kB / 196.8 MB, free: 8.09 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.1093, allocations: 43.53 kB / 196.8 MB, free: 8.047 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.1095, allocations: 68.72 kB / 196.9 MB, free: 7.98 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.1095, allocations: 8 kB / 196.9 MB, free: 7.973 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1096, allocations: 4 kB / 196.9 MB, free: 7.969 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.1096, allocations: 3.984 kB / 196.9 MB, free: 7.965 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004126/0.1137, allocations: 1.477 MB / 198.4 MB, free: 6.422 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.1138, allocations: 0 / 198.4 MB, free: 6.422 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.1147, allocations: 91.88 kB / 198.5 MB, free: 6.332 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/0.1163, allocations: 0.5084 MB / 199 MB, free: 5.82 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.1165, allocations: 19.97 kB / 199 MB, free: 5.801 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.1187, allocations: 1.024 MB / 200 MB, free: 4.754 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.1187, allocations: 0 / 200 MB, free: 4.754 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004072/0.1228, allocations: 1.237 MB / 201.3 MB, free: 3.5 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.1233, allocations: 180.4 kB / 201.4 MB, free: 3.305 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/0.1235, allocations: 20 kB / 201.5 MB, free: 3.285 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.1247, allocations: 147.8 kB / 201.6 MB, free: 3.141 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004862/0.1252, allocations: 140.2 kB / 201.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.024e-05/0.1253, allocations: 27.97 kB / 201.8 MB, free: 2.977 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0003997/0.1258, allocations: 231.2 kB / 202 MB, free: 2.75 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1258, allocations: 4 kB / 202 MB, free: 2.746 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007452/0.1265, allocations: 143.9 kB / 202.1 MB, free: 2.605 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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.0003566/0.1269, allocations: 147.2 kB / 202.3 MB, free: 2.453 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002712/0.1296, allocations: 0.745 MB / 203 MB, free: 1.707 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.1297, allocations: 0 / 203 MB, free: 1.707 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.1312, allocations: 414 kB / 203.4 MB, free: 1.301 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000865/0.1321, allocations: 77.42 kB / 203.5 MB, free: 1.227 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1409/0.273, allocations: 1.636 MB / 205.1 MB, free: 24.41 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.2735, allocations: 0.8496 MB / 206 MB, free: 23.71 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.2738, allocations: 39.06 kB / 206 MB, free: 23.71 MB / 170.7 MB Notification: Performance of SimCode: time 3.447e-06/0.2738, allocations: 3.969 kB / 206 MB, free: 23.71 MB / 170.7 MB Notification: Performance of Templates: time 0.01895/0.2927, allocations: 7.452 MB / 213.5 MB, free: 21.28 MB / 170.7 MB