Running command: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.165/2.165, allocations: 234.8 MB / 247 MB, free: 2.066 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.494e-05, allocations: 7.984 kB / 302.3 MB, free: 14.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 52.37 MB / 354.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4444/0.5593, allocations: 87.36 MB / 442 MB, free: 9.516 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5596, allocations: 72.72 kB / 442.1 MB, free: 9.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3172/0.8769, allocations: 70.04 MB / 0.5002 GB, free: 2.887 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.8769, allocations: 0 / 0.5002 GB, free: 2.887 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001503/0.8771, allocations: 56 kB / 0.5002 GB, free: 2.832 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.02184/0.8989, allocations: 3.705 MB / 0.5038 GB, free: 15.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.899, allocations: 16.03 kB / 0.5038 GB, free: 15.05 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002738/0.9018, allocations: 0.6516 MB / 0.5045 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0163/0.9181, allocations: 1.969 MB / 0.5064 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00657/0.9247, allocations: 1.838 MB / 0.5082 GB, free: 10.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003994/0.9252, allocations: 250.4 kB / 0.5084 GB, free: 10.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002113/0.9273, allocations: 335.8 kB / 0.5088 GB, free: 9.957 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0276/0.9549, allocations: 8.432 MB / 0.517 GB, free: 1.078 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002323/0.9552, allocations: 27.72 kB / 0.517 GB, free: 1.051 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/0.9571, allocations: 151.9 kB / 0.5172 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3087/1.266, allocations: 0.9838 MB / 0.5181 GB, free: 101.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02666/1.293, allocations: 7.669 MB / 0.5256 GB, free: 101.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06286/1.355, allocations: 28.56 MB / 0.5535 GB, free: 88.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01187/1.367, allocations: 2.764 MB / 0.5562 GB, free: 87.03 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002565/1.37, allocations: 0.9452 MB / 0.5571 GB, free: 86.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01429/1.384, allocations: 6.486 MB / 0.5635 GB, free: 82.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/1.384, allocations: 50.12 kB / 0.5635 GB, free: 82.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 5.129e-06/1.384, allocations: 0 / 0.5635 GB, free: 82.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.03304/1.417, allocations: 8.602 MB / 0.5719 GB, free: 79.31 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02221/1.44, allocations: 10.86 MB / 0.5825 GB, free: 71.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008083/1.448, allocations: 2.653 MB / 0.5851 GB, free: 70.58 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004292/1.448, allocations: 55.33 kB / 0.5852 GB, free: 70.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002615/1.451, allocations: 2.358 MB / 0.5875 GB, free: 68.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/1.452, allocations: 0.7207 MB / 0.5882 GB, free: 68.18 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006473/1.453, allocations: 96.81 kB / 0.5883 GB, free: 68.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004503/1.453, allocations: 0.4997 MB / 0.5887 GB, free: 67.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/1.459, allocations: 1.454 MB / 0.5902 GB, free: 67.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007765/1.467, allocations: 3.995 MB / 0.5941 GB, free: 63.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007932/1.475, allocations: 2.453 MB / 0.5965 GB, free: 62.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001096/1.475, allocations: 27.66 kB / 0.5965 GB, free: 62.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.02165/1.496, allocations: 5.631 MB / 0.602 GB, free: 60.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/1.497, allocations: 43.47 kB / 0.602 GB, free: 60.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.497, allocations: 88.5 kB / 0.6021 GB, free: 60.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003239/1.5, allocations: 0.5937 MB / 0.6027 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007012/1.507, allocations: 1.023 MB / 0.6037 GB, free: 59.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/1.521, allocations: 8.44 MB / 0.6119 GB, free: 51.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00554/1.527, allocations: 246.9 kB / 0.6122 GB, free: 50.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.528, allocations: 285.1 kB / 0.6124 GB, free: 50.64 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.0009244/1.529, allocations: 458.6 kB / 0.6129 GB, free: 50.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006642/1.529, allocations: 268.5 kB / 0.6131 GB, free: 49.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007439/1.537, allocations: 2.798 MB / 0.6159 GB, free: 47.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001883/1.537, allocations: 36.62 kB / 0.6159 GB, free: 47.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.537, allocations: 8 kB / 0.6159 GB, free: 47.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.358e-05/1.537, allocations: 7.172 kB / 0.6159 GB, free: 47.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02719/1.564, allocations: 9.183 MB / 0.6249 GB, free: 39.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/1.564, allocations: 7.703 kB / 0.6249 GB, free: 39.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/1.566, allocations: 213.7 kB / 0.6251 GB, free: 39.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002785/1.569, allocations: 0.5934 MB / 0.6257 GB, free: 39.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003889/1.569, allocations: 36.27 kB / 0.6257 GB, free: 39.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01484/1.584, allocations: 8.543 MB / 0.634 GB, free: 31.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009382/1.594, allocations: 5.644 MB / 0.6396 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009504/1.603, allocations: 4.35 MB / 0.6438 GB, free: 21.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/1.605, allocations: 363.8 kB / 0.6442 GB, free: 21.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000848/1.606, allocations: 40.02 kB / 0.6442 GB, free: 21.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/1.608, allocations: 87.28 kB / 0.6443 GB, free: 21.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004359/1.608, allocations: 129 kB / 0.6444 GB, free: 21.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001695/1.608, allocations: 50.62 kB / 0.6444 GB, free: 21.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004456/1.613, allocations: 1.881 MB / 0.6463 GB, free: 19.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.613, allocations: 4 kB / 0.6463 GB, free: 19.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006088/1.619, allocations: 0.9036 MB / 0.6472 GB, free: 18.39 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.009682/1.629, allocations: 5.857 MB / 0.6529 GB, free: 12.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008515/1.637, allocations: 3.86 MB / 0.6567 GB, free: 8.543 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/1.637, allocations: 0 / 0.6567 GB, free: 8.543 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003344/1.641, allocations: 1.561 MB / 0.6582 GB, free: 6.949 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003086/1.644, allocations: 405.4 kB / 0.6586 GB, free: 6.566 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02267/1.667, allocations: 7.218 MB / 0.6656 GB, free: 15.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00708/1.674, allocations: 2.909 MB / 0.6685 GB, free: 12.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006866/1.681, allocations: 1.329 MB / 0.6698 GB, free: 11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004098/1.685, allocations: 1.476 MB / 0.6712 GB, free: 9.531 MB / 458.7 MB Notification: Performance of SimCode: time 2.154e-06/1.685, allocations: 0 / 0.6712 GB, free: 9.531 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5147/2.2, allocations: 64.98 MB / 0.7347 GB, free: 116.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/2.2, allocations: 199.5 kB / 0.7348 GB, free: 116 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.783/6.983, allocations: 4 kB / 0.7348 GB, free: 116 MB / 474.7 MB