Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.661e-05/3.671e-05, allocations: 4 kB / 225.1 MB, free: 2.234 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2647, allocations: 38.76 MB / 263.9 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.4207, allocations: 84.91 MB / 348.8 MB, free: 4.777 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003448/0.4211, allocations: 87.94 kB / 348.9 MB, free: 4.691 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.12/1.541, allocations: 160 MB / 0.4969 GB, free: 36.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.541, allocations: 1.688 kB / 0.4969 GB, free: 36.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007331/1.541, allocations: 158 kB / 0.4971 GB, free: 36.36 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: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.03272/1.574, allocations: 7.881 MB / 0.5048 GB, free: 34.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/1.574, allocations: 13.97 kB / 0.5048 GB, free: 34.61 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005892/1.58, allocations: 1.2 MB / 0.506 GB, free: 34.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1257/1.706, allocations: 16.49 MB / 0.5221 GB, free: 33.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04439/1.75, allocations: 13.48 MB / 0.5352 GB, free: 32.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000742/1.751, allocations: 0.5231 MB / 0.5357 GB, free: 32.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003763/1.755, allocations: 0.7241 MB / 0.5364 GB, free: 32.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04957/1.805, allocations: 16.18 MB / 0.5522 GB, free: 29.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007367/1.805, allocations: 119.6 kB / 0.5523 GB, free: 29.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003251/1.809, allocations: 328.4 kB / 0.5527 GB, free: 29.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003455/1.812, allocations: 1.483 MB / 0.5541 GB, free: 29.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04294/1.855, allocations: 12.47 MB / 0.5663 GB, free: 26.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.544/2.399, allocations: 73.3 MB / 0.6379 GB, free: 25.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0598/2.459, allocations: 7.419 MB / 0.6451 GB, free: 24.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007366/2.466, allocations: 3.965 MB / 0.649 GB, free: 24.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03586/2.502, allocations: 11.57 MB / 0.6603 GB, free: 22.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.778e-05/2.503, allocations: 64.34 kB / 0.6603 GB, free: 22.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=280): time 1.751e-05/2.503, allocations: 3.172 kB / 0.6603 GB, free: 22.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.2318/2.734, allocations: 37.92 MB / 0.6974 GB, free: 18.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/2.735, allocations: 402.5 kB / 0.6978 GB, free: 17.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01643/2.751, allocations: 6.179 MB / 0.7038 GB, free: 17.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009298/2.752, allocations: 79.73 kB / 0.7039 GB, free: 17.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005268/2.757, allocations: 5.226 MB / 0.709 GB, free: 14.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001976/2.759, allocations: 1.247 MB / 0.7102 GB, free: 14.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/2.761, allocations: 167 kB / 0.7103 GB, free: 13.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006135/2.761, allocations: 0.6592 MB / 0.711 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009056/2.77, allocations: 3.717 MB / 0.7146 GB, free: 10.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01215/2.782, allocations: 8.328 MB / 0.7228 GB, free: 1.027 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02023/2.803, allocations: 5.893 MB / 0.7285 GB, free: 13.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001936/2.803, allocations: 48 kB / 0.7286 GB, free: 13.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.06196/2.865, allocations: 16.08 MB / 0.7443 GB, free: 1.152 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001552/2.865, allocations: 81.06 kB / 0.7443 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003046/2.865, allocations: 167.9 kB / 0.7445 GB, free: 0.9102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03524/2.901, allocations: 5.752 MB / 0.7501 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01216/2.913, allocations: 1.798 MB / 0.7519 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07428/2.987, allocations: 28.13 MB / 0.7793 GB, free: 1.973 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01129/2.999, allocations: 0.5226 MB / 0.7799 GB, free: 1.449 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002193/3.001, allocations: 480 kB / 0.7803 GB, free: 0.9805 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (944): * Single equations (assignments): 938 * Array equations: 3 * 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 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003121/3.004, allocations: 0.7337 MB / 0.781 GB, free: 252 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/3.006, allocations: 0.6633 MB / 0.7817 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04545/3.052, allocations: 10.88 MB / 0.7923 GB, free: 4.633 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/3.052, allocations: 43.88 kB / 0.7923 GB, free: 4.594 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.382e-05/3.052, allocations: 19.95 kB / 0.7924 GB, free: 4.574 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-05/3.052, allocations: 19.89 kB / 0.7924 GB, free: 4.555 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3678/3.42, allocations: 23.89 MB / 0.8157 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.644e-05/3.42, allocations: 9.688 kB / 0.8157 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003933/3.424, allocations: 430.6 kB / 0.8161 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02862/3.452, allocations: 5.079 MB / 0.8211 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009525/3.453, allocations: 63.09 kB / 0.8212 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06167/3.515, allocations: 26.74 MB / 0.8473 GB, free: 107 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/3.515, allocations: 7.125 kB / 0.8473 GB, free: 107 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0501/3.565, allocations: 16.76 MB / 0.8636 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004949/3.57, allocations: 1.268 MB / 0.8649 GB, free: 99.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002483/3.573, allocations: 61.38 kB / 0.8649 GB, free: 99.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006989/3.58, allocations: 252.9 kB / 0.8652 GB, free: 99.77 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001492/3.581, allocations: 245.6 kB / 0.8654 GB, free: 99.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007872/3.582, allocations: 85.81 kB / 0.8655 GB, free: 99.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01224/3.595, allocations: 4.455 MB / 0.8698 GB, free: 98.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.974e-06/3.595, allocations: 3 kB / 0.8698 GB, free: 98.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01327/3.608, allocations: 1.961 MB / 0.8718 GB, free: 98.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * 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 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05007/3.658, allocations: 18.49 MB / 0.8898 GB, free: 88.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02487/3.683, allocations: 9.702 MB / 0.8993 GB, free: 79.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/3.683, allocations: 4 kB / 0.8993 GB, free: 79.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01283/3.696, allocations: 4.331 MB / 0.9035 GB, free: 75.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008727/3.705, allocations: 0.9807 MB / 0.9045 GB, free: 75.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06074/3.765, allocations: 18.2 MB / 0.9223 GB, free: 59.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01383/3.779, allocations: 5.716 MB / 0.9278 GB, free: 55.27 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01314/3.792, allocations: 2.631 MB / 0.9304 GB, free: 53.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00847/3.801, allocations: 3.743 MB / 0.9341 GB, free: 50.24 MB / 442.7 MB Notification: Performance of SimCode: time 3.236e-06/3.801, allocations: 0 / 0.9341 GB, free: 50.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6682/4.469, allocations: 158.3 MB / 1.089 GB, free: 41.05 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/4.47, allocations: 191.8 kB / 1.089 GB, free: 40.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.658/13.13, allocations: 4 kB / 1.089 GB, free: 40.81 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat