Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.383e-05/4.397e-05, allocations: 4 kB / 309.8 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4075, allocations: 54.85 MB / 364.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.5988, allocations: 102.5 MB / 467.2 MB, free: 9.934 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003161/0.5992, allocations: 75.95 kB / 467.2 MB, free: 9.859 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9662/1.565, allocations: 147.6 MB / 0.6005 GB, free: 93.28 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.565, allocations: 3.938 kB / 0.6005 GB, free: 93.28 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006721/1.566, allocations: 144 kB / 0.6006 GB, free: 93.14 MB / 458.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.07636/1.642, allocations: 8.568 MB / 0.609 GB, free: 84.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/1.643, allocations: 12.03 kB / 0.609 GB, free: 84.47 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01413/1.657, allocations: 1.157 MB / 0.6101 GB, free: 83.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1352/1.792, allocations: 16.68 MB / 0.6264 GB, free: 66.59 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04745/1.839, allocations: 13.3 MB / 0.6394 GB, free: 53.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006435/1.84, allocations: 0.4893 MB / 0.6399 GB, free: 52.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003679/1.844, allocations: 0.6675 MB / 0.6405 GB, free: 52.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05447/1.898, allocations: 16.77 MB / 0.6569 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005478/1.899, allocations: 107 kB / 0.657 GB, free: 33.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003142/1.902, allocations: 319.9 kB / 0.6573 GB, free: 33.33 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003775/1.906, allocations: 1.471 MB / 0.6587 GB, free: 31.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05213/1.958, allocations: 13.48 MB / 0.6719 GB, free: 18.35 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8311/2.789, allocations: 76.73 MB / 0.7468 GB, free: 45.62 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04865/2.838, allocations: 8.549 MB / 0.7552 GB, free: 44.95 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008489/2.847, allocations: 4.084 MB / 0.7592 GB, free: 44.91 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002878/2.85, allocations: 1.354 MB / 0.7605 GB, free: 43.79 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/2.85, allocations: 60.81 kB / 0.7605 GB, free: 43.74 MB / 474.8 MB Notification: Performance of pre-optimization done (n=268): time 8.256e-06/2.85, allocations: 0 / 0.7605 GB, free: 43.74 MB / 474.8 MB Notification: Performance of matching and sorting (n=352): time 0.2521/3.102, allocations: 44.9 MB / 0.8044 GB, free: 36 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00256/3.104, allocations: 3.232 MB / 0.8075 GB, free: 32.82 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01681/3.121, allocations: 6.493 MB / 0.8139 GB, free: 30.68 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001146/3.122, allocations: 79.56 kB / 0.814 GB, free: 30.61 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004765/3.127, allocations: 4.87 MB / 0.8187 GB, free: 26.76 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002417/3.13, allocations: 1.338 MB / 0.82 GB, free: 25.79 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/3.132, allocations: 190.8 kB / 0.8202 GB, free: 25.64 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0009107/3.133, allocations: 0.7209 MB / 0.8209 GB, free: 25.15 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/3.144, allocations: 4.475 MB / 0.8253 GB, free: 21.28 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01564/3.16, allocations: 9.756 MB / 0.8348 GB, free: 9.75 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/3.175, allocations: 6.521 MB / 0.8412 GB, free: 4.293 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000205/3.175, allocations: 52 kB / 0.8412 GB, free: 4.242 MB / 474.8 MB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.1366/3.312, allocations: 31.27 MB / 0.8718 GB, free: 9.758 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001766/3.312, allocations: 88.56 kB / 0.8719 GB, free: 9.672 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.09671/3.409, allocations: 20.57 MB / 0.8919 GB, free: 5.066 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4914/3.9, allocations: 16.59 MB / 0.9081 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0148/3.915, allocations: 2.11 MB / 0.9102 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07583/3.991, allocations: 33.33 MB / 0.9427 GB, free: 123 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01401/4.005, allocations: 0.772 MB / 0.9435 GB, free: 122.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002515/4.007, allocations: 0.5608 MB / 0.9441 GB, free: 122.8 MB / 0.5105 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1076 * 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.002325/4.01, allocations: 0.8142 MB / 0.9448 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002022/4.012, allocations: 0.6706 MB / 0.9455 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03243/4.044, allocations: 10.16 MB / 0.9554 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02803/4.072, allocations: 8.837 MB / 0.964 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.675e-05/4.072, allocations: 21.34 kB / 0.9641 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-05/4.072, allocations: 13.69 kB / 0.9641 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06794/4.14, allocations: 23.35 MB / 0.9869 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.452e-05/4.141, allocations: 7.562 kB / 0.9869 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005701/4.146, allocations: 0.558 MB / 0.9874 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02357/4.17, allocations: 4.02 MB / 0.9914 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001075/4.171, allocations: 98.2 kB / 0.9915 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04402/4.215, allocations: 23.98 MB / 1.015 GB, free: 79.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002235/4.217, allocations: 3.004 MB / 1.018 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04236/4.26, allocations: 15.47 MB / 1.033 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00587/4.266, allocations: 1.386 MB / 1.034 GB, free: 59.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002558/4.268, allocations: 79.98 kB / 1.034 GB, free: 59.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00856/4.277, allocations: 362.9 kB / 1.035 GB, free: 58.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001815/4.279, allocations: 249.3 kB / 1.035 GB, free: 58.74 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005812/4.279, allocations: 98.89 kB / 1.035 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01278/4.292, allocations: 4.636 MB / 1.04 GB, free: 54.05 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.042e-06/4.292, allocations: 3 kB / 1.04 GB, free: 54.05 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01364/4.306, allocations: 2.128 MB / 1.042 GB, free: 51.93 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],fixedRotation1.frame_b.R.w[1],fixedRotation1.frame_b.R.w[2],fixedRotation1.frame_b.R.w[3],revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,rotor1D.rotorWith3DEffects.w_a[1],rotor1D.rotorWith3DEffects.w_a[2],rotor1D.rotorWith3DEffects.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 233 * 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: 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: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(5,100.0%) 35,(1,100.0%) 1,(3,100.0%) 33,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04279/4.349, allocations: 16.45 MB / 1.058 GB, free: 35.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02815/4.377, allocations: 11.8 MB / 1.069 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/4.377, allocations: 0 / 1.069 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01292/4.39, allocations: 5.169 MB / 1.074 GB, free: 18.31 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008581/4.398, allocations: 0.9504 MB / 1.075 GB, free: 17.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4835/4.882, allocations: 19.57 MB / 1.094 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02157/4.904, allocations: 5.509 MB / 1.1 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01341/4.917, allocations: 3.731 MB / 1.103 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.403e-06/4.917, allocations: 0 / 1.103 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.927/11.84, allocations: 360.7 MB / 1.456 GB, free: 11.09 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_1_res.mat does not exist to compare? outputFormat=mat