Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.188/2.188, allocations: 225.8 MB / 239.3 MB, free: 1.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.814e-05, allocations: 0 / 292.7 MB, free: 11.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 50.41 MB / 343.1 MB, free: 8.961 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4829/0.5952, allocations: 99.64 MB / 442.8 MB, free: 4.184 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003814/0.5957, allocations: 90.98 kB / 442.9 MB, free: 4.164 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028/1.624, allocations: 168.1 MB / 0.5967 GB, free: 75.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.624, allocations: 0 / 0.5967 GB, free: 75.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000756/1.625, allocations: 167.8 kB / 0.5968 GB, free: 75.03 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.0338/1.659, allocations: 8.159 MB / 0.6048 GB, free: 71.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/1.659, allocations: 10.62 kB / 0.6048 GB, free: 71.95 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005995/1.665, allocations: 1.256 MB / 0.606 GB, free: 71.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1203/1.785, allocations: 16.56 MB / 0.6222 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04654/1.832, allocations: 12.81 MB / 0.6347 GB, free: 69.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007786/1.833, allocations: 0.5542 MB / 0.6352 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004189/1.837, allocations: 0.7583 MB / 0.636 GB, free: 69.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05344/1.89, allocations: 16.75 MB / 0.6523 GB, free: 58.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007463/1.891, allocations: 111.1 kB / 0.6524 GB, free: 58.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003542/1.895, allocations: 354.1 kB / 0.6528 GB, free: 58.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003576/1.898, allocations: 1.538 MB / 0.6543 GB, free: 57.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04318/1.941, allocations: 12.87 MB / 0.6668 GB, free: 45.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5026/2.444, allocations: 75.15 MB / 0.7402 GB, free: 38.83 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03689/2.481, allocations: 7.784 MB / 0.7478 GB, free: 38.14 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007843/2.489, allocations: 4.088 MB / 0.7518 GB, free: 38.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02999/2.519, allocations: 11.88 MB / 0.7634 GB, free: 36.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.602e-05/2.519, allocations: 72.16 kB / 0.7635 GB, free: 36.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=294): time 7.394e-06/2.519, allocations: 0 / 0.7635 GB, free: 36.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.2455/2.765, allocations: 40.41 MB / 0.803 GB, free: 31.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/2.765, allocations: 403.9 kB / 0.8033 GB, free: 31.13 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01604/2.781, allocations: 6.246 MB / 0.8094 GB, free: 30.44 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009819/2.782, allocations: 80.86 kB / 0.8095 GB, free: 30.37 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005522/2.787, allocations: 5.408 MB / 0.8148 GB, free: 26.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002245/2.79, allocations: 1.324 MB / 0.8161 GB, free: 25.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001392/2.791, allocations: 174.2 kB / 0.8163 GB, free: 25.32 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007347/2.792, allocations: 0.6619 MB / 0.8169 GB, free: 24.86 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009727/2.802, allocations: 3.896 MB / 0.8207 GB, free: 23.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01312/2.815, allocations: 8.624 MB / 0.8291 GB, free: 15.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/2.828, allocations: 5.693 MB / 0.8347 GB, free: 12.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001997/2.828, allocations: 51.41 kB / 0.8347 GB, free: 12.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.05948/2.888, allocations: 16.84 MB / 0.8512 GB, free: 15.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001601/2.888, allocations: 79.84 kB / 0.8513 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003431/2.888, allocations: 175.2 kB / 0.8514 GB, free: 15.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03316/2.921, allocations: 5.736 MB / 0.857 GB, free: 11.37 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01266/2.934, allocations: 1.849 MB / 0.8588 GB, free: 9.754 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08801/3.022, allocations: 29.93 MB / 0.8881 GB, free: 1.387 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01234/3.035, allocations: 0.5538 MB / 0.8886 GB, free: 0.832 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002334/3.037, allocations: 495.6 kB / 0.8891 GB, free: 360 kB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003668/3.041, allocations: 0.7584 MB / 0.8898 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002296/3.043, allocations: 0.6748 MB / 0.8905 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05045/3.094, allocations: 11.51 MB / 0.9017 GB, free: 3.344 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.358e-05/3.094, allocations: 36 kB / 0.9018 GB, free: 3.309 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.291e-05/3.094, allocations: 23.95 kB / 0.9018 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.04e-05/3.094, allocations: 15.94 kB / 0.9018 GB, free: 3.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.516/3.61, allocations: 25.06 MB / 0.9263 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.107e-05/3.61, allocations: 5.125 kB / 0.9263 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006689/3.617, allocations: 466.9 kB / 0.9267 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04083/3.658, allocations: 5.386 MB / 0.932 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/3.659, allocations: 65 kB / 0.932 GB, free: 131.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06352/3.722, allocations: 28.03 MB / 0.9594 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/3.722, allocations: 9.625 kB / 0.9594 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05201/3.774, allocations: 17.64 MB / 0.9766 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005372/3.78, allocations: 1.308 MB / 0.9779 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00258/3.782, allocations: 68.05 kB / 0.978 GB, free: 122.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007441/3.79, allocations: 271 kB / 0.9782 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001605/3.791, allocations: 251.6 kB / 0.9785 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005404/3.792, allocations: 98.5 kB / 0.9786 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01217/3.804, allocations: 4.49 MB / 0.983 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.71e-07/3.804, allocations: 0 / 0.983 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01307/3.817, allocations: 2.051 MB / 0.985 GB, free: 120.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.05352/3.871, allocations: 19.29 MB / 1.004 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02772/3.899, allocations: 10.11 MB / 1.014 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.45e-05/3.899, allocations: 6.062 kB / 1.014 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02162/3.92, allocations: 4.616 MB / 1.018 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01039/3.931, allocations: 0.9949 MB / 1.019 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06308/3.994, allocations: 18.9 MB / 1.038 GB, free: 88.45 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01365/4.008, allocations: 5.909 MB / 1.043 GB, free: 84.18 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01322/4.021, allocations: 2.727 MB / 1.046 GB, free: 82.59 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00896/4.03, allocations: 3.903 MB / 1.05 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of SimCode: time 1.372e-06/4.03, allocations: 0 / 1.05 GB, free: 78.96 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9603/4.99, allocations: 164.9 MB / 1.211 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003012/4.991, allocations: 196.1 kB / 1.211 GB, free: 87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.216/14.21, allocations: 3.938 kB / 1.211 GB, free: 87 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat