Running command: translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadModel(PlanarMechanics): time 1.97/1.97, allocations: 234.8 MB / 247 MB, free: 2.066 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.196e-05/3.216e-05, allocations: 4 kB / 302.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09343/0.09348, allocations: 52.37 MB / 354.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5056, allocations: 87.37 MB / 442 MB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.5059, allocations: 71.97 kB / 442 MB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3384/0.8443, allocations: 70.04 MB / 0.5001 GB, free: 3.086 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.922e-06/0.8444, allocations: 0 / 0.5001 GB, free: 3.086 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001335/0.8445, allocations: 60 kB / 0.5001 GB, free: 3.027 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.0155/0.86, allocations: 3.701 MB / 0.5037 GB, free: 15.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.8601, allocations: 12.03 kB / 0.5037 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01202/0.8721, allocations: 1.973 MB / 0.5057 GB, free: 13.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005168/0.8773, allocations: 1.838 MB / 0.5075 GB, free: 11.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003132/0.8777, allocations: 250.5 kB / 0.5077 GB, free: 11.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.8788, allocations: 335.7 kB / 0.508 GB, free: 10.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02175/0.9006, allocations: 8.432 MB / 0.5163 GB, free: 1.934 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001272/0.9007, allocations: 23.81 kB / 0.5163 GB, free: 1.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007796/0.9015, allocations: 151.9 kB / 0.5164 GB, free: 1.762 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00355/0.9051, allocations: 0.9903 MB / 0.5174 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3269/1.232, allocations: 7.668 MB / 0.5249 GB, free: 102 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05612/1.288, allocations: 28.56 MB / 0.5528 GB, free: 88.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01629/1.305, allocations: 2.759 MB / 0.5555 GB, free: 87.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003259/1.308, allocations: 0.9435 MB / 0.5564 GB, free: 87.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01836/1.326, allocations: 6.486 MB / 0.5627 GB, free: 82.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.659e-05/1.326, allocations: 47.41 kB / 0.5628 GB, free: 82.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 9.624e-06/1.326, allocations: 0 / 0.5628 GB, free: 82.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.04574/1.372, allocations: 8.603 MB / 0.5712 GB, free: 79.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02159/1.394, allocations: 10.86 MB / 0.5818 GB, free: 71.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004643/1.399, allocations: 2.657 MB / 0.5844 GB, free: 70.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002384/1.399, allocations: 59.27 kB / 0.5844 GB, free: 70.89 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/1.4, allocations: 2.355 MB / 0.5867 GB, free: 69.08 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006691/1.401, allocations: 0.7223 MB / 0.5874 GB, free: 68.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/1.401, allocations: 96.5 kB / 0.5875 GB, free: 68.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002761/1.401, allocations: 0.5012 MB / 0.588 GB, free: 68.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002805/1.404, allocations: 1.454 MB / 0.5894 GB, free: 67.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004784/1.409, allocations: 3.99 MB / 0.5933 GB, free: 63.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00472/1.414, allocations: 2.452 MB / 0.5957 GB, free: 62.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.177e-05/1.414, allocations: 26.38 kB / 0.5958 GB, free: 62.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01288/1.427, allocations: 5.628 MB / 0.6013 GB, free: 60.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.824e-05/1.427, allocations: 44.78 kB / 0.6013 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.333e-05/1.427, allocations: 89.56 kB / 0.6014 GB, free: 60.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/1.429, allocations: 0.59 MB / 0.602 GB, free: 60.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00766/1.437, allocations: 1.02 MB / 0.603 GB, free: 60.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01946/1.456, allocations: 8.448 MB / 0.6112 GB, free: 52.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007945/1.464, allocations: 248.6 kB / 0.6114 GB, free: 52.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/1.465, allocations: 291.3 kB / 0.6117 GB, free: 51.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (554): * Single equations (assignments): 547 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001235/1.467, allocations: 452.4 kB / 0.6121 GB, free: 51.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009284/1.468, allocations: 268.6 kB / 0.6124 GB, free: 51.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0105/1.478, allocations: 2.79 MB / 0.6151 GB, free: 48.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002484/1.478, allocations: 31.84 kB / 0.6152 GB, free: 48.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/1.478, allocations: 11.95 kB / 0.6152 GB, free: 48.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.54e-05/1.479, allocations: 7.078 kB / 0.6152 GB, free: 48.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03339/1.512, allocations: 9.194 MB / 0.6242 GB, free: 41.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/1.512, allocations: 4 kB / 0.6242 GB, free: 41.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/1.514, allocations: 213.5 kB / 0.6244 GB, free: 40.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003849/1.518, allocations: 0.5935 MB / 0.6249 GB, free: 40.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002731/1.518, allocations: 38.3 kB / 0.625 GB, free: 40.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0187/1.537, allocations: 8.549 MB / 0.6333 GB, free: 32.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007523/1.545, allocations: 5.636 MB / 0.6388 GB, free: 26.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00737/1.552, allocations: 4.35 MB / 0.6431 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009397/1.553, allocations: 361.6 kB / 0.6434 GB, free: 22.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004757/1.554, allocations: 38.8 kB / 0.6435 GB, free: 22.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.555, allocations: 91.78 kB / 0.6435 GB, free: 22.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/1.555, allocations: 129.1 kB / 0.6437 GB, free: 22.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000159/1.556, allocations: 55.98 kB / 0.6437 GB, free: 22.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003559/1.559, allocations: 1.873 MB / 0.6456 GB, free: 20.33 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.007e-06/1.559, allocations: 0 / 0.6456 GB, free: 20.33 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005094/1.564, allocations: 0.9052 MB / 0.6464 GB, free: 19.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 16,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.00042/1.565, allocations: 182.6 kB / 0.6466 GB, free: 19.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006951/1.572, allocations: 3.862 MB / 0.6504 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/1.572, allocations: 0 / 0.6504 GB, free: 15.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002628/1.574, allocations: 1.564 MB / 0.6519 GB, free: 13.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/1.577, allocations: 399.6 kB / 0.6523 GB, free: 13.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/1.589, allocations: 6.101 MB / 0.6583 GB, free: 7.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003917/1.593, allocations: 2.908 MB / 0.6611 GB, free: 4.305 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004265/1.597, allocations: 1.325 MB / 0.6624 GB, free: 2.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007709/1.598, allocations: 203.4 kB / 0.6626 GB, free: 2.785 MB / 442.7 MB Notification: Performance of SimCode: time 1.756e-06/1.598, allocations: 0 / 0.6626 GB, free: 2.785 MB / 442.7 MB Notification: Performance of Templates: time 0.09431/1.692, allocations: 31.94 MB / 0.6938 GB, free: 3.512 MB / 474.7 MB