Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.51e-05/3.516e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.5806, allocations: 104.1 MB / 446.8 MB, free: 6.336 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.581, allocations: 88.2 kB / 446.9 MB, free: 6.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8976/1.479, allocations: 141.8 MB / 0.5748 GB, free: 93.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.246e-06/1.479, allocations: 0 / 0.5748 GB, free: 93.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007924/1.479, allocations: 153.2 kB / 0.575 GB, free: 93.44 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.0416/1.521, allocations: 7.472 MB / 0.5823 GB, free: 90.73 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.521, allocations: 10.66 kB / 0.5823 GB, free: 90.73 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006567/1.528, allocations: 1.185 MB / 0.5835 GB, free: 90.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.106/1.634, allocations: 11.74 MB / 0.5949 GB, free: 89.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03517/1.669, allocations: 9.887 MB / 0.6046 GB, free: 84.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007016/1.67, allocations: 0.5181 MB / 0.6051 GB, free: 83.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003983/1.674, allocations: 0.7035 MB / 0.6058 GB, free: 83.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05503/1.729, allocations: 17.17 MB / 0.6225 GB, free: 65.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006158/1.73, allocations: 99.08 kB / 0.6226 GB, free: 65.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003571/1.733, allocations: 335.5 kB / 0.6229 GB, free: 65.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0033/1.736, allocations: 1.454 MB / 0.6244 GB, free: 63.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0461/1.783, allocations: 14.05 MB / 0.6381 GB, free: 49.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4746/2.257, allocations: 73.11 MB / 0.7095 GB, free: 41.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04328/2.301, allocations: 8.698 MB / 0.718 GB, free: 40.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009594/2.31, allocations: 4.72 MB / 0.7226 GB, free: 40.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04403/2.354, allocations: 17.69 MB / 0.7399 GB, free: 37.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/2.354, allocations: 74.91 kB / 0.7399 GB, free: 37.68 MB / 442.7 MB Notification: Performance of pre-optimization done (n=281): time 7.173e-06/2.355, allocations: 0 / 0.7399 GB, free: 37.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=374): time 0.3262/2.681, allocations: 57.36 MB / 0.7959 GB, free: 18.24 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/2.681, allocations: 376 kB / 0.7963 GB, free: 17.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01365/2.695, allocations: 5.432 MB / 0.8016 GB, free: 13.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00125/2.696, allocations: 81.7 kB / 0.8017 GB, free: 13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004259/2.7, allocations: 4.637 MB / 0.8062 GB, free: 8.801 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002515/2.703, allocations: 1.369 MB / 0.8076 GB, free: 7.59 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/2.704, allocations: 180 kB / 0.8077 GB, free: 7.414 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006004/2.705, allocations: 0.686 MB / 0.8084 GB, free: 6.824 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01202/2.717, allocations: 5.407 MB / 0.8137 GB, free: 1.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02202/2.739, allocations: 10.52 MB / 0.824 GB, free: 5.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01903/2.758, allocations: 7.383 MB / 0.8312 GB, free: 14.72 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001943/2.758, allocations: 52 kB / 0.8312 GB, free: 14.67 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.07859/2.837, allocations: 20.47 MB / 0.8512 GB, free: 10.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001564/2.837, allocations: 80 kB / 0.8513 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003161/2.837, allocations: 172.9 kB / 0.8514 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03868/2.876, allocations: 6.516 MB / 0.8578 GB, free: 3.793 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01488/2.891, allocations: 2.051 MB / 0.8598 GB, free: 1.738 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4288/3.32, allocations: 32.33 MB / 0.8914 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01321/3.333, allocations: 0.6991 MB / 0.8921 GB, free: 131.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002658/3.336, allocations: 0.5145 MB / 0.8926 GB, free: 131.2 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.004224/3.34, allocations: 0.7696 MB / 0.8933 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002102/3.342, allocations: 0.5832 MB / 0.8939 GB, free: 131.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05596/3.398, allocations: 15.38 MB / 0.9089 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/3.398, allocations: 51.5 kB / 0.909 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.97e-05/3.398, allocations: 19.66 kB / 0.909 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.815e-05/3.398, allocations: 14.34 kB / 0.909 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09035/3.489, allocations: 30.38 MB / 0.9387 GB, free: 117 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.453e-05/3.489, allocations: 3.344 kB / 0.9387 GB, free: 117 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005962/3.495, allocations: 0.5744 MB / 0.9392 GB, free: 117 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03391/3.529, allocations: 6.145 MB / 0.9452 GB, free: 116 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001189/3.53, allocations: 63.23 kB / 0.9453 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06596/3.596, allocations: 30.7 MB / 0.9753 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/3.596, allocations: 0 / 0.9753 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06468/3.661, allocations: 22.99 MB / 0.9977 GB, free: 81.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002072/3.663, allocations: 0.6035 MB / 0.9983 GB, free: 81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002681/3.666, allocations: 65.27 kB / 0.9984 GB, free: 80.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008172/3.674, allocations: 413 kB / 0.9988 GB, free: 80.54 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/3.676, allocations: 243.8 kB / 0.999 GB, free: 80.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006644/3.676, allocations: 97.62 kB / 0.9991 GB, free: 80.21 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01015/3.687, allocations: 3.848 MB / 1.003 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.012e-06/3.687, allocations: 2.031 kB / 1.003 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01358/3.7, allocations: 2.169 MB / 1.005 GB, free: 74.21 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.06771/3.768, allocations: 24.22 MB / 1.029 GB, free: 50.02 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0319/3.8, allocations: 13.45 MB / 1.042 GB, free: 36.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/3.8, allocations: 4 kB / 1.042 GB, free: 36.79 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0164/3.816, allocations: 6.203 MB / 1.048 GB, free: 30.56 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007536/3.824, allocations: 0.8456 MB / 1.049 GB, free: 29.76 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4198/4.244, allocations: 19.9 MB / 1.068 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/4.258, allocations: 5.421 MB / 1.073 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01005/4.268, allocations: 3.444 MB / 1.077 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.643e-06/4.268, allocations: 0.875 kB / 1.077 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.308/10.58, allocations: 239.8 MB / 1.311 GB, free: 100.8 MB / 0.4948 GB