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.642/1.642, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.541e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2553, allocations: 38.77 MB / 258.4 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1683/0.4237, allocations: 84.23 MB / 342.6 MB, free: 9.605 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.4241, allocations: 83.95 kB / 342.7 MB, free: 9.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8782/1.302, allocations: 156.9 MB / 499.5 MB, free: 7.922 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/1.302, allocations: 0 / 499.5 MB, free: 7.922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001034/1.303, allocations: 163.9 kB / 499.7 MB, free: 7.762 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.529/1.832, allocations: 7.888 MB / 0.4957 GB, free: 39.22 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.997e-05/1.833, allocations: 9.375 kB / 0.4957 GB, free: 39.22 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1173/1.95, allocations: 16.49 MB / 0.5118 GB, free: 38.69 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04265/1.993, allocations: 13.45 MB / 0.5249 GB, free: 38.07 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004271/1.993, allocations: 228 kB / 0.5251 GB, free: 38.07 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003483/1.996, allocations: 451.6 kB / 0.5256 GB, free: 38.05 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02324/2.02, allocations: 9.464 MB / 0.5348 GB, free: 38.01 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03615/2.056, allocations: 14.26 MB / 0.5487 GB, free: 34.45 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006891/2.057, allocations: 114.9 kB / 0.5488 GB, free: 34.43 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003127/2.06, allocations: 39.38 kB / 0.5489 GB, free: 34.43 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003422/2.063, allocations: 1.478 MB / 0.5503 GB, free: 34.42 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/2.192, allocations: 71.21 MB / 0.6199 GB, free: 10.15 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01548/2.207, allocations: 5.319 MB / 0.6251 GB, free: 5.137 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0111/2.218, allocations: 3.872 MB / 0.6288 GB, free: 1.566 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001791/2.22, allocations: 0.8332 MB / 0.6297 GB, free: 0.6797 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.465e-05/2.22, allocations: 69.06 kB / 0.6297 GB, free: 0.6055 MB / 378.8 MB Notification: Performance of pre-optimization done (n=287): time 7.363e-06/2.22, allocations: 4 kB / 0.6297 GB, free: 0.6016 MB / 378.8 MB Notification: Performance of matching and sorting (n=347): time 0.4552/2.676, allocations: 41.13 MB / 0.6699 GB, free: 65.31 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/2.676, allocations: 398.1 kB / 0.6703 GB, free: 64.87 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/2.69, allocations: 5.457 MB / 0.6756 GB, free: 64.39 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009782/2.691, allocations: 28.92 kB / 0.6756 GB, free: 64.36 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005195/2.696, allocations: 5.251 MB / 0.6808 GB, free: 61.95 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002055/2.698, allocations: 1.229 MB / 0.682 GB, free: 61.2 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/2.699, allocations: 2.406 kB / 0.682 GB, free: 61.2 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0005305/2.699, allocations: 0.6604 MB / 0.6826 GB, free: 60.88 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00794/2.707, allocations: 3.627 MB / 0.6861 GB, free: 60.85 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01098/2.718, allocations: 8.372 MB / 0.6943 GB, free: 54.73 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/2.73, allocations: 5.407 MB / 0.6996 GB, free: 53.79 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001573/2.73, allocations: 48.22 kB / 0.6996 GB, free: 53.79 MB / 378.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.05171/2.782, allocations: 15.62 MB / 0.7149 GB, free: 49.16 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/2.782, allocations: 83.08 kB / 0.715 GB, free: 49.09 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/2.782, allocations: 164 kB / 0.7151 GB, free: 48.93 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02772/2.81, allocations: 5.372 MB / 0.7204 GB, free: 45.23 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/2.821, allocations: 1.85 MB / 0.7222 GB, free: 43.62 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0529/2.874, allocations: 25.96 MB / 0.7475 GB, free: 21.07 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/2.885, allocations: 373.8 kB / 0.7479 GB, free: 20.8 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002226/2.888, allocations: 487.9 kB / 0.7484 GB, free: 20.33 MB / 378.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.002704/2.89, allocations: 0.5353 MB / 0.7489 GB, free: 19.79 MB / 378.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03849/2.929, allocations: 10.52 MB / 0.7592 GB, free: 11.5 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002463/2.932, allocations: 0.6209 MB / 0.7598 GB, free: 10.87 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.381/3.313, allocations: 10.82 MB / 0.7703 GB, free: 55.91 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.384e-05/3.313, allocations: 36 kB / 0.7704 GB, free: 55.91 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.042e-05/3.313, allocations: 21.44 kB / 0.7704 GB, free: 55.91 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.52e-05/3.313, allocations: 14.52 kB / 0.7704 GB, free: 55.91 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06904/3.382, allocations: 22.81 MB / 0.7927 GB, free: 53.02 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.094e-05/3.382, allocations: 6.062 kB / 0.7927 GB, free: 53.02 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003905/3.386, allocations: 445.6 kB / 0.7931 GB, free: 53.02 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02734/3.413, allocations: 5.016 MB / 0.798 GB, free: 52.98 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008598/3.414, allocations: 10.94 kB / 0.798 GB, free: 52.98 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05224/3.466, allocations: 24.7 MB / 0.8221 GB, free: 48.05 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.235e-05/3.466, allocations: 8.219 kB / 0.8221 GB, free: 48.05 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04635/3.513, allocations: 16.52 MB / 0.8383 GB, free: 41.42 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004768/3.518, allocations: 1.229 MB / 0.8395 GB, free: 41.06 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002297/3.52, allocations: 12.89 kB / 0.8395 GB, free: 41.06 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006247/3.526, allocations: 206.8 kB / 0.8397 GB, free: 41.06 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/3.528, allocations: 243.9 kB / 0.8399 GB, free: 41.02 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003951/3.528, allocations: 88.86 kB / 0.84 GB, free: 41 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.009854/3.538, allocations: 3.814 MB / 0.8437 GB, free: 39.65 MB / 378.8 MB Notification: Performance of sort global known variables: time 6.61e-07/3.538, allocations: 0 / 0.8437 GB, free: 39.65 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01266/3.551, allocations: 1.738 MB / 0.8454 GB, free: 39.65 MB / 378.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.04716/3.598, allocations: 18.28 MB / 0.8633 GB, free: 31.31 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.02419/3.622, allocations: 9.594 MB / 0.8726 GB, free: 23.21 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/3.622, allocations: 0 / 0.8726 GB, free: 23.21 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01181/3.634, allocations: 4.347 MB / 0.8769 GB, free: 19.39 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007977/3.642, allocations: 0.8427 MB / 0.8777 GB, free: 18.71 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05534/3.697, allocations: 17.87 MB / 0.8952 GB, free: 3.316 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01713/3.715, allocations: 6.043 MB / 0.9011 GB, free: 15.96 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.01273/3.727, allocations: 2.702 MB / 0.9037 GB, free: 14.35 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008941/3.736, allocations: 3.685 MB / 0.9073 GB, free: 10.7 MB / 394.8 MB Notification: Performance of SimCode: time 1.483e-06/3.736, allocations: 4 kB / 0.9073 GB, free: 10.69 MB / 394.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9379/4.674, allocations: 149.4 MB / 1.053 GB, free: 41.59 MB / 410.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/4.675, allocations: 140.4 kB / 1.053 GB, free: 41.4 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.257/12.93, allocations: 3.391 kB / 1.053 GB, free: 41.4 MB / 410.8 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