Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.SphericalDoublePendulum,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_SphericalDoublePendulum",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.906/1.906, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.27e-05/4.284e-05, allocations: 0 / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4458/0.557, allocations: 88.54 MB / 410.4 MB, free: 1.387 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.5573, allocations: 70.53 kB / 410.4 MB, free: 1.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.996/1.553, allocations: 171.7 MB / 0.5685 GB, free: 83.41 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.913e-06/1.553, allocations: 0 / 0.5685 GB, free: 83.41 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009625/1.554, allocations: 176.6 kB / 0.5687 GB, free: 83.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2554 * Number of variables: 2554 Notification: Performance of Generate backend data structure: time 0.06881/1.623, allocations: 10.02 MB / 0.5784 GB, free: 77.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/1.623, allocations: 13.09 kB / 0.5785 GB, free: 77.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007133/1.63, allocations: 1.308 MB / 0.5797 GB, free: 76.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1518/1.782, allocations: 21.9 MB / 0.6011 GB, free: 55.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06626/1.849, allocations: 19.87 MB / 0.6205 GB, free: 35.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007177/1.849, allocations: 0.5584 MB / 0.6211 GB, free: 34.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004622/1.854, allocations: 0.7767 MB / 0.6218 GB, free: 33.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06115/1.915, allocations: 19.14 MB / 0.6405 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008084/1.916, allocations: 146.6 kB / 0.6407 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003883/1.92, allocations: 359.8 kB / 0.641 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004132/1.924, allocations: 1.648 MB / 0.6426 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.422/2.346, allocations: 15.88 MB / 0.6581 GB, free: 70.22 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1584/2.505, allocations: 90.07 MB / 0.7461 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04455/2.549, allocations: 8.738 MB / 0.7546 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01047/2.56, allocations: 4.805 MB / 0.7593 GB, free: 9.273 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002187/2.562, allocations: 1.007 MB / 0.7603 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000105/2.562, allocations: 73.58 kB / 0.7604 GB, free: 8.32 MB / 426.7 MB Notification: Performance of pre-optimization done (n=322): time 8.766e-06/2.562, allocations: 2.188 kB / 0.7604 GB, free: 8.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=397): time 0.3362/2.898, allocations: 57.57 MB / 0.8166 GB, free: 4.902 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3558/3.254, allocations: 5.128 MB / 0.8216 GB, free: 103.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02428/3.279, allocations: 7.473 MB / 0.8289 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001632/3.28, allocations: 84.39 kB / 0.829 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0067/3.287, allocations: 5.72 MB / 0.8345 GB, free: 101 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003589/3.291, allocations: 1.547 MB / 0.8361 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002134/3.293, allocations: 221.9 kB / 0.8363 GB, free: 100.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001139/3.294, allocations: 0.7829 MB / 0.837 GB, free: 99.81 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01687/3.311, allocations: 5.627 MB / 0.8425 GB, free: 99.79 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02048/3.332, allocations: 11.91 MB / 0.8542 GB, free: 91.78 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0198/3.351, allocations: 7.998 MB / 0.862 GB, free: 90.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003268/3.352, allocations: 62.03 kB / 0.862 GB, free: 90.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=1452) (initialization): time 0.1476/3.499, allocations: 35.44 MB / 0.8966 GB, free: 83.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002215/3.5, allocations: 103.7 kB / 0.8967 GB, free: 83.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1067/3.606, allocations: 23.74 MB / 0.9199 GB, free: 71.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1009/3.707, allocations: 18.22 MB / 0.9377 GB, free: 53.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01861/3.726, allocations: 2.757 MB / 0.9404 GB, free: 50.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0836/3.81, allocations: 38.13 MB / 0.9776 GB, free: 11.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02026/3.83, allocations: 1.144 MB / 0.9788 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003696/3.834, allocations: 0.6685 MB / 0.9794 GB, free: 10.02 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * Number of states: 0 () * Number of discrete variables: 63 (Spherical6.sphereColor[3],Spherical6.sphereColor[2],Spherical6.sphereColor[1],Spherical5.sphereColor[3],Spherical5.sphereColor[2],Spherical5.sphereColor[1],boxBody6.color[3],boxBody6.color[2],boxBody6.color[1],boxBody6.body.sphereColor[3],boxBody6.body.sphereColor[2],boxBody6.body.sphereColor[1],boxBody5.color[3],boxBody5.color[2],boxBody5.color[1],boxBody5.body.sphereColor[3],boxBody5.body.sphereColor[2],boxBody5.body.sphereColor[1],Spherical4.sphereColor[3],Spherical4.sphereColor[2],Spherical4.sphereColor[1],Spherical3.sphereColor[3],Spherical3.sphereColor[2],Spherical3.sphereColor[1],boxBody4.color[3],boxBody4.color[2],boxBody4.color[1],boxBody4.body.sphereColor[3],boxBody4.body.sphereColor[2],boxBody4.body.sphereColor[1],boxBody3.color[3],boxBody3.color[2],boxBody3.color[1],boxBody3.body.sphereColor[3],boxBody3.body.sphereColor[2],boxBody3.body.sphereColor[1],Spherical2.sphereColor[3],Spherical2.sphereColor[2],Spherical2.sphereColor[1],Spherical1.sphereColor[3],Spherical1.sphereColor[2],Spherical1.sphereColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (1310): * Single equations (assignments): 1286 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,59.4%) 13,(8,59.4%) 13,(8,59.4%) 13} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.006184/3.84, allocations: 0.9351 MB / 0.9803 GB, free: 9.078 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003448/3.843, allocations: 0.7864 MB / 0.9811 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4248/4.268, allocations: 13.65 MB / 0.9944 GB, free: 87.71 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05216/4.32, allocations: 12.15 MB / 1.006 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.248e-05/4.321, allocations: 22.94 kB / 1.006 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/4.321, allocations: 23.81 kB / 1.006 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1034/4.424, allocations: 29.2 MB / 1.035 GB, free: 82.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-05/4.424, allocations: 2.406 kB / 1.035 GB, free: 82.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009134/4.433, allocations: 0.8942 MB / 1.036 GB, free: 82.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03369/4.467, allocations: 5.527 MB / 1.041 GB, free: 81.92 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001562/4.469, allocations: 106 kB / 1.041 GB, free: 81.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06222/4.531, allocations: 28.19 MB / 1.069 GB, free: 67.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004377/4.535, allocations: 4.682 MB / 1.073 GB, free: 63.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06365/4.599, allocations: 20.35 MB / 1.093 GB, free: 51.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003474/4.603, allocations: 0.8343 MB / 1.094 GB, free: 51.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003816/4.607, allocations: 85.61 kB / 1.094 GB, free: 51.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01136/4.618, allocations: 0.5095 MB / 1.095 GB, free: 50.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002431/4.62, allocations: 297.7 kB / 1.095 GB, free: 50.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001093/4.622, allocations: 123.9 kB / 1.095 GB, free: 50.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01451/4.636, allocations: 5.33 MB / 1.1 GB, free: 45.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.61e-07/4.636, allocations: 0 / 1.1 GB, free: 45.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01758/4.654, allocations: 2.776 MB / 1.103 GB, free: 43.13 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[6],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],Spherical1.phi[1],Spherical1.phi[2],Spherical1.phi[3],Spherical1.phi_d[1],Spherical1.phi_d[2],Spherical1.phi_d[3],Spherical2.phi[1],Spherical2.phi[2],Spherical2.phi[3],Spherical2.phi_d[1],Spherical2.phi_d[2],Spherical2.phi_d[3],Spherical3.w_rel[1],Spherical3.w_rel[2],Spherical3.w_rel[3],Spherical4.w_rel[1],Spherical4.w_rel[2],Spherical4.w_rel[3],boxBody5.body.w_a[1],boxBody5.body.w_a[2],boxBody5.body.w_a[3],boxBody6.body.w_a[1],boxBody6.body.w_a[2],boxBody6.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 281 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(4,100.0%),(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {8,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,54.7%) 13,(8,59.4%) 13,(8,54.7%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06555/4.719, allocations: 21.39 MB / 1.124 GB, free: 22.84 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1330:5-1332:19:writable] Warning: Variable Spherical1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.041/4.76, allocations: 15.55 MB / 1.139 GB, free: 7.348 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-05/4.76, allocations: 0 / 1.139 GB, free: 7.348 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02329/4.784, allocations: 7.348 MB / 1.146 GB, free: 15.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01218/4.796, allocations: 1.221 MB / 1.147 GB, free: 14.65 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4309/5.227, allocations: 24.43 MB / 1.171 GB, free: 98.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01812/5.245, allocations: 6.326 MB / 1.177 GB, free: 97.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01255/5.258, allocations: 4.482 MB / 1.182 GB, free: 97.89 MB / 474.7 MB Notification: Performance of SimCode: time 2.434e-06/5.258, allocations: 0 / 1.182 GB, free: 97.89 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.26/14.52, allocations: 0.6197 GB / 1.801 GB, free: 69.25 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.SphericalDoublePendulum_res.mat does not exist to compare? outputFormat=mat