Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.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.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.311/2.311, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.514e-05, allocations: 4 kB / 309.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.394/0.394, allocations: 54.86 MB / 364.6 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.5919, allocations: 108.3 MB / 473 MB, free: 4.121 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.5922, allocations: 76.59 kB / 473 MB, free: 4.047 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.861/1.453, allocations: 123.3 MB / 0.5823 GB, free: 108.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.453, allocations: 0 / 0.5823 GB, free: 108.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003595/1.454, allocations: 108.7 kB / 0.5824 GB, free: 108.3 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: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.02334/1.477, allocations: 5.64 MB / 0.588 GB, free: 104.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/1.477, allocations: 10.44 kB / 0.588 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004391/1.482, allocations: 0.9697 MB / 0.5889 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03487/1.516, allocations: 4.726 MB / 0.5935 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/1.541, allocations: 6.62 MB / 0.6 GB, free: 94.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006818/1.542, allocations: 446.2 kB / 0.6004 GB, free: 94.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003348/1.545, allocations: 0.5417 MB / 0.6009 GB, free: 93.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04335/1.588, allocations: 14.06 MB / 0.6147 GB, free: 78.78 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003513/1.589, allocations: 67.28 kB / 0.6147 GB, free: 78.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002781/1.592, allocations: 265.2 kB / 0.615 GB, free: 78.49 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/1.595, allocations: 1.292 MB / 0.6163 GB, free: 77.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03677/1.631, allocations: 11.66 MB / 0.6276 GB, free: 65.53 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09429/1.726, allocations: 59.24 MB / 0.6855 GB, free: 4.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02064/1.746, allocations: 4.634 MB / 0.69 GB, free: 15.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00668/1.753, allocations: 2.71 MB / 0.6927 GB, free: 13.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03471/1.788, allocations: 12.6 MB / 0.705 GB, free: 152 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.931e-05/1.788, allocations: 55.81 kB / 0.705 GB, free: 88 kB / 474.7 MB Notification: Performance of pre-optimization done (n=191): time 6.141e-06/1.788, allocations: 0 / 0.705 GB, free: 88 kB / 474.7 MB Notification: Performance of matching and sorting (n=242): time 0.5122/2.3, allocations: 32.82 MB / 0.7371 GB, free: 112.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/2.3, allocations: 239.2 kB / 0.7373 GB, free: 112.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009526/2.31, allocations: 4.176 MB / 0.7414 GB, free: 111.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007118/2.311, allocations: 63.64 kB / 0.7414 GB, free: 111.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003096/2.314, allocations: 3.778 MB / 0.7451 GB, free: 109 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/2.315, allocations: 0.9127 MB / 0.746 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009402/2.316, allocations: 145.6 kB / 0.7462 GB, free: 108.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004773/2.317, allocations: 0.6133 MB / 0.7468 GB, free: 107.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007665/2.324, allocations: 3.156 MB / 0.7498 GB, free: 106.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/2.335, allocations: 7.413 MB / 0.7571 GB, free: 99.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/2.345, allocations: 4.739 MB / 0.7617 GB, free: 98.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001744/2.346, allocations: 41.09 kB / 0.7617 GB, free: 98.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04534/2.391, allocations: 13.49 MB / 0.7749 GB, free: 92.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/2.391, allocations: 69.22 kB / 0.775 GB, free: 92.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002118/2.391, allocations: 152 kB / 0.7751 GB, free: 92.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02073/2.412, allocations: 3.801 MB / 0.7788 GB, free: 89.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0101/2.422, allocations: 1.616 MB / 0.7804 GB, free: 88.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04653/2.469, allocations: 18.01 MB / 0.798 GB, free: 73.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01432/2.483, allocations: 494.4 kB / 0.7985 GB, free: 72.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002282/2.486, allocations: 427.8 kB / 0.7989 GB, free: 72.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.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 (856): * Single equations (assignments): 852 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004052/2.49, allocations: 0.6378 MB / 0.7995 GB, free: 71.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001844/2.492, allocations: 430.5 kB / 0.7999 GB, free: 71.35 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04962/2.541, allocations: 8.081 MB / 0.8078 GB, free: 64.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.028e-05/2.541, allocations: 24.78 kB / 0.8078 GB, free: 64.74 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.6e-05/2.541, allocations: 12 kB / 0.8079 GB, free: 64.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.911e-05/2.542, allocations: 11.95 kB / 0.8079 GB, free: 64.71 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06782/2.609, allocations: 17.39 MB / 0.8249 GB, free: 47.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.39e-05/2.609, allocations: 4 kB / 0.8249 GB, free: 47.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003844/2.613, allocations: 379.4 kB / 0.8252 GB, free: 46.95 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02738/2.641, allocations: 3.852 MB / 0.829 GB, free: 43.09 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006402/2.641, allocations: 40 kB / 0.829 GB, free: 43.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04883/2.69, allocations: 16.45 MB / 0.8451 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/2.69, allocations: 0 / 0.8451 GB, free: 26.46 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05242/2.743, allocations: 12.54 MB / 0.8573 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004646/2.747, allocations: 0.9415 MB / 0.8583 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001529/2.749, allocations: 36 kB / 0.8583 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006514/2.756, allocations: 212.4 kB / 0.8585 GB, free: 12.65 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001289/2.757, allocations: 158.2 kB / 0.8586 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000453/2.757, allocations: 60.61 kB / 0.8587 GB, free: 12.44 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00956/2.767, allocations: 2.909 MB / 0.8615 GB, free: 9.531 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/2.767, allocations: 0 / 0.8615 GB, free: 9.531 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01801/2.785, allocations: 1.449 MB / 0.863 GB, free: 8.094 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0553/2.84, allocations: 13.45 MB / 0.8761 GB, free: 10.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.364/3.205, allocations: 7.725 MB / 0.8836 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/3.205, allocations: 0 / 0.8836 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007902/3.213, allocations: 2.917 MB / 0.8865 GB, free: 123.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004591/3.217, allocations: 0.4893 MB / 0.887 GB, free: 123.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04741/3.265, allocations: 13.04 MB / 0.8997 GB, free: 121.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0105/3.275, allocations: 4.217 MB / 0.9038 GB, free: 121 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006495/3.282, allocations: 2.526 MB / 0.9063 GB, free: 121 MB / 490.7 MB Notification: Performance of SimCode: time 1.683e-06/3.282, allocations: 0 / 0.9063 GB, free: 121 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.77/8.051, allocations: 129.5 MB / 1.033 GB, free: 27.2 MB / 490.7 MB