Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.358/2.358, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006355/0.0006355, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3462, allocations: 54.86 MB / 369.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5387/0.885, allocations: 110.9 MB / 480.2 MB, free: 40.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.8854, allocations: 84.12 kB / 480.3 MB, free: 40.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7627/1.648, allocations: 171.8 MB / 0.6368 GB, free: 1.754 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.648, allocations: 3.938 kB / 0.6368 GB, free: 1.75 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005331/1.649, allocations: 155.9 kB / 0.637 GB, free: 1.598 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.04501/1.694, allocations: 8.216 MB / 0.645 GB, free: 9.293 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.766e-05/1.694, allocations: 12.03 kB / 0.645 GB, free: 9.281 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01036/1.704, allocations: 1.618 MB / 0.6466 GB, free: 7.652 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06798/1.772, allocations: 6.947 MB / 0.6534 GB, free: 0.6836 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.382/2.154, allocations: 9.873 MB / 0.663 GB, free: 83.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009308/2.155, allocations: 0.5686 MB / 0.6636 GB, free: 83.54 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005172/2.16, allocations: 0.7658 MB / 0.6643 GB, free: 83.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0678/2.228, allocations: 20.77 MB / 0.6846 GB, free: 79.64 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006142/2.229, allocations: 84.06 kB / 0.6847 GB, free: 79.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00451/2.234, allocations: 363.5 kB / 0.685 GB, free: 79.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004697/2.238, allocations: 1.967 MB / 0.6869 GB, free: 79.63 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05863/2.297, allocations: 18.31 MB / 0.7048 GB, free: 79.58 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1446/2.442, allocations: 82.18 MB / 0.7851 GB, free: 40.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02959/2.471, allocations: 7.363 MB / 0.7923 GB, free: 37.64 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04685/2.518, allocations: 18.22 MB / 0.8101 GB, free: 21.78 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.01e-05/2.518, allocations: 68.03 kB / 0.8101 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=332): time 7.093e-06/2.518, allocations: 0 / 0.8101 GB, free: 21.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=413): time 0.5911/3.109, allocations: 36.21 MB / 0.8455 GB, free: 93.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.561e-05/3.11, allocations: 193.9 kB / 0.8457 GB, free: 92.95 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/3.127, allocations: 5.808 MB / 0.8514 GB, free: 92.46 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001008/3.128, allocations: 87.28 kB / 0.8514 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005063/3.133, allocations: 5.251 MB / 0.8566 GB, free: 90.03 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002628/3.135, allocations: 1.523 MB / 0.858 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/3.137, allocations: 206.6 kB / 0.8582 GB, free: 89.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008738/3.138, allocations: 0.7538 MB / 0.859 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/3.15, allocations: 4.186 MB / 0.8631 GB, free: 88.83 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.016/3.166, allocations: 10 MB / 0.8728 GB, free: 81.41 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01581/3.181, allocations: 6.34 MB / 0.879 GB, free: 81.35 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002626/3.182, allocations: 56.44 kB / 0.8791 GB, free: 81.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.05213/3.234, allocations: 15.74 MB / 0.8945 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001674/3.234, allocations: 93.5 kB / 0.8945 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003316/3.235, allocations: 207.9 kB / 0.8947 GB, free: 80.44 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01383/3.248, allocations: 2.353 MB / 0.897 GB, free: 80.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/3.264, allocations: 2.443 MB / 0.8994 GB, free: 80.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03204/3.296, allocations: 12 MB / 0.9111 GB, free: 76.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01308/3.309, allocations: 0.693 MB / 0.9118 GB, free: 75.98 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002491/3.312, allocations: 0.5862 MB / 0.9124 GB, free: 75.89 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1269): * Single equations (assignments): 1262 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.0109/3.323, allocations: 3.755 MB / 0.9161 GB, free: 74.19 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001776/3.325, allocations: 0.5917 MB / 0.9166 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02817/3.353, allocations: 8.168 MB / 0.9246 GB, free: 70.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001214/3.353, allocations: 64.94 kB / 0.9247 GB, free: 70.92 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/3.353, allocations: 9.719 kB / 0.9247 GB, free: 70.92 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.732e-05/3.353, allocations: 20.22 kB / 0.9247 GB, free: 70.92 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05708/3.41, allocations: 18.82 MB / 0.9431 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.467e-05/3.41, allocations: 13.16 kB / 0.9431 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005659/3.416, allocations: 0.6411 MB / 0.9437 GB, free: 63.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01214/3.428, allocations: 1.905 MB / 0.9456 GB, free: 63.17 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008108/3.429, allocations: 77.3 kB / 0.9457 GB, free: 63.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02644/3.455, allocations: 10.34 MB / 0.9558 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/3.456, allocations: 23.7 kB / 0.9558 GB, free: 55.19 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03499/3.491, allocations: 14.29 MB / 0.9697 GB, free: 42.08 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004464/3.495, allocations: 1.163 MB / 0.9709 GB, free: 40.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002347/3.497, allocations: 76.28 kB / 0.9709 GB, free: 40.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006613/3.504, allocations: 260.2 kB / 0.9712 GB, free: 40.76 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001438/3.506, allocations: 260.2 kB / 0.9714 GB, free: 40.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004143/3.506, allocations: 113.4 kB / 0.9716 GB, free: 40.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01175/3.518, allocations: 4.068 MB / 0.9755 GB, free: 37.17 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.92e-07/3.518, allocations: 3.938 kB / 0.9755 GB, free: 37.17 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01547/3.533, allocations: 1.935 MB / 0.9774 GB, free: 35.25 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * 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 (324): * Single equations (assignments): 317 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.05102/3.584, allocations: 17.22 MB / 0.9942 GB, free: 19.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02987/3.614, allocations: 9.844 MB / 1.004 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.616e-05/3.614, allocations: 0 / 1.004 GB, free: 10.67 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008512/3.623, allocations: 3.323 MB / 1.007 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006837/3.63, allocations: 0.7225 MB / 1.008 GB, free: 7.07 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5123/4.142, allocations: 177 MB / 1.181 GB, free: 39.33 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01948/4.162, allocations: 5.754 MB / 1.186 GB, free: 38.43 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01319/4.175, allocations: 3.754 MB / 1.19 GB, free: 38.42 MB / 0.6042 GB Notification: Performance of SimCode: time 1.513e-06/4.175, allocations: 0 / 1.19 GB, free: 38.42 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.887/10.06, allocations: 181.1 MB / 1.367 GB, free: 188.5 MB / 0.6042 GB