Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 1.96/1.96, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.914e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.266, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.407, allocations: 93.57 MB / 413.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.4073, allocations: 71.97 kB / 413.6 MB, free: 2.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5679/0.9752, allocations: 100.9 MB / 0.5024 GB, free: 58.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.771e-06/0.9752, allocations: 3.938 kB / 0.5024 GB, free: 58.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003059/0.9756, allocations: 111.4 kB / 0.5026 GB, free: 58.37 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1723 * Number of variables: 1723 Notification: Performance of Generate backend data structure: time 0.01572/0.9913, allocations: 5.188 MB / 0.5076 GB, free: 53.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.9914, allocations: 12.03 kB / 0.5076 GB, free: 53.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03313/1.025, allocations: 6.889 MB / 0.5144 GB, free: 46.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02/1.045, allocations: 7.462 MB / 0.5216 GB, free: 38.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002671/1.045, allocations: 160 kB / 0.5218 GB, free: 38.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001899/1.047, allocations: 291.9 kB / 0.5221 GB, free: 38.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01446/1.061, allocations: 7.039 MB / 0.529 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02213/1.083, allocations: 10.79 MB / 0.5395 GB, free: 19.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000302/1.084, allocations: 67.31 kB / 0.5396 GB, free: 19.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001573/1.085, allocations: 39.95 kB / 0.5396 GB, free: 19.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001742/1.087, allocations: 1.141 MB / 0.5407 GB, free: 18.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3503/1.437, allocations: 53.9 MB / 0.5933 GB, free: 59.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006671/1.444, allocations: 4.335 MB / 0.5976 GB, free: 59.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00405/1.448, allocations: 2.741 MB / 0.6003 GB, free: 59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007326/1.449, allocations: 0.5663 MB / 0.6008 GB, free: 58.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/1.449, allocations: 62.52 kB / 0.6009 GB, free: 58.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=213): time 6.939e-06/1.449, allocations: 0 / 0.6009 GB, free: 58.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=272): time 0.08247/1.532, allocations: 27.01 MB / 0.6272 GB, free: 55.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/1.532, allocations: 215.8 kB / 0.6274 GB, free: 55.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006784/1.539, allocations: 3.591 MB / 0.631 GB, free: 53.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005614/1.539, allocations: 29.67 kB / 0.631 GB, free: 53.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00242/1.542, allocations: 3.523 MB / 0.6344 GB, free: 51.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001209/1.543, allocations: 0.9717 MB / 0.6354 GB, free: 50.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005817/1.543, allocations: 0 / 0.6354 GB, free: 50.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004241/1.544, allocations: 0.602 MB / 0.636 GB, free: 49.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005233/1.549, allocations: 2.887 MB / 0.6388 GB, free: 48.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007292/1.556, allocations: 6.776 MB / 0.6454 GB, free: 42.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007767/1.564, allocations: 4.377 MB / 0.6497 GB, free: 41.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/1.564, allocations: 39.19 kB / 0.6497 GB, free: 41.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.02905/1.593, allocations: 11.99 MB / 0.6614 GB, free: 32.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/1.594, allocations: 64 kB / 0.6615 GB, free: 32.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001484/1.594, allocations: 140 kB / 0.6616 GB, free: 32.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01382/1.608, allocations: 3.969 MB / 0.6655 GB, free: 29.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005563/1.613, allocations: 1.469 MB / 0.6669 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03948/1.653, allocations: 24.34 MB / 0.6907 GB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006855/1.66, allocations: 268.9 kB / 0.6909 GB, free: 6.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/1.661, allocations: 418.3 kB / 0.6913 GB, free: 5.957 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * Number of states: 0 () * Number of discrete variables: 39 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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],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 (791): * Single equations (assignments): 785 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 50,(2,100.0%) 12} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.001562/1.663, allocations: 451.5 kB / 0.6918 GB, free: 5.512 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001001/1.664, allocations: 414.8 kB / 0.6922 GB, free: 5.102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02102/1.685, allocations: 7.852 MB / 0.6998 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.356e-05/1.685, allocations: 35.66 kB / 0.6999 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.55e-05/1.685, allocations: 12 kB / 0.6999 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.331e-05/1.685, allocations: 14.92 kB / 0.6999 GB, free: 15.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04294/1.728, allocations: 15.76 MB / 0.7153 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.498e-05/1.728, allocations: 8 kB / 0.7153 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/1.73, allocations: 315.5 kB / 0.7156 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/1.745, allocations: 3.657 MB / 0.7192 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005699/1.746, allocations: 15.98 kB / 0.7192 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04535/1.791, allocations: 23.08 MB / 0.7417 GB, free: 4.188 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.701e-05/1.791, allocations: 11.95 kB / 0.7417 GB, free: 4.176 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02902/1.82, allocations: 12.3 MB / 0.7537 GB, free: 7.543 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003037/1.823, allocations: 0.9133 MB / 0.7546 GB, free: 6.605 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.824, allocations: 8 kB / 0.7546 GB, free: 6.598 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003197/1.827, allocations: 127.8 kB / 0.7548 GB, free: 6.473 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/1.828, allocations: 198.1 kB / 0.755 GB, free: 6.281 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003432/1.829, allocations: 75.94 kB / 0.755 GB, free: 6.207 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006203/1.835, allocations: 2.443 MB / 0.7574 GB, free: 3.762 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.133e-06/1.835, allocations: 4 kB / 0.7574 GB, free: 3.758 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009288/1.844, allocations: 1.234 MB / 0.7586 GB, free: 2.531 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 (168): * 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): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,50.0%) 43,(2,100.0%) 9} * Non-linear torn systems: 1 {2 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008941/1.845, allocations: 155.6 kB / 0.7588 GB, free: 2.379 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01797/1.863, allocations: 7.745 MB / 0.7663 GB, free: 10.61 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.844e-06/1.863, allocations: 4 kB / 0.7663 GB, free: 10.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008066/1.871, allocations: 3.37 MB / 0.7696 GB, free: 7.211 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003685/1.875, allocations: 468.5 kB / 0.7701 GB, free: 6.766 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3044/2.18, allocations: 10.83 MB / 0.7807 GB, free: 157.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008823/2.189, allocations: 4.042 MB / 0.7846 GB, free: 156.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/2.19, allocations: 316 kB / 0.7849 GB, free: 156.8 MB / 490.7 MB Notification: Performance of SimCode: time 2e-06/2.19, allocations: 0 / 0.7849 GB, free: 156.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1738/2.364, allocations: 132.5 MB / 0.9143 GB, free: 64.73 MB / 490.7 MB