Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.217e-05, allocations: 4 kB / 292.8 MB, free: 8.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 50.41 MB / 343.2 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5166/0.6215, allocations: 104.1 MB / 447.3 MB, free: 6.086 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004248/0.622, allocations: 84.64 kB / 447.4 MB, free: 6.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9277/1.55, allocations: 141.8 MB / 0.5753 GB, free: 93.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.55, allocations: 3.875 kB / 0.5753 GB, free: 93.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006194/1.55, allocations: 151 kB / 0.5755 GB, free: 93.43 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.03259/1.583, allocations: 7.474 MB / 0.5828 GB, free: 90.72 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/1.583, allocations: 7.281 kB / 0.5828 GB, free: 90.72 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006018/1.589, allocations: 1.184 MB / 0.5839 GB, free: 90.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08571/1.675, allocations: 11.74 MB / 0.5954 GB, free: 89.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03485/1.71, allocations: 9.886 MB / 0.605 GB, free: 84.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000755/1.711, allocations: 0.5227 MB / 0.6056 GB, free: 83.94 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004012/1.715, allocations: 0.7064 MB / 0.6062 GB, free: 83.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05381/1.768, allocations: 17.16 MB / 0.623 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004997/1.769, allocations: 99.08 kB / 0.6231 GB, free: 64.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003063/1.772, allocations: 331.8 kB / 0.6234 GB, free: 64.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/1.775, allocations: 1.454 MB / 0.6248 GB, free: 63.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05345/1.829, allocations: 14.05 MB / 0.6386 GB, free: 49.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4922/2.321, allocations: 73.11 MB / 0.71 GB, free: 41.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04354/2.365, allocations: 8.704 MB / 0.7185 GB, free: 40.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008971/2.374, allocations: 4.721 MB / 0.7231 GB, free: 40.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04375/2.417, allocations: 17.7 MB / 0.7404 GB, free: 37.88 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.001e-05/2.418, allocations: 62.56 kB / 0.7404 GB, free: 37.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 8.907e-06/2.418, allocations: 2.625 kB / 0.7404 GB, free: 37.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.3378/2.755, allocations: 57.35 MB / 0.7964 GB, free: 18.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/2.756, allocations: 376.6 kB / 0.7968 GB, free: 17.56 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/2.77, allocations: 5.431 MB / 0.8021 GB, free: 12.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001258/2.771, allocations: 83.66 kB / 0.8022 GB, free: 12.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004726/2.776, allocations: 4.876 MB / 0.8069 GB, free: 8.418 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002532/2.778, allocations: 1.364 MB / 0.8083 GB, free: 7.211 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001716/2.78, allocations: 180 kB / 0.8084 GB, free: 7.035 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007558/2.781, allocations: 0.686 MB / 0.8091 GB, free: 6.449 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01236/2.793, allocations: 5.411 MB / 0.8144 GB, free: 1.531 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.022/2.815, allocations: 10.5 MB / 0.8246 GB, free: 5.473 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01869/2.834, allocations: 7.378 MB / 0.8318 GB, free: 14.22 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002163/2.834, allocations: 48 kB / 0.8319 GB, free: 14.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.0787/2.913, allocations: 20.72 MB / 0.8521 GB, free: 9.797 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/2.913, allocations: 80 kB / 0.8522 GB, free: 9.719 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002968/2.914, allocations: 176.2 kB / 0.8524 GB, free: 9.547 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03883/2.952, allocations: 6.52 MB / 0.8587 GB, free: 3.016 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01486/2.967, allocations: 2.044 MB / 0.8607 GB, free: 0.9688 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4437/3.411, allocations: 32.32 MB / 0.8923 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01313/3.424, allocations: 0.6996 MB / 0.893 GB, free: 130.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002511/3.427, allocations: 0.5139 MB / 0.8935 GB, free: 130.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002995/3.43, allocations: 0.7713 MB / 0.8942 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001936/3.432, allocations: 0.5891 MB / 0.8948 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05376/3.486, allocations: 15.38 MB / 0.9098 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000125/3.486, allocations: 53.44 kB / 0.9099 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-05/3.486, allocations: 16.31 kB / 0.9099 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.953e-05/3.486, allocations: 17.58 kB / 0.9099 GB, free: 128.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09167/3.578, allocations: 30.37 MB / 0.9396 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.802e-05/3.578, allocations: 7.344 kB / 0.9396 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0061/3.584, allocations: 0.5768 MB / 0.9401 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03464/3.619, allocations: 6.142 MB / 0.9461 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001217/3.62, allocations: 63.16 kB / 0.9462 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0685/3.688, allocations: 30.7 MB / 0.9762 GB, free: 100 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/3.688, allocations: 8.688 kB / 0.9762 GB, free: 100 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07272/3.761, allocations: 22.99 MB / 0.9986 GB, free: 80.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002437/3.764, allocations: 0.5998 MB / 0.9992 GB, free: 79.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003189/3.767, allocations: 67.45 kB / 0.9993 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00845/3.775, allocations: 403.3 kB / 0.9997 GB, free: 79.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/3.777, allocations: 256.4 kB / 0.9999 GB, free: 79.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007543/3.778, allocations: 92.86 kB / 1 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0102/3.788, allocations: 3.848 MB / 1.004 GB, free: 75.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.72e-07/3.788, allocations: 0 / 1.004 GB, free: 75.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01377/3.802, allocations: 2.172 MB / 1.006 GB, free: 73.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 236 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.06772/3.87, allocations: 24.23 MB / 1.03 GB, free: 48.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03221/3.902, allocations: 13.45 MB / 1.043 GB, free: 35.69 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/3.902, allocations: 0 / 1.043 GB, free: 35.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01631/3.919, allocations: 6.204 MB / 1.049 GB, free: 29.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007556/3.926, allocations: 0.8372 MB / 1.05 GB, free: 28.66 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4104/4.337, allocations: 19.07 MB / 1.068 GB, free: 128.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01445/4.351, allocations: 5.424 MB / 1.073 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01534/4.367, allocations: 3.034 MB / 1.076 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009837/4.376, allocations: 3.388 MB / 1.08 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of SimCode: time 2.104e-06/4.377, allocations: 3.844 kB / 1.08 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7618/5.138, allocations: 168.4 MB / 1.244 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002478/5.139, allocations: 188 kB / 1.244 GB, free: 108.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.201/14.34, allocations: 1.188 kB / 1.244 GB, free: 108.9 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat