Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.946/1.946, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.28e-05/5.289e-05, allocations: 2.031 kB / 292.8 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 50.41 MB / 343.2 MB, free: 5.836 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5525/0.6768, allocations: 96 MB / 439.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004343/0.6773, allocations: 87.58 kB / 439.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9174/1.595, allocations: 124.9 MB / 0.5509 GB, free: 92.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.595, allocations: 3.562 kB / 0.5509 GB, free: 92.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004714/1.595, allocations: 121.1 kB / 0.551 GB, free: 92.99 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02899/1.624, allocations: 6.499 MB / 0.5574 GB, free: 90.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/1.624, allocations: 7.75 kB / 0.5574 GB, free: 90.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005788/1.63, allocations: 1.196 MB / 0.5586 GB, free: 90.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0687/1.699, allocations: 9.428 MB / 0.5678 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02996/1.729, allocations: 8.094 MB / 0.5757 GB, free: 89.22 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006017/1.73, allocations: 438.3 kB / 0.5761 GB, free: 89.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003585/1.733, allocations: 0.5757 MB / 0.5766 GB, free: 89.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04696/1.78, allocations: 14.65 MB / 0.591 GB, free: 84.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000582/1.781, allocations: 86.56 kB / 0.591 GB, free: 84.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003275/1.784, allocations: 274.8 kB / 0.5913 GB, free: 84.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003379/1.788, allocations: 1.442 MB / 0.5927 GB, free: 83.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04141/1.829, allocations: 12.61 MB / 0.605 GB, free: 78.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/1.935, allocations: 64.67 MB / 0.6682 GB, free: 15.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03249/1.968, allocations: 7.788 MB / 0.6758 GB, free: 7.867 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009277/1.977, allocations: 5.148 MB / 0.6808 GB, free: 2.711 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03588/2.013, allocations: 12.94 MB / 0.6934 GB, free: 5.699 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/2.013, allocations: 68.81 kB / 0.6935 GB, free: 5.621 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 8.376e-06/2.013, allocations: 0 / 0.6935 GB, free: 5.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.7896/2.803, allocations: 79.58 MB / 0.7712 GB, free: 92.58 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/2.803, allocations: 280 kB / 0.7715 GB, free: 92.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/2.815, allocations: 4.674 MB / 0.7761 GB, free: 89.95 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002261/2.817, allocations: 118.4 kB / 0.7762 GB, free: 89.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003878/2.821, allocations: 4.01 MB / 0.7801 GB, free: 86.49 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004035/2.825, allocations: 2.112 MB / 0.7821 GB, free: 84.61 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002564/2.827, allocations: 196.8 kB / 0.7823 GB, free: 84.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007752/2.828, allocations: 0.7057 MB / 0.783 GB, free: 83.82 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01987/2.848, allocations: 8.559 MB / 0.7914 GB, free: 76.06 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02657/2.875, allocations: 12.61 MB / 0.8037 GB, free: 62.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06637/2.941, allocations: 10.52 MB / 0.814 GB, free: 52.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001983/2.942, allocations: 40 kB / 0.814 GB, free: 52.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.1724/3.114, allocations: 39.73 MB / 0.8528 GB, free: 12.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001389/3.114, allocations: 64 kB / 0.8529 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001961/3.114, allocations: 136 kB / 0.853 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4653/3.58, allocations: 21.5 MB / 0.874 GB, free: 85.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009633/3.589, allocations: 1.438 MB / 0.8754 GB, free: 85.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4001/3.99, allocations: 144.4 MB / 1.016 GB, free: 5.066 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01867/4.008, allocations: 0.7224 MB / 1.017 GB, free: 4.359 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003391/4.012, allocations: 0.5271 MB / 1.018 GB, free: 3.832 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.005735/4.018, allocations: 0.7327 MB / 1.018 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003217/4.021, allocations: 0.5899 MB / 1.019 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5052/4.526, allocations: 36.12 MB / 1.054 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.523e-05/4.526, allocations: 62.72 kB / 1.054 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001687/4.526, allocations: 62.72 kB / 1.054 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001309/4.526, allocations: 29.67 kB / 1.054 GB, free: 99.06 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2195/4.746, allocations: 57.02 MB / 1.11 GB, free: 87.79 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001019/4.746, allocations: 3.719 kB / 1.11 GB, free: 87.79 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/4.749, allocations: 271.3 kB / 1.11 GB, free: 87.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1391/4.888, allocations: 20.71 MB / 1.131 GB, free: 76.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00223/4.89, allocations: 108.1 kB / 1.131 GB, free: 76.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.7035/5.594, allocations: 132.2 MB / 1.26 GB, free: 84.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.461e-06/5.594, allocations: 7 kB / 1.26 GB, free: 84.73 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1705/5.764, allocations: 48.53 MB / 1.307 GB, free: 62.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002107/5.767, allocations: 0.625 MB / 1.308 GB, free: 61.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00386/5.77, allocations: 95.86 kB / 1.308 GB, free: 61.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01345/5.784, allocations: 0.4901 MB / 1.308 GB, free: 61.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004988/5.789, allocations: 0.5081 MB / 1.309 GB, free: 60.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00178/5.791, allocations: 147.8 kB / 1.309 GB, free: 60.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008321/5.799, allocations: 3.327 MB / 1.312 GB, free: 57.79 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.62e-07/5.799, allocations: 0.875 kB / 1.312 GB, free: 57.79 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01919/5.818, allocations: 3.44 MB / 1.316 GB, free: 54.36 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.1712/5.99, allocations: 49.19 MB / 1.364 GB, free: 10.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.4037/6.393, allocations: 23.76 MB / 1.387 GB, free: 108.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/6.393, allocations: 1.406 kB / 1.387 GB, free: 108.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04249/6.436, allocations: 13.36 MB / 1.4 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007849/6.444, allocations: 0.7056 MB / 1.401 GB, free: 107.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07319/6.517, allocations: 23.24 MB / 1.423 GB, free: 105.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01302/6.53, allocations: 5.307 MB / 1.428 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01015/6.54, allocations: 2.089 MB / 1.431 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0068/6.547, allocations: 3.047 MB / 1.433 GB, free: 101.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.533e-06/6.547, allocations: 0 / 1.433 GB, free: 101.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.025/7.573, allocations: 289.4 MB / 1.716 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003378/7.573, allocations: 184.3 kB / 1.716 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/19.22, allocations: 0 / 1.716 GB, free: 3.59 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat