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.SphericalSpherical.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: 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.609/2.609, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007656/0.0007658, allocations: 16 kB / 314.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.4214, allocations: 54.85 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.6109, allocations: 100.2 MB / 470 MB, free: 6.355 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.6113, allocations: 83.95 kB / 470.1 MB, free: 6.273 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7774/1.389, allocations: 95.51 MB / 0.5524 GB, free: 19.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.389, allocations: 0 / 0.5524 GB, free: 19.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003226/1.389, allocations: 88 kB / 0.5525 GB, free: 19.72 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.0205/1.41, allocations: 5.019 MB / 0.5574 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/1.41, allocations: 8.031 kB / 0.5574 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04727/1.457, allocations: 6.722 MB / 0.5639 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02214/1.479, allocations: 6.336 MB / 0.5701 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004046/1.48, allocations: 324.6 kB / 0.5704 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002455/1.482, allocations: 459.6 kB / 0.5709 GB, free: 0.707 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04429/1.526, allocations: 11.08 MB / 0.5817 GB, free: 4.602 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003581/1.527, allocations: 63.36 kB / 0.5817 GB, free: 4.539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002173/1.529, allocations: 211.9 kB / 0.5819 GB, free: 4.332 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/1.532, allocations: 1.018 MB / 0.5829 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03371/1.565, allocations: 9.291 MB / 0.592 GB, free: 9.992 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08881/1.654, allocations: 47.56 MB / 0.6385 GB, free: 8.891 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02012/1.675, allocations: 4.13 MB / 0.6425 GB, free: 4.613 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3784/2.053, allocations: 7.491 MB / 0.6498 GB, free: 113.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.905e-05/2.053, allocations: 59.67 kB / 0.6499 GB, free: 113.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=180): time 9.227e-06/2.053, allocations: 0 / 0.6499 GB, free: 113.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=236): time 0.4137/2.467, allocations: 41.27 MB / 0.6902 GB, free: 110.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/2.467, allocations: 210.9 kB / 0.6904 GB, free: 110.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01013/2.477, allocations: 4.26 MB / 0.6945 GB, free: 110.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007363/2.478, allocations: 59.11 kB / 0.6946 GB, free: 110.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002962/2.481, allocations: 3.111 MB / 0.6976 GB, free: 108.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001633/2.483, allocations: 0.8816 MB / 0.6985 GB, free: 108.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/2.484, allocations: 126 kB / 0.6986 GB, free: 108.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004787/2.484, allocations: 0.5779 MB / 0.6992 GB, free: 108 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008198/2.492, allocations: 3.419 MB / 0.7025 GB, free: 107 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01077/2.503, allocations: 7.044 MB / 0.7094 GB, free: 100.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/2.514, allocations: 4.77 MB / 0.714 GB, free: 97.17 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001544/2.514, allocations: 36 kB / 0.7141 GB, free: 97.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.0644/2.579, allocations: 15.28 MB / 0.729 GB, free: 85.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/2.579, allocations: 60 kB / 0.7291 GB, free: 85.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/2.579, allocations: 131.8 kB / 0.7292 GB, free: 85.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04186/2.621, allocations: 5.938 MB / 0.735 GB, free: 80.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008973/2.63, allocations: 1.427 MB / 0.7364 GB, free: 79.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0538/2.684, allocations: 25.7 MB / 0.7615 GB, free: 53.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008755/2.693, allocations: 393 kB / 0.7618 GB, free: 52.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001746/2.695, allocations: 379.8 kB / 0.7622 GB, free: 52.31 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 738 * 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.007172/2.702, allocations: 2.218 MB / 0.7644 GB, free: 50.09 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/2.703, allocations: 398.8 kB / 0.7648 GB, free: 49.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05185/2.755, allocations: 10.82 MB / 0.7753 GB, free: 38.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-05/2.755, allocations: 24 kB / 0.7753 GB, free: 38.82 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/2.755, allocations: 8 kB / 0.7754 GB, free: 38.81 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-05/2.755, allocations: 15.95 kB / 0.7754 GB, free: 38.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07542/2.831, allocations: 20.19 MB / 0.7951 GB, free: 18.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-05/2.831, allocations: 4 kB / 0.7951 GB, free: 18.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003759/2.835, allocations: 379.4 kB / 0.7955 GB, free: 17.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03729/2.872, allocations: 5 MB / 0.8003 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007133/2.873, allocations: 47.98 kB / 0.8004 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0501/2.923, allocations: 20.87 MB / 0.8208 GB, free: 7.586 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/2.923, allocations: 4 kB / 0.8208 GB, free: 7.582 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4327/3.356, allocations: 13.97 MB / 0.8344 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003745/3.359, allocations: 0.9567 MB / 0.8353 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001994/3.361, allocations: 41.09 kB / 0.8354 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005189/3.367, allocations: 165.1 kB / 0.8355 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/3.368, allocations: 158.8 kB / 0.8357 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004141/3.368, allocations: 62.81 kB / 0.8358 GB, free: 116.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007872/3.376, allocations: 2.676 MB / 0.8384 GB, free: 116.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/3.376, allocations: 0 / 0.8384 GB, free: 116.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009112/3.385, allocations: 1.324 MB / 0.8397 GB, free: 116.8 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 162 * 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.001166/3.387, allocations: 195.9 kB / 0.8398 GB, free: 116.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01852/3.405, allocations: 7.947 MB / 0.8476 GB, free: 116.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/3.405, allocations: 6.969 kB / 0.8476 GB, free: 116.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00763/3.413, allocations: 3.116 MB / 0.8507 GB, free: 116.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004788/3.418, allocations: 499.5 kB / 0.8511 GB, free: 116.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03422/3.452, allocations: 13.94 MB / 0.8647 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008615/3.461, allocations: 3.613 MB / 0.8683 GB, free: 109.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/3.463, allocations: 302.6 kB / 0.8686 GB, free: 109.1 MB / 490.7 MB Notification: Performance of SimCode: time 1.463e-06/3.463, allocations: 0 / 0.8686 GB, free: 109.1 MB / 490.7 MB Notification: Performance of Templates: time 0.1995/3.662, allocations: 104.3 MB / 0.9705 GB, free: 29.72 MB / 490.7 MB