Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.087/2.087, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003704, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.5724, allocations: 92.58 MB / 401.1 MB, free: 14.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/0.5728, allocations: 94.64 kB / 401.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9494/1.522, allocations: 147 MB / 0.5353 GB, free: 38.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.779e-06/1.522, allocations: 0 / 0.5353 GB, free: 38.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008024/1.523, allocations: 145 kB / 0.5355 GB, free: 38.62 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2273 * Number of variables: 2273 Notification: Performance of Generate backend data structure: time 0.0651/1.588, allocations: 9.467 MB / 0.5447 GB, free: 35.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.588, allocations: 8.656 kB / 0.5447 GB, free: 35.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006482/1.595, allocations: 1.159 MB / 0.5459 GB, free: 35.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1149/1.71, allocations: 16.68 MB / 0.5621 GB, free: 34.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04881/1.759, allocations: 13.2 MB / 0.575 GB, free: 33.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007636/1.759, allocations: 498.6 kB / 0.5755 GB, free: 33.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004478/1.764, allocations: 0.6691 MB / 0.5762 GB, free: 33.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06014/1.824, allocations: 16.88 MB / 0.5926 GB, free: 29.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006838/1.825, allocations: 106.3 kB / 0.5927 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004095/1.829, allocations: 324.2 kB / 0.5931 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006191/1.835, allocations: 1.467 MB / 0.5945 GB, free: 29.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.071/1.906, allocations: 13.67 MB / 0.6078 GB, free: 29.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1363/2.043, allocations: 76.76 MB / 0.6828 GB, free: 3.598 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.352/2.395, allocations: 8.557 MB / 0.6912 GB, free: 86.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002884/2.398, allocations: 1.345 MB / 0.6925 GB, free: 85.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.159e-05/2.398, allocations: 66.5 kB / 0.6925 GB, free: 85.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=268): time 7.033e-06/2.398, allocations: 1.156 kB / 0.6925 GB, free: 85.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=354): time 0.2891/2.687, allocations: 53.15 MB / 0.7444 GB, free: 78.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002646/2.69, allocations: 3.254 MB / 0.7476 GB, free: 75.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01756/2.707, allocations: 6.555 MB / 0.754 GB, free: 74.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001186/2.709, allocations: 77.75 kB / 0.7541 GB, free: 74.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005033/2.714, allocations: 4.871 MB / 0.7588 GB, free: 72.58 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002671/2.716, allocations: 1.346 MB / 0.7602 GB, free: 71.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001987/2.718, allocations: 190.5 kB / 0.7603 GB, free: 71.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009394/2.719, allocations: 0.7122 MB / 0.761 GB, free: 71.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01207/2.731, allocations: 4.579 MB / 0.7655 GB, free: 70.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01556/2.747, allocations: 9.856 MB / 0.7751 GB, free: 61.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01555/2.763, allocations: 6.566 MB / 0.7815 GB, free: 59.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002366/2.763, allocations: 54.56 kB / 0.7816 GB, free: 59.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=1237) (initialization): time 0.1248/2.888, allocations: 31.31 MB / 0.8122 GB, free: 42.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/2.888, allocations: 84.97 kB / 0.8123 GB, free: 42.33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08868/2.977, allocations: 20.69 MB / 0.8325 GB, free: 25.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4284/3.405, allocations: 16.6 MB / 0.8487 GB, free: 71.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01423/3.419, allocations: 2.116 MB / 0.8507 GB, free: 71.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08183/3.501, allocations: 35.36 MB / 0.8853 GB, free: 66.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01447/3.516, allocations: 0.7747 MB / 0.886 GB, free: 66.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002832/3.519, allocations: 0.5634 MB / 0.8866 GB, free: 66.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 842 * Number of states: 0 () * Number of discrete variables: 60 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],bodyCylinder4.color[3],bodyCylinder4.color[2],bodyCylinder4.color[1],bodyCylinder4.body.sphereColor[3],bodyCylinder4.body.sphereColor[2],bodyCylinder4.body.sphereColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],spherical2.sphereColor[3],spherical2.sphereColor[2],spherical2.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1078 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 38,(4,100.0%) 41} * Non-linear torn systems: 2 {4 9,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.01137/3.53, allocations: 3.432 MB / 0.8899 GB, free: 66.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002224/3.532, allocations: 0.6746 MB / 0.8906 GB, free: 66.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03531/3.568, allocations: 10.21 MB / 0.9006 GB, free: 64.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03053/3.598, allocations: 8.906 MB / 0.9093 GB, free: 61.44 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.129e-05/3.598, allocations: 20.05 kB / 0.9093 GB, free: 61.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/3.599, allocations: 21.11 kB / 0.9093 GB, free: 61.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07324/3.672, allocations: 23.66 MB / 0.9324 GB, free: 52.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-05/3.672, allocations: 7.062 kB / 0.9324 GB, free: 52.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005881/3.678, allocations: 0.5737 MB / 0.933 GB, free: 52.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02188/3.7, allocations: 3.619 MB / 0.9365 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001285/3.701, allocations: 91.19 kB / 0.9366 GB, free: 52.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04641/3.748, allocations: 22.76 MB / 0.9588 GB, free: 37.19 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002681/3.75, allocations: 2.992 MB / 0.9617 GB, free: 34.07 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04443/3.795, allocations: 15.82 MB / 0.9772 GB, free: 20.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005682/3.801, allocations: 1.388 MB / 0.9785 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003159/3.804, allocations: 75.38 kB / 0.9786 GB, free: 19.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008294/3.812, allocations: 335.4 kB / 0.9789 GB, free: 19.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001908/3.814, allocations: 243.5 kB / 0.9792 GB, free: 19.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008189/3.815, allocations: 105.8 kB / 0.9793 GB, free: 19.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01349/3.828, allocations: 4.7 MB / 0.9839 GB, free: 15.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.102e-06/3.828, allocations: 0 / 0.9839 GB, free: 15.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01438/3.843, allocations: 2.123 MB / 0.9859 GB, free: 13.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyCylinder1.body.w_a[1],bodyCylinder1.body.w_a[2],bodyCylinder1.body.w_a[3],revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 238 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 33,(1,100.0%) 1,(5,100.0%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3639/4.207, allocations: 16.9 MB / 1.002 GB, free: 70.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0309/4.238, allocations: 12.03 MB / 1.014 GB, free: 69.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/4.238, allocations: 0 / 1.014 GB, free: 69.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01284/4.251, allocations: 5.144 MB / 1.019 GB, free: 68.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008454/4.259, allocations: 0.9375 MB / 1.02 GB, free: 68.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6517/4.911, allocations: 220.2 MB / 1.235 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01437/4.925, allocations: 5.511 MB / 1.241 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01024/4.936, allocations: 3.741 MB / 1.244 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.152e-06/4.936, allocations: 0 / 1.244 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.461/12.4, allocations: 346.6 MB / 1.583 GB, free: 126.7 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat