Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_GyroscopicEffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.619/1.619, allocations: 171.1 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003595/0.0003595, allocations: 16 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08187/0.08227, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3608/0.4431, allocations: 86.83 MB / 358.9 MB, free: 2.957 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.4435, allocations: 86.89 kB / 359 MB, free: 2.91 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8238/1.267, allocations: 147 MB / 0.4941 GB, free: 56.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.267, allocations: 0 / 0.4941 GB, free: 56.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006714/1.268, allocations: 144 kB / 0.4943 GB, free: 56.31 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2272 * Number of variables: 2272 Notification: Performance of Generate backend data structure: time 0.07472/1.343, allocations: 9.481 MB / 0.5035 GB, free: 46.74 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/1.343, allocations: 8.031 kB / 0.5036 GB, free: 46.73 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007/1.35, allocations: 1.158 MB / 0.5047 GB, free: 45.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1178/1.468, allocations: 16.66 MB / 0.521 GB, free: 28.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04325/1.511, allocations: 13.21 MB / 0.5339 GB, free: 15.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00053/1.512, allocations: 497.1 kB / 0.5343 GB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0034/1.515, allocations: 0.6714 MB / 0.535 GB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04941/1.564, allocations: 16.87 MB / 0.5515 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004273/1.565, allocations: 103.1 kB / 0.5516 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001685/1.567, allocations: 315.9 kB / 0.5519 GB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00375/1.57, allocations: 1.475 MB / 0.5533 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5487/2.119, allocations: 13.67 MB / 0.5666 GB, free: 59.96 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1314/2.251, allocations: 76.73 MB / 0.6416 GB, free: 13.21 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07663/2.327, allocations: 8.571 MB / 0.65 GB, free: 10.77 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003879/2.331, allocations: 1.349 MB / 0.6513 GB, free: 9.59 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.953e-05/2.331, allocations: 61.94 kB / 0.6513 GB, free: 9.531 MB / 362.8 MB Notification: Performance of pre-optimization done (n=268): time 1.104e-05/2.331, allocations: 0 / 0.6513 GB, free: 9.531 MB / 362.8 MB Notification: Performance of matching and sorting (n=354): time 0.3317/2.663, allocations: 53.35 MB / 0.7034 GB, free: 10.66 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003593/2.667, allocations: 3.265 MB / 0.7066 GB, free: 7.078 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01964/2.686, allocations: 6.561 MB / 0.713 GB, free: 0.5664 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001215/2.688, allocations: 77.7 kB / 0.7131 GB, free: 496 kB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.2826/2.97, allocations: 4.871 MB / 0.7179 GB, free: 93.12 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002585/2.973, allocations: 1.345 MB / 0.7192 GB, free: 92.34 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002032/2.975, allocations: 187 kB / 0.7194 GB, free: 92.34 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.001108/2.976, allocations: 0.7116 MB / 0.72 GB, free: 92.01 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01311/2.989, allocations: 4.576 MB / 0.7245 GB, free: 91.99 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01762/3.007, allocations: 9.86 MB / 0.7341 GB, free: 85.25 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01568/3.023, allocations: 6.552 MB / 0.7405 GB, free: 85.21 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000334/3.023, allocations: 56.34 kB / 0.7406 GB, free: 85.21 MB / 394.8 MB Notification: Performance of matching and sorting (n=1237) (initialization): time 0.1243/3.148, allocations: 31.31 MB / 0.7712 GB, free: 81.32 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001729/3.148, allocations: 94.73 kB / 0.7713 GB, free: 81.32 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.08722/3.235, allocations: 20.69 MB / 0.7915 GB, free: 75.55 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08438/3.319, allocations: 16.6 MB / 0.8077 GB, free: 58.94 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01327/3.333, allocations: 2.117 MB / 0.8098 GB, free: 56.82 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0777/3.411, allocations: 35.36 MB / 0.8443 GB, free: 21.02 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01373/3.424, allocations: 0.7685 MB / 0.845 GB, free: 20.26 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002724/3.427, allocations: 0.5637 MB / 0.8456 GB, free: 19.7 MB / 394.8 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.01051/3.438, allocations: 3.434 MB / 0.8489 GB, free: 16.25 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001949/3.44, allocations: 0.6711 MB / 0.8496 GB, free: 15.57 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3216/3.761, allocations: 10.21 MB / 0.8596 GB, free: 82.12 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03047/3.792, allocations: 8.907 MB / 0.8683 GB, free: 81.82 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.197e-05/3.792, allocations: 15.28 kB / 0.8683 GB, free: 81.82 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001044/3.792, allocations: 18.69 kB / 0.8683 GB, free: 81.82 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07037/3.862, allocations: 23.66 MB / 0.8914 GB, free: 77.93 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-05/3.862, allocations: 4.156 kB / 0.8914 GB, free: 77.93 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005814/3.868, allocations: 0.5724 MB / 0.892 GB, free: 77.92 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02138/3.89, allocations: 3.63 MB / 0.8955 GB, free: 77.24 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001231/3.891, allocations: 91.27 kB / 0.8956 GB, free: 77.2 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04548/3.937, allocations: 22.76 MB / 0.9178 GB, free: 64.68 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002384/3.939, allocations: 2.99 MB / 0.9208 GB, free: 61.8 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04296/3.982, allocations: 15.81 MB / 0.9362 GB, free: 54.47 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005255/3.987, allocations: 1.385 MB / 0.9375 GB, free: 53.56 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002726/3.99, allocations: 82.52 kB / 0.9376 GB, free: 53.49 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007849/3.998, allocations: 325.4 kB / 0.9379 GB, free: 53.3 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001834/4, allocations: 250.8 kB / 0.9382 GB, free: 53.16 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005826/4, allocations: 95.44 kB / 0.9383 GB, free: 53.07 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.01262/4.013, allocations: 4.7 MB / 0.9429 GB, free: 49.26 MB / 394.8 MB Notification: Performance of sort global known variables: time 5.21e-07/4.013, allocations: 0 / 0.9429 GB, free: 49.26 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.0139/4.027, allocations: 2.134 MB / 0.9449 GB, free: 47.14 MB / 394.8 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.0434/4.071, allocations: 16.91 MB / 0.9614 GB, free: 32.77 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02811/4.099, allocations: 12.03 MB / 0.9732 GB, free: 22.49 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/4.099, allocations: 0 / 0.9732 GB, free: 22.49 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01225/4.111, allocations: 5.167 MB / 0.9782 GB, free: 17.66 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008365/4.119, allocations: 0.9387 MB / 0.9792 GB, free: 16.75 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8836/5.003, allocations: 220.2 MB / 1.194 GB, free: 149.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01259/5.016, allocations: 5.524 MB / 1.2 GB, free: 148.4 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009184/5.025, allocations: 3.74 MB / 1.203 GB, free: 147.5 MB / 474.8 MB Notification: Performance of SimCode: time 1.062e-06/5.025, allocations: 0 / 1.203 GB, free: 147.5 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.117/12.14, allocations: 346.5 MB / 1.542 GB, free: 105.5 MB / 474.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GyroscopicEffects_res.mat does not exist to compare? outputFormat=mat