Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalAndUniversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.504/2.504, allocations: 270 MB / 282.7 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.086e-05/5.102e-05, allocations: 7.984 kB / 347.1 MB, free: 3.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.457/0.4571, allocations: 61.88 MB / 408.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2253/0.6825, allocations: 109 MB / 0.5058 GB, free: 13.44 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.6828, allocations: 75.97 kB / 0.5059 GB, free: 13.37 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7617/1.445, allocations: 105.1 MB / 0.6085 GB, free: 31.73 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.914e-06/1.445, allocations: 0 / 0.6085 GB, free: 31.73 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004011/1.445, allocations: 100 kB / 0.6086 GB, free: 31.63 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.0226/1.468, allocations: 5.202 MB / 0.6137 GB, free: 26.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/1.468, allocations: 8.031 kB / 0.6137 GB, free: 26.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00477/1.472, allocations: 1.016 MB / 0.6147 GB, free: 25.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05064/1.523, allocations: 6.888 MB / 0.6214 GB, free: 18.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02569/1.549, allocations: 7.175 MB / 0.6284 GB, free: 11.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004774/1.549, allocations: 377.8 kB / 0.6287 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002875/1.552, allocations: 0.4997 MB / 0.6292 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03864/1.591, allocations: 12.2 MB / 0.6411 GB, free: 13 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004312/1.591, allocations: 75.25 kB / 0.6412 GB, free: 12.92 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002519/1.594, allocations: 243.8 kB / 0.6414 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002993/1.597, allocations: 1.145 MB / 0.6426 GB, free: 11.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03461/1.632, allocations: 9.931 MB / 0.6523 GB, free: 1.594 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1189/1.751, allocations: 55.67 MB / 0.7066 GB, free: 8.176 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02642/1.777, allocations: 5.641 MB / 0.7121 GB, free: 2.383 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4028/2.18, allocations: 2.822 MB / 0.7149 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02146/2.201, allocations: 8.79 MB / 0.7235 GB, free: 121 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/2.202, allocations: 56.95 kB / 0.7235 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=206): time 6.172e-06/2.202, allocations: 0 / 0.7235 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=265): time 0.1722/2.374, allocations: 29.31 MB / 0.7522 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.487e-05/2.374, allocations: 207.6 kB / 0.7524 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009665/2.384, allocations: 4.152 MB / 0.7564 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007056/2.384, allocations: 68.69 kB / 0.7565 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003031/2.388, allocations: 3.445 MB / 0.7598 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001553/2.389, allocations: 0.9781 MB / 0.7608 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000972/2.39, allocations: 134.2 kB / 0.7609 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005226/2.391, allocations: 0.5938 MB / 0.7615 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007003/2.398, allocations: 2.946 MB / 0.7644 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01021/2.408, allocations: 6.726 MB / 0.7709 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009885/2.418, allocations: 4.429 MB / 0.7753 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/2.418, allocations: 35.78 kB / 0.7753 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=879) (initialization): time 0.04074/2.459, allocations: 12.42 MB / 0.7874 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.836e-05/2.459, allocations: 64 kB / 0.7875 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/2.459, allocations: 132 kB / 0.7876 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02035/2.48, allocations: 4.077 MB / 0.7916 GB, free: 97.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00872/2.488, allocations: 1.421 MB / 0.793 GB, free: 95.89 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05388/2.542, allocations: 25.82 MB / 0.8182 GB, free: 73.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008767/2.551, allocations: 396.8 kB / 0.8186 GB, free: 72.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/2.553, allocations: 403.9 kB / 0.819 GB, free: 72.45 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (763): * Single equations (assignments): 757 * 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 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.002734/2.556, allocations: 0.6099 MB / 0.8196 GB, free: 71.83 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/2.557, allocations: 442.3 kB / 0.82 GB, free: 71.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02876/2.586, allocations: 8.058 MB / 0.8279 GB, free: 65.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.856e-05/2.586, allocations: 28 kB / 0.8279 GB, free: 65.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-05/2.586, allocations: 15.95 kB / 0.8279 GB, free: 65.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.894e-05/2.586, allocations: 11.3 kB / 0.8279 GB, free: 65.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05535/2.641, allocations: 16.64 MB / 0.8442 GB, free: 49.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.733e-05/2.641, allocations: 7.938 kB / 0.8442 GB, free: 49.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004159/2.646, allocations: 303.5 kB / 0.8445 GB, free: 48.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02627/2.672, allocations: 3.763 MB / 0.8481 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008365/2.673, allocations: 47.95 kB / 0.8482 GB, free: 45.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05598/2.729, allocations: 24.56 MB / 0.8722 GB, free: 20.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.426e-06/2.729, allocations: 7.938 kB / 0.8722 GB, free: 20.17 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03548/2.764, allocations: 12.54 MB / 0.8844 GB, free: 7.336 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/2.766, allocations: 495 kB / 0.8849 GB, free: 6.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001913/2.768, allocations: 51.98 kB / 0.8849 GB, free: 6.777 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005033/2.773, allocations: 162 kB / 0.8851 GB, free: 6.621 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.774, allocations: 194.1 kB / 0.8853 GB, free: 6.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004683/2.775, allocations: 71.12 kB / 0.8853 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007424/2.782, allocations: 2.934 MB / 0.8882 GB, free: 3.434 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.284e-06/2.782, allocations: 0 / 0.8882 GB, free: 3.434 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01005/2.792, allocations: 1.428 MB / 0.8896 GB, free: 2.012 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (161): * Single equations (assignments): 155 * 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 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.04218/2.835, allocations: 14.36 MB / 0.9036 GB, free: 3.441 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.4053/3.24, allocations: 7.77 MB / 0.9112 GB, free: 145 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/3.24, allocations: 3.562 kB / 0.9112 GB, free: 145 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01023/3.25, allocations: 3.356 MB / 0.9145 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005275/3.256, allocations: 0.5515 MB / 0.915 GB, free: 144.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0428/3.298, allocations: 12.61 MB / 0.9273 GB, free: 142.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/3.309, allocations: 4.041 MB / 0.9313 GB, free: 141.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006365/3.315, allocations: 2.415 MB / 0.9336 GB, free: 141.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.305e-06/3.315, allocations: 0 / 0.9336 GB, free: 141.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.106/8.422, allocations: 165.9 MB / 1.096 GB, free: 15.18 MB / 0.5417 GB