Running command: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PlanarMechanics): time 2.263/2.263, allocations: 234.8 MB / 247 MB, free: 2.07 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.061e-05/3.067e-05, allocations: 0 / 302.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1187, allocations: 52.38 MB / 354.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5015/0.6203, allocations: 87.37 MB / 442.1 MB, free: 9.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003664/0.6207, allocations: 71.97 kB / 442.1 MB, free: 9.516 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3501/0.9708, allocations: 70.04 MB / 0.5002 GB, free: 2.961 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.9709, allocations: 4 kB / 0.5002 GB, free: 2.957 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001979/0.9711, allocations: 60 kB / 0.5002 GB, free: 2.898 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.02288/0.994, allocations: 3.709 MB / 0.5038 GB, free: 15.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.9941, allocations: 8.031 kB / 0.5038 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003005/0.9971, allocations: 0.6477 MB / 0.5045 GB, free: 14.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01662/1.014, allocations: 1.977 MB / 0.5064 GB, free: 12.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006717/1.021, allocations: 1.834 MB / 0.5082 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004297/1.021, allocations: 254.4 kB / 0.5084 GB, free: 10.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002245/1.023, allocations: 327.8 kB / 0.5088 GB, free: 10.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02936/1.053, allocations: 8.429 MB / 0.517 GB, free: 1.152 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002368/1.053, allocations: 31.75 kB / 0.517 GB, free: 1.121 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002142/1.055, allocations: 151.9 kB / 0.5172 GB, free: 0.9727 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.3558/1.411, allocations: 0.9902 MB / 0.5181 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02677/1.438, allocations: 7.662 MB / 0.5256 GB, free: 101.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06282/1.501, allocations: 28.57 MB / 0.5535 GB, free: 87.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/1.512, allocations: 2.761 MB / 0.5562 GB, free: 86.47 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002254/1.515, allocations: 0.9475 MB / 0.5571 GB, free: 86.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01356/1.528, allocations: 6.479 MB / 0.5635 GB, free: 81.79 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/1.528, allocations: 49.44 kB / 0.5635 GB, free: 81.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 5.19e-06/1.528, allocations: 3.438 kB / 0.5635 GB, free: 81.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=193): time 0.02348/1.552, allocations: 5.443 MB / 0.5688 GB, free: 80.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/1.552, allocations: 72.66 kB / 0.5689 GB, free: 79.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005767/1.558, allocations: 2.663 MB / 0.5715 GB, free: 78.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003207/1.558, allocations: 49.33 kB / 0.5715 GB, free: 78.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/1.56, allocations: 2.356 MB / 0.5738 GB, free: 77.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008284/1.561, allocations: 0.7082 MB / 0.5745 GB, free: 76.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004056/1.561, allocations: 90.95 kB / 0.5746 GB, free: 76.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002955/1.561, allocations: 0.5007 MB / 0.5751 GB, free: 76.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003516/1.565, allocations: 1.429 MB / 0.5765 GB, free: 75.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005852/1.571, allocations: 3.964 MB / 0.5804 GB, free: 71.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005599/1.576, allocations: 2.403 MB / 0.5827 GB, free: 71.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.88e-05/1.577, allocations: 25.5 kB / 0.5828 GB, free: 71.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01518/1.592, allocations: 5.581 MB / 0.5882 GB, free: 69.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.718e-05/1.592, allocations: 42.16 kB / 0.5882 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000125/1.592, allocations: 95.7 kB / 0.5883 GB, free: 69.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002487/1.595, allocations: 0.5901 MB / 0.5889 GB, free: 68.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006217/1.601, allocations: 1.002 MB / 0.5899 GB, free: 68.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/1.614, allocations: 8.377 MB / 0.5981 GB, free: 63.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005398/1.62, allocations: 244.4 kB / 0.5983 GB, free: 62.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/1.621, allocations: 278.8 kB / 0.5986 GB, free: 62.89 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 (548): * Single equations (assignments): 541 * 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 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001058/1.622, allocations: 452.7 kB / 0.599 GB, free: 62.52 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006204/1.623, allocations: 267.1 kB / 0.5993 GB, free: 62.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006705/1.629, allocations: 2.591 MB / 0.6018 GB, free: 60.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001882/1.63, allocations: 27.33 kB / 0.6018 GB, free: 60.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.63, allocations: 7.281 kB / 0.6018 GB, free: 60.58 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.885e-05/1.63, allocations: 10.94 kB / 0.6018 GB, free: 60.58 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01833/1.648, allocations: 7.229 MB / 0.6089 GB, free: 54.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-05/1.648, allocations: 4 kB / 0.6089 GB, free: 54.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/1.65, allocations: 237.5 kB / 0.6091 GB, free: 54.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/1.652, allocations: 447.7 kB / 0.6095 GB, free: 53.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002475/1.652, allocations: 35.56 kB / 0.6096 GB, free: 53.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/1.663, allocations: 7.229 MB / 0.6166 GB, free: 46.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/1.663, allocations: 11.95 kB / 0.6166 GB, free: 46.93 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008295/1.671, allocations: 4.235 MB / 0.6208 GB, free: 42.94 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/1.672, allocations: 354 kB / 0.6211 GB, free: 42.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004915/1.673, allocations: 35.89 kB / 0.6212 GB, free: 42.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/1.674, allocations: 80 kB / 0.6212 GB, free: 42.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/1.675, allocations: 127 kB / 0.6214 GB, free: 42.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001519/1.675, allocations: 57.02 kB / 0.6214 GB, free: 42.37 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004025/1.679, allocations: 1.875 MB / 0.6232 GB, free: 40.69 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.12e-07/1.679, allocations: 0 / 0.6232 GB, free: 40.69 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005562/1.684, allocations: 0.8405 MB / 0.6241 GB, free: 39.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 127 * 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 {(3,88.9%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.008824/1.693, allocations: 5.995 MB / 0.6299 GB, free: 34.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009007/1.702, allocations: 3.794 MB / 0.6336 GB, free: 30.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.702, allocations: 4 kB / 0.6336 GB, free: 30.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003556/1.706, allocations: 1.457 MB / 0.635 GB, free: 29.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00584/1.712, allocations: 394.5 kB / 0.6354 GB, free: 28.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02182/1.734, allocations: 6.974 MB / 0.6422 GB, free: 22.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005383/1.739, allocations: 2.871 MB / 0.645 GB, free: 20.56 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006201/1.746, allocations: 1.339 MB / 0.6463 GB, free: 19.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003403/1.749, allocations: 1.487 MB / 0.6478 GB, free: 17.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/1.749, allocations: 0 / 0.6478 GB, free: 17.79 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5743/2.323, allocations: 62.36 MB / 0.7087 GB, free: 114.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/2.324, allocations: 171 kB / 0.7089 GB, free: 114.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.653/6.977, allocations: 0 / 0.7089 GB, free: 114.4 MB / 474.7 MB