Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.184/2.184, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/2e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2673, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1492/0.4165, allocations: 99.49 MB / 457.5 MB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4168, allocations: 75.95 kB / 457.6 MB, free: 11.24 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5583/0.9751, allocations: 92.9 MB / 0.5376 GB, free: 30.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.694e-06/0.9751, allocations: 4 kB / 0.5376 GB, free: 30.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002472/0.9754, allocations: 84 kB / 0.5377 GB, free: 30.59 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01297/0.9883, allocations: 4.608 MB / 0.5422 GB, free: 25.91 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.9884, allocations: 8.031 kB / 0.5422 GB, free: 25.9 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03282/1.021, allocations: 6.741 MB / 0.5488 GB, free: 19.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/1.038, allocations: 6.29 MB / 0.5549 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/1.038, allocations: 140 kB / 0.5551 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001569/1.04, allocations: 260.3 kB / 0.5553 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01261/1.053, allocations: 6.588 MB / 0.5617 GB, free: 5.805 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01939/1.072, allocations: 9.562 MB / 0.5711 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002302/1.072, allocations: 71.39 kB / 0.5711 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007208/1.073, allocations: 32 kB / 0.5712 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001824/1.075, allocations: 1.011 MB / 0.5722 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0665/1.141, allocations: 45.93 MB / 0.617 GB, free: 10.73 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005551/1.147, allocations: 3.078 MB / 0.62 GB, free: 7.508 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003256/1.15, allocations: 1.725 MB / 0.6217 GB, free: 5.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002453/1.153, allocations: 1.925 MB / 0.6236 GB, free: 3.531 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.042e-05/1.153, allocations: 55.81 kB / 0.6236 GB, free: 3.469 MB / 458.7 MB Notification: Performance of pre-optimization done (n=186): time 5.69e-06/1.153, allocations: 0 / 0.6236 GB, free: 3.469 MB / 458.7 MB Notification: Performance of matching and sorting (n=242): time 0.346/1.499, allocations: 26.23 MB / 0.6493 GB, free: 103.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.604e-05/1.499, allocations: 209 kB / 0.6495 GB, free: 103.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005955/1.505, allocations: 3.27 MB / 0.6526 GB, free: 103.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005263/1.505, allocations: 29.17 kB / 0.6527 GB, free: 103.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002142/1.508, allocations: 3.204 MB / 0.6558 GB, free: 101.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/1.509, allocations: 0.869 MB / 0.6567 GB, free: 101 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006315/1.509, allocations: 0 / 0.6567 GB, free: 101 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004156/1.51, allocations: 0.589 MB / 0.6572 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005891/1.516, allocations: 3.304 MB / 0.6605 GB, free: 100.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008008/1.524, allocations: 7.032 MB / 0.6673 GB, free: 95.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00828/1.532, allocations: 4.715 MB / 0.6719 GB, free: 93.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001136/1.532, allocations: 40.69 kB / 0.672 GB, free: 93.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=852) (initialization): time 0.04505/1.577, allocations: 14.55 MB / 0.6862 GB, free: 89.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/1.578, allocations: 64.09 kB / 0.6862 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001402/1.578, allocations: 133.6 kB / 0.6864 GB, free: 89.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03135/1.609, allocations: 5.926 MB / 0.6922 GB, free: 88.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006059/1.615, allocations: 1.485 MB / 0.6936 GB, free: 87.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03596/1.651, allocations: 22.88 MB / 0.7159 GB, free: 67.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006779/1.658, allocations: 279.3 kB / 0.7162 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/1.659, allocations: 392.9 kB / 0.7166 GB, free: 66.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (775): * Single equations (assignments): 770 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001315/1.661, allocations: 452.9 kB / 0.717 GB, free: 66.19 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009058/1.662, allocations: 375.2 kB / 0.7174 GB, free: 65.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03168/1.693, allocations: 10.56 MB / 0.7277 GB, free: 56.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.579e-05/1.693, allocations: 29.17 kB / 0.7277 GB, free: 56.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-05/1.693, allocations: 8 kB / 0.7277 GB, free: 56.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.485e-05/1.693, allocations: 16.72 kB / 0.7277 GB, free: 56.69 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04866/1.742, allocations: 19.45 MB / 0.7467 GB, free: 36.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-05/1.742, allocations: 8 kB / 0.7467 GB, free: 36.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002378/1.745, allocations: 390.4 kB / 0.7471 GB, free: 36.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02401/1.769, allocations: 4.977 MB / 0.752 GB, free: 31.45 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005174/1.769, allocations: 12 kB / 0.752 GB, free: 31.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03407/1.803, allocations: 18.45 MB / 0.77 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/1.803, allocations: 7.938 kB / 0.77 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03824/1.842, allocations: 14.36 MB / 0.784 GB, free: 14.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00296/1.845, allocations: 0.9257 MB / 0.7849 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/1.846, allocations: 8 kB / 0.7849 GB, free: 13.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/1.849, allocations: 135.8 kB / 0.7851 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008714/1.85, allocations: 161 kB / 0.7852 GB, free: 12.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003505/1.85, allocations: 63.98 kB / 0.7853 GB, free: 12.84 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005424/1.856, allocations: 2.206 MB / 0.7874 GB, free: 10.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.319e-06/1.856, allocations: 3.844 kB / 0.7874 GB, free: 10.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00847/1.864, allocations: 1.166 MB / 0.7886 GB, free: 9.457 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 168 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008774/1.865, allocations: 151.8 kB / 0.7887 GB, free: 9.309 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01589/1.881, allocations: 7.643 MB / 0.7962 GB, free: 1.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.933e-06/1.881, allocations: 0 / 0.7962 GB, free: 1.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006359/1.887, allocations: 3.042 MB / 0.7992 GB, free: 14.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003013/1.891, allocations: 408.3 kB / 0.7996 GB, free: 14.24 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2873/2.178, allocations: 10.34 MB / 0.8097 GB, free: 129.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005538/2.183, allocations: 3.604 MB / 0.8132 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/2.185, allocations: 298.7 kB / 0.8135 GB, free: 129.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.858e-06/2.185, allocations: 0 / 0.8135 GB, free: 129.1 MB / 490.7 MB Notification: Performance of Templates: time 0.139/2.324, allocations: 102.3 MB / 0.9134 GB, free: 64.05 MB / 490.7 MB