Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.418/2.418, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.803e-05, allocations: 0 / 249.8 MB, free: 14.78 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3554, allocations: 44.5 MB / 294.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/0.5456, allocations: 89.97 MB / 384.3 MB, free: 7.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003679/0.546, allocations: 87.94 kB / 384.4 MB, free: 7.734 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.162/1.708, allocations: 156.9 MB / 0.5285 GB, free: 7.875 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.708, allocations: 0 / 0.5285 GB, free: 7.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0008195/1.709, allocations: 152 kB / 0.5287 GB, free: 7.727 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.03711/1.746, allocations: 7.889 MB / 0.5364 GB, free: 15.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.343e-05/1.746, allocations: 8.031 kB / 0.5364 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1549/1.901, allocations: 16.49 MB / 0.5525 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05743/1.959, allocations: 13.47 MB / 0.5656 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000601/1.959, allocations: 228 kB / 0.5659 GB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004117/1.964, allocations: 447.7 kB / 0.5663 GB, free: 1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.366/2.33, allocations: 9.469 MB / 0.5755 GB, free: 60.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04239/2.372, allocations: 14.26 MB / 0.5895 GB, free: 57.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007564/2.373, allocations: 112.2 kB / 0.5896 GB, free: 57.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003321/2.376, allocations: 42.28 kB / 0.5896 GB, free: 57.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004253/2.381, allocations: 1.484 MB / 0.5911 GB, free: 57.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1331/2.514, allocations: 71.22 MB / 0.6606 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/2.525, allocations: 5.322 MB / 0.6658 GB, free: 9.805 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00811/2.533, allocations: 3.867 MB / 0.6696 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001828/2.535, allocations: 0.8347 MB / 0.6704 GB, free: 7.418 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001042/2.535, allocations: 59.52 kB / 0.6704 GB, free: 7.359 MB / 394.7 MB Notification: Performance of pre-optimization done (n=287): time 8.887e-06/2.535, allocations: 2.656 kB / 0.6704 GB, free: 7.359 MB / 394.7 MB Notification: Performance of matching and sorting (n=347): time 0.254/2.789, allocations: 41.08 MB / 0.7106 GB, free: 13.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002751/2.79, allocations: 401 kB / 0.7109 GB, free: 12.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01759/2.807, allocations: 5.452 MB / 0.7163 GB, free: 8.164 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001002/2.808, allocations: 25.7 kB / 0.7163 GB, free: 8.133 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007652/2.816, allocations: 5.25 MB / 0.7214 GB, free: 3.426 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00271/2.819, allocations: 1.234 MB / 0.7226 GB, free: 2.309 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/2.82, allocations: 0 / 0.7226 GB, free: 2.309 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008683/2.821, allocations: 0.6684 MB / 0.7233 GB, free: 1.734 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02221/2.843, allocations: 4.238 MB / 0.7274 GB, free: 0 / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3535/3.197, allocations: 8.381 MB / 0.7356 GB, free: 80.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01456/3.211, allocations: 5.402 MB / 0.7409 GB, free: 80.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003246/3.212, allocations: 50.94 kB / 0.7409 GB, free: 80.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.06467/3.276, allocations: 15.61 MB / 0.7562 GB, free: 80.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/3.276, allocations: 75.92 kB / 0.7562 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003214/3.277, allocations: 164.8 kB / 0.7564 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03395/3.311, allocations: 5.374 MB / 0.7617 GB, free: 80.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01321/3.324, allocations: 1.853 MB / 0.7635 GB, free: 80.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06577/3.39, allocations: 25.95 MB / 0.7888 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01299/3.403, allocations: 369.5 kB / 0.7892 GB, free: 73.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002555/3.406, allocations: 495.1 kB / 0.7896 GB, free: 73.09 MB / 426.7 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.004297/3.41, allocations: 0.5452 MB / 0.7902 GB, free: 72.76 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04793/3.458, allocations: 10.51 MB / 0.8004 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002535/3.46, allocations: 0.6325 MB / 0.801 GB, free: 69.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04707/3.507, allocations: 10.57 MB / 0.8114 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-05/3.508, allocations: 36.12 kB / 0.8114 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.045e-05/3.508, allocations: 17 kB / 0.8114 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.163e-05/3.508, allocations: 25.44 kB / 0.8115 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09956/3.607, allocations: 22.8 MB / 0.8337 GB, free: 48.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.752e-05/3.607, allocations: 4.75 kB / 0.8337 GB, free: 48.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006471/3.614, allocations: 442.8 kB / 0.8341 GB, free: 48.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04332/3.657, allocations: 5.023 MB / 0.8391 GB, free: 44.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001069/3.658, allocations: 12 kB / 0.8391 GB, free: 44.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06782/3.726, allocations: 24.69 MB / 0.8632 GB, free: 22.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.621e-05/3.726, allocations: 11.94 kB / 0.8632 GB, free: 22.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05708/3.783, allocations: 16.52 MB / 0.8793 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3574/4.141, allocations: 1.227 MB / 0.8805 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002844/4.144, allocations: 11.95 kB / 0.8805 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00764/4.152, allocations: 204.3 kB / 0.8807 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001768/4.153, allocations: 248.8 kB / 0.881 GB, free: 76.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005801/4.154, allocations: 93.83 kB / 0.881 GB, free: 76.24 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01255/4.167, allocations: 3.807 MB / 0.8848 GB, free: 76.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/4.167, allocations: 0 / 0.8848 GB, free: 76.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01661/4.183, allocations: 1.734 MB / 0.8865 GB, free: 76.03 MB / 426.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 (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.06497/4.248, allocations: 18.27 MB / 0.9043 GB, free: 72.43 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03036/4.279, allocations: 9.597 MB / 0.9137 GB, free: 71.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/4.279, allocations: 0 / 0.9137 GB, free: 71.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01503/4.294, allocations: 4.347 MB / 0.9179 GB, free: 71.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009695/4.304, allocations: 0.8551 MB / 0.9188 GB, free: 71.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06418/4.368, allocations: 17.86 MB / 0.9362 GB, free: 68.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01374/4.382, allocations: 5.715 MB / 0.9418 GB, free: 66.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01519/4.397, allocations: 2.703 MB / 0.9444 GB, free: 66.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01017/4.407, allocations: 3.679 MB / 0.948 GB, free: 63.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.694e-06/4.407, allocations: 0 / 0.948 GB, free: 63.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7879/5.195, allocations: 149.5 MB / 1.094 GB, free: 73.56 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002832/5.195, allocations: 145.3 kB / 1.094 GB, free: 73.37 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 10.02/15.21, allocations: 0 / 1.094 GB, free: 73.37 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat