Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.14/2.14, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.593e-05, allocations: 4 kB / 292.7 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 50.42 MB / 343.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.6069, allocations: 109.7 MB / 452.9 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003245/0.6073, allocations: 95.67 kB / 452.9 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.316/1.924, allocations: 237.7 MB / 0.6745 GB, free: 15.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.924, allocations: 4 kB / 0.6745 GB, free: 15.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006765/1.924, allocations: 232 kB / 0.6747 GB, free: 15.71 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: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.05579/1.98, allocations: 12.29 MB / 0.6867 GB, free: 3.324 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/1.98, allocations: 12.03 kB / 0.6867 GB, free: 3.312 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01011/1.99, allocations: 2.001 MB / 0.6887 GB, free: 1.301 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7136/2.704, allocations: 3.975 MB / 0.6926 GB, free: 41.54 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05079/2.755, allocations: 11.76 MB / 0.704 GB, free: 41.04 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001545/2.756, allocations: 0.8944 MB / 0.7049 GB, free: 41.01 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007826/2.764, allocations: 1.176 MB / 0.7061 GB, free: 41 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1246/2.889, allocations: 33.39 MB / 0.7387 GB, free: 36.25 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008319/2.89, allocations: 97.28 kB / 0.7388 GB, free: 36.24 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006986/2.897, allocations: 0.5369 MB / 0.7393 GB, free: 36.24 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005807/2.903, allocations: 2.583 MB / 0.7418 GB, free: 36.22 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1096/3.012, allocations: 30.24 MB / 0.7714 GB, free: 30.92 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6513/3.664, allocations: 120.4 MB / 0.8889 GB, free: 27.12 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1217/3.785, allocations: 17.22 MB / 0.9057 GB, free: 26.44 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02367/3.809, allocations: 8.728 MB / 0.9143 GB, free: 26.39 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06908/3.878, allocations: 31.04 MB / 0.9446 GB, free: 18.73 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001009/3.879, allocations: 93.28 kB / 0.9447 GB, free: 18.69 MB / 490.8 MB Notification: Performance of pre-optimization done (n=489): time 9.538e-06/3.879, allocations: 0 / 0.9447 GB, free: 18.69 MB / 490.8 MB Notification: Performance of matching and sorting (n=726): time 0.747/4.626, allocations: 122.2 MB / 1.064 GB, free: 8.836 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001729/4.626, allocations: 205.8 kB / 1.064 GB, free: 8.602 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02152/4.647, allocations: 6.896 MB / 1.071 GB, free: 1.703 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.002874/4.65, allocations: 137.7 kB / 1.071 GB, free: 1.562 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.4448/5.095, allocations: 7.073 MB / 1.078 GB, free: 136.6 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.006021/5.101, allocations: 2.578 MB / 1.08 GB, free: 135.1 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004441/5.106, allocations: 287.8 kB / 1.081 GB, free: 135.1 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.002334/5.108, allocations: 0.9069 MB / 1.082 GB, free: 134.7 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02829/5.136, allocations: 10.09 MB / 1.092 GB, free: 134.7 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03287/5.169, allocations: 16.64 MB / 1.108 GB, free: 126.4 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03113/5.201, allocations: 12.88 MB / 1.12 GB, free: 126.3 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003146/5.201, allocations: 67.06 kB / 1.12 GB, free: 126.3 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.07681/5.278, allocations: 26.63 MB / 1.146 GB, free: 119.9 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002443/5.278, allocations: 104.5 kB / 1.147 GB, free: 119.9 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004042/5.278, allocations: 226.4 kB / 1.147 GB, free: 119.9 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005938/5.279, allocations: 350.7 kB / 1.147 GB, free: 119.9 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03898/5.318, allocations: 4.266 MB / 1.151 GB, free: 119.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006578/5.319, allocations: 466.7 kB / 1.152 GB, free: 119.4 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02461/5.343, allocations: 1.224 MB / 1.153 GB, free: 119.2 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004811/5.348, allocations: 0.7479 MB / 1.154 GB, free: 119.1 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1034 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1848): * Single equations (assignments): 1842 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008519/5.357, allocations: 1.138 MB / 1.155 GB, free: 118.2 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004417/5.361, allocations: 0.798 MB / 1.155 GB, free: 117.7 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05543/5.417, allocations: 19.39 MB / 1.174 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/5.417, allocations: 74.38 kB / 1.174 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/5.417, allocations: 3.031 kB / 1.174 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001957/5.417, allocations: 38.33 kB / 1.175 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1247/5.542, allocations: 42.31 MB / 1.216 GB, free: 84.02 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-05/5.542, allocations: 8 kB / 1.216 GB, free: 84.01 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02649/5.569, allocations: 2.155 MB / 1.218 GB, free: 82.5 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/5.569, allocations: 28 kB / 1.218 GB, free: 82.48 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002524/5.571, allocations: 129.5 kB / 1.218 GB, free: 82.36 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001021/5.571, allocations: 28 kB / 1.218 GB, free: 82.33 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/5.571, allocations: 11.94 kB / 1.218 GB, free: 82.32 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07415/5.646, allocations: 33.6 MB / 1.251 GB, free: 51.35 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01007/5.656, allocations: 2.712 MB / 1.254 GB, free: 48.89 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004742/5.661, allocations: 126.5 kB / 1.254 GB, free: 48.77 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01606/5.677, allocations: 0.7582 MB / 1.254 GB, free: 48.33 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003287/5.68, allocations: 387.5 kB / 1.255 GB, free: 48.08 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002488/5.683, allocations: 180.8 kB / 1.255 GB, free: 47.91 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.01282/5.695, allocations: 4.77 MB / 1.26 GB, free: 43.69 MB / 0.5418 GB Notification: Performance of sort global known variables: time 9.22e-07/5.695, allocations: 0 / 1.26 GB, free: 43.69 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.4133/6.109, allocations: 3.304 MB / 1.263 GB, free: 130.1 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (710): * Single equations (assignments): 707 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.08366/6.192, allocations: 35.34 MB / 1.297 GB, free: 126.7 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.05187/6.244, allocations: 22.56 MB / 1.319 GB, free: 121.8 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/6.244, allocations: 0 / 1.319 GB, free: 121.8 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.02144/6.266, allocations: 9.684 MB / 1.329 GB, free: 117.6 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008365/6.274, allocations: 0.8643 MB / 1.33 GB, free: 117.2 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1069/6.381, allocations: 32.62 MB / 1.362 GB, free: 105 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0214/6.403, allocations: 8.26 MB / 1.37 GB, free: 102.4 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.02986/6.433, allocations: 5.067 MB / 1.375 GB, free: 100.9 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01992/6.453, allocations: 5.583 MB / 1.38 GB, free: 95.7 MB / 0.5418 GB Notification: Performance of SimCode: time 1.813e-06/6.453, allocations: 0 / 1.38 GB, free: 95.7 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8527/7.305, allocations: 224.2 MB / 1.599 GB, free: 54.24 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001923/7.306, allocations: 171.2 kB / 1.599 GB, free: 54.02 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/18.87, allocations: 4 kB / 1.599 GB, free: 54.01 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat