Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.413e-05/2.404e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3081, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.5162, allocations: 89.98 MB / 384.2 MB, free: 7.824 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004068/0.5167, allocations: 83.95 kB / 384.3 MB, free: 7.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9671/1.484, allocations: 156.9 MB / 0.5285 GB, free: 7.902 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.484, allocations: 0 / 0.5285 GB, free: 7.902 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006682/1.485, allocations: 156 kB / 0.5286 GB, free: 7.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.02989/1.514, allocations: 7.881 MB / 0.5363 GB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/1.515, allocations: 8.031 kB / 0.5363 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1228/1.637, allocations: 16.49 MB / 0.5524 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1119/1.749, allocations: 13.47 MB / 0.5656 GB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007938/1.75, allocations: 228 kB / 0.5658 GB, free: 1.465 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005448/1.756, allocations: 443.7 kB / 0.5662 GB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6274/2.383, allocations: 9.463 MB / 0.5755 GB, free: 59.48 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0369/2.42, allocations: 14.26 MB / 0.5894 GB, free: 55.92 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007913/2.421, allocations: 116.4 kB / 0.5895 GB, free: 55.92 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003407/2.424, allocations: 42.16 kB / 0.5895 GB, free: 55.92 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00357/2.428, allocations: 1.488 MB / 0.591 GB, free: 55.91 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/2.539, allocations: 71.22 MB / 0.6605 GB, free: 11.04 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009429/2.548, allocations: 5.31 MB / 0.6657 GB, free: 8.398 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006932/2.555, allocations: 3.867 MB / 0.6695 GB, free: 6.703 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001378/2.557, allocations: 0.8291 MB / 0.6703 GB, free: 6.012 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.587e-05/2.557, allocations: 72.77 kB / 0.6704 GB, free: 5.949 MB / 394.8 MB Notification: Performance of pre-optimization done (n=287): time 2.053e-05/2.557, allocations: 5.688 kB / 0.6704 GB, free: 5.949 MB / 394.8 MB Notification: Performance of matching and sorting (n=347): time 0.1782/2.735, allocations: 40.35 MB / 0.7098 GB, free: 10.07 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000311/2.735, allocations: 401.4 kB / 0.7102 GB, free: 9.598 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02085/2.756, allocations: 5.454 MB / 0.7155 GB, free: 4.941 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001175/2.758, allocations: 25.7 kB / 0.7155 GB, free: 4.91 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.009216/2.767, allocations: 5.254 MB / 0.7207 GB, free: 204 kB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.3347/3.102, allocations: 1.225 MB / 0.7219 GB, free: 85.58 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001749/3.103, allocations: 0.5625 kB / 0.7219 GB, free: 85.58 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.00106/3.105, allocations: 0.6705 MB / 0.7225 GB, free: 85.25 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009906/3.114, allocations: 3.624 MB / 0.726 GB, free: 85.23 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01372/3.128, allocations: 8.377 MB / 0.7342 GB, free: 79.11 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01218/3.14, allocations: 5.402 MB / 0.7395 GB, free: 79.05 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002268/3.141, allocations: 50.72 kB / 0.7396 GB, free: 79.05 MB / 426.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.05492/3.196, allocations: 15.6 MB / 0.7548 GB, free: 78.7 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/3.196, allocations: 76.03 kB / 0.7549 GB, free: 78.7 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002907/3.196, allocations: 167 kB / 0.755 GB, free: 78.7 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02911/3.225, allocations: 5.372 MB / 0.7603 GB, free: 78.65 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01168/3.237, allocations: 1.856 MB / 0.7621 GB, free: 78.48 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0608/3.298, allocations: 25.96 MB / 0.7874 GB, free: 70.23 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/3.309, allocations: 373 kB / 0.7878 GB, free: 70.23 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002293/3.312, allocations: 493.2 kB / 0.7883 GB, free: 70.16 MB / 426.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * 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 (976): * Single equations (assignments): 970 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.004039/3.316, allocations: 0.5422 MB / 0.7888 GB, free: 69.83 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04017/3.356, allocations: 10.52 MB / 0.7991 GB, free: 66.67 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002413/3.358, allocations: 0.6187 MB / 0.7997 GB, free: 66.33 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0416/3.4, allocations: 10.59 MB / 0.81 GB, free: 61.28 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-05/3.4, allocations: 37.33 kB / 0.81 GB, free: 61.24 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.893e-05/3.4, allocations: 19.95 kB / 0.8101 GB, free: 61.22 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.889e-05/3.4, allocations: 24.56 kB / 0.8101 GB, free: 61.22 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07258/3.473, allocations: 22.81 MB / 0.8324 GB, free: 42.46 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-05/3.473, allocations: 4 kB / 0.8324 GB, free: 42.46 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004039/3.477, allocations: 441.9 kB / 0.8328 GB, free: 42.11 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02768/3.505, allocations: 5.014 MB / 0.8377 GB, free: 38.73 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009199/3.506, allocations: 11.47 kB / 0.8377 GB, free: 38.72 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05841/3.564, allocations: 24.7 MB / 0.8618 GB, free: 16.06 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.478e-05/3.564, allocations: 11.94 kB / 0.8618 GB, free: 16.05 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3841/3.949, allocations: 16.51 MB / 0.8779 GB, free: 70.84 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004994/3.954, allocations: 1.227 MB / 0.8791 GB, free: 70.75 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002755/3.956, allocations: 10.31 kB / 0.8792 GB, free: 70.75 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007572/3.964, allocations: 208 kB / 0.8794 GB, free: 70.75 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001708/3.966, allocations: 243.5 kB / 0.8796 GB, free: 70.74 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008781/3.967, allocations: 94 kB / 0.8797 GB, free: 70.74 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01135/3.978, allocations: 3.809 MB / 0.8834 GB, free: 70.53 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.21e-07/3.978, allocations: 0 / 0.8834 GB, free: 70.53 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01283/3.991, allocations: 1.731 MB / 0.8851 GB, free: 70.53 MB / 426.8 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 (222): * Single equations (assignments): 216 * 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.04908/4.04, allocations: 18.27 MB / 0.9029 GB, free: 66.93 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02573/4.066, allocations: 9.597 MB / 0.9123 GB, free: 66.46 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-05/4.066, allocations: 0 / 0.9123 GB, free: 66.46 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01247/4.078, allocations: 4.34 MB / 0.9165 GB, free: 66.05 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008034/4.086, allocations: 0.847 MB / 0.9174 GB, free: 66.01 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06274/4.149, allocations: 17.87 MB / 0.9348 GB, free: 61.5 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01431/4.164, allocations: 5.71 MB / 0.9404 GB, free: 59.73 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.01437/4.178, allocations: 2.704 MB / 0.943 GB, free: 59.66 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008785/4.187, allocations: 3.677 MB / 0.9466 GB, free: 56.59 MB / 426.8 MB Notification: Performance of SimCode: time 1.172e-06/4.187, allocations: 6.938 kB / 0.9466 GB, free: 56.59 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7553/4.942, allocations: 149.4 MB / 1.093 GB, free: 75.52 MB / 442.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/4.943, allocations: 146.2 kB / 1.093 GB, free: 75.32 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.095/13.04, allocations: 1.062 kB / 1.093 GB, free: 75.32 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat