Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.888/1.888, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.26e-05, allocations: 4 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09178, allocations: 44.51 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5343, allocations: 103.8 MB / 403.8 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.5346, allocations: 92.27 kB / 403.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.016/1.551, allocations: 182.4 MB / 0.5725 GB, free: 61.08 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.551, allocations: 4 kB / 0.5725 GB, free: 61.08 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008684/1.552, allocations: 186.4 kB / 0.5727 GB, free: 61.07 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.03916/1.591, allocations: 9.15 MB / 0.5816 GB, free: 57.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/1.591, allocations: 11.19 kB / 0.5816 GB, free: 57.72 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008388/1.599, allocations: 1.395 MB / 0.583 GB, free: 57.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1235/1.723, allocations: 16.65 MB / 0.5992 GB, free: 56.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04867/1.771, allocations: 14.59 MB / 0.6135 GB, free: 54.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008314/1.772, allocations: 0.6297 MB / 0.6141 GB, free: 54.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005028/1.777, allocations: 0.8558 MB / 0.6149 GB, free: 53.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06499/1.842, allocations: 19.15 MB / 0.6336 GB, free: 37.17 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008364/1.843, allocations: 112.4 kB / 0.6338 GB, free: 37.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004305/1.848, allocations: 398.3 kB / 0.6341 GB, free: 36.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003744/1.852, allocations: 1.594 MB / 0.6357 GB, free: 35.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06356/1.915, allocations: 15.08 MB / 0.6504 GB, free: 20.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4876/2.403, allocations: 80.55 MB / 0.7291 GB, free: 37.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03712/2.44, allocations: 7.808 MB / 0.7367 GB, free: 37.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008345/2.448, allocations: 4.002 MB / 0.7406 GB, free: 37.23 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0336/2.482, allocations: 14.1 MB / 0.7544 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.921e-05/2.482, allocations: 73.25 kB / 0.7545 GB, free: 33.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 7.905e-06/2.482, allocations: 0 / 0.7545 GB, free: 33.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.2618/2.744, allocations: 38.04 MB / 0.7916 GB, free: 23.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002869/2.744, allocations: 415 kB / 0.792 GB, free: 22.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02041/2.765, allocations: 6.569 MB / 0.7984 GB, free: 20.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00111/2.766, allocations: 93.42 kB / 0.7985 GB, free: 20.58 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005959/2.772, allocations: 5.855 MB / 0.8042 GB, free: 16.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002376/2.774, allocations: 1.488 MB / 0.8057 GB, free: 15.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001274/2.776, allocations: 185.2 kB / 0.8058 GB, free: 14.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007046/2.776, allocations: 0.6939 MB / 0.8065 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01009/2.787, allocations: 4.093 MB / 0.8105 GB, free: 12.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01417/2.801, allocations: 9.058 MB / 0.8194 GB, free: 1.469 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02449/2.825, allocations: 6.585 MB / 0.8258 GB, free: 13.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001947/2.826, allocations: 52 kB / 0.8258 GB, free: 13.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.06149/2.887, allocations: 16.59 MB / 0.842 GB, free: 456 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001487/2.887, allocations: 80 kB / 0.8421 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003041/2.888, allocations: 176 kB / 0.8423 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3561/3.244, allocations: 5.113 MB / 0.8473 GB, free: 94.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01379/3.258, allocations: 1.96 MB / 0.8492 GB, free: 94.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06461/3.322, allocations: 25.12 MB / 0.8737 GB, free: 93.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01303/3.335, allocations: 0.5431 MB / 0.8743 GB, free: 93.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002616/3.338, allocations: 0.5101 MB / 0.8748 GB, free: 93.07 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 (1061): * Single equations (assignments): 1056 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003965/3.342, allocations: 0.8002 MB / 0.8755 GB, free: 92.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002336/3.344, allocations: 0.7092 MB / 0.8762 GB, free: 92.96 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04391/3.388, allocations: 10.87 MB / 0.8868 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001151/3.388, allocations: 41.81 kB / 0.8869 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-05/3.389, allocations: 20.34 kB / 0.8869 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001294/3.389, allocations: 19.83 kB / 0.8869 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09416/3.483, allocations: 23.69 MB / 0.9101 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.344e-05/3.483, allocations: 7.781 kB / 0.9101 GB, free: 82.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005494/3.489, allocations: 0.52 MB / 0.9106 GB, free: 82.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0246/3.513, allocations: 4.141 MB / 0.9146 GB, free: 81.65 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/3.514, allocations: 79.72 kB / 0.9147 GB, free: 81.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05272/3.567, allocations: 21.84 MB / 0.936 GB, free: 72.13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/3.567, allocations: 12.41 kB / 0.936 GB, free: 72.13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04821/3.615, allocations: 17.51 MB / 0.9531 GB, free: 59.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005182/3.621, allocations: 1.367 MB / 0.9545 GB, free: 57.78 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002339/3.623, allocations: 79.28 kB / 0.9545 GB, free: 57.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006979/3.63, allocations: 249.6 kB / 0.9548 GB, free: 57.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001444/3.631, allocations: 294.7 kB / 0.9551 GB, free: 57.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004898/3.632, allocations: 111.4 kB / 0.9552 GB, free: 57.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01224/3.644, allocations: 4.724 MB / 0.9598 GB, free: 53.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.032e-06/3.644, allocations: 0 / 0.9598 GB, free: 53.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01421/3.658, allocations: 2.203 MB / 0.9619 GB, free: 50.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05072/3.709, allocations: 19.43 MB / 0.9809 GB, free: 33.75 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02361/3.733, allocations: 10.14 MB / 0.9908 GB, free: 24.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.607e-05/3.733, allocations: 2 kB / 0.9908 GB, free: 24.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01049/3.743, allocations: 4.283 MB / 0.995 GB, free: 20.65 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009781/3.753, allocations: 1.047 MB / 0.996 GB, free: 19.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.41/4.163, allocations: 20.79 MB / 1.016 GB, free: 89.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01723/4.181, allocations: 6.563 MB / 1.023 GB, free: 88.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.01381/4.195, allocations: 2.938 MB / 1.026 GB, free: 88.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009867/4.204, allocations: 4.275 MB / 1.03 GB, free: 88.62 MB / 458.7 MB Notification: Performance of SimCode: time 4.007e-06/4.205, allocations: 2.719 kB / 1.03 GB, free: 88.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8178/5.022, allocations: 177 MB / 1.203 GB, free: 75.49 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002801/5.023, allocations: 183.1 kB / 1.203 GB, free: 75.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.751/14.77, allocations: 3.938 kB / 1.203 GB, free: 75.26 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat