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.SphericalAndUniversal.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004481, allocations: 12 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3251, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.06895/0.3941, allocations: 51.11 MB / 420.3 MB, free: 7.469 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03142/0.4256, allocations: 12.43 MB / 432.7 MB, free: 11 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0101/0.4357, allocations: 263.2 kB / 433 MB, free: 10.75 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008173/0.444, allocations: 2.601 MB / 435.6 MB, free: 8.133 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02532/0.4693, allocations: 7.422 MB / 443 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.4743, allocations: 0.8971 MB / 443.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03909/0.5135, allocations: 18.43 MB / 462.3 MB, free: 13.34 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0104/0.5239, allocations: 5.514 MB / 467.8 MB, free: 7.766 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002894/0.5268, allocations: 1.363 MB / 469.2 MB, free: 6.398 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003408/0.5303, allocations: 1.826 MB / 471 MB, free: 4.566 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007759/0.5311, allocations: 172 kB / 471.2 MB, free: 4.398 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002753/0.5339, allocations: 1.104 MB / 472.3 MB, free: 3.293 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002848/0.5367, allocations: 1.999 MB / 474.3 MB, free: 1.289 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001486/0.5382, allocations: 1.034 MB / 475.3 MB, free: 252 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3308/0.869, allocations: 6.923 MB / 482.3 MB, free: 24.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.831e-06/0.8691, allocations: 0 / 482.3 MB, free: 24.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.352e-06/0.8691, allocations: 2.156 kB / 482.3 MB, free: 24.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002924/0.8694, allocations: 1.641 kB / 482.3 MB, free: 24.38 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: 1726 * Number of variables: 1726 Notification: Performance of Generate backend data structure: time 0.01696/0.8864, allocations: 5.584 MB / 487.8 MB, free: 22.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.8864, allocations: 11.56 kB / 487.9 MB, free: 22.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05979/0.9462, allocations: 7.952 MB / 495.8 MB, free: 21.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02089/0.9672, allocations: 4.501 MB / 0.4886 GB, free: 19.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004908/0.9678, allocations: 288.7 kB / 0.4889 GB, free: 19.76 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002459/0.9702, allocations: 389 kB / 0.4892 GB, free: 19.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04997/1.02, allocations: 12.08 MB / 0.501 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003093/1.021, allocations: 61.91 kB / 0.5011 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001263/1.022, allocations: 179.7 kB / 0.5013 GB, free: 15.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003608/1.026, allocations: 2.073 MB / 0.5033 GB, free: 15.29 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0402/1.066, allocations: 10.31 MB / 0.5133 GB, free: 9.328 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/1.171, allocations: 47.39 MB / 0.5596 GB, free: 1.691 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02074/1.192, allocations: 5.873 MB / 0.5654 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01973/1.211, allocations: 8.852 MB / 0.574 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.685e-05/1.212, allocations: 56.5 kB / 0.5741 GB, free: 6.805 MB / 442.7 MB Notification: Performance of pre-optimization done (n=206): time 6.767e-06/1.212, allocations: 0 / 0.5741 GB, free: 6.805 MB / 442.7 MB Notification: Performance of matching and sorting (n=262): time 0.1712/1.383, allocations: 35.61 MB / 0.6088 GB, free: 3.375 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/1.383, allocations: 209.9 kB / 0.609 GB, free: 3.129 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01189/1.395, allocations: 5.129 MB / 0.614 GB, free: 14 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006292/1.395, allocations: 65.7 kB / 0.6141 GB, free: 13.93 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004131/1.4, allocations: 3.426 MB / 0.6174 GB, free: 10.53 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.401, allocations: 0.9685 MB / 0.6184 GB, free: 9.566 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009653/1.402, allocations: 132 kB / 0.6185 GB, free: 9.438 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008892/1.403, allocations: 0.5918 MB / 0.6191 GB, free: 8.836 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00746/1.411, allocations: 2.996 MB / 0.622 GB, free: 5.836 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/1.425, allocations: 6.8 MB / 0.6287 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01546/1.441, allocations: 4.409 MB / 0.633 GB, free: 8.953 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001887/1.441, allocations: 40 kB / 0.633 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of matching and sorting (n=869) (initialization): time 0.06187/1.503, allocations: 12.95 MB / 0.6456 GB, free: 12.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001999/1.503, allocations: 60.22 kB / 0.6457 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003745/1.504, allocations: 143.9 kB / 0.6458 GB, free: 12.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02933/1.533, allocations: 4.245 MB / 0.65 GB, free: 8.336 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01138/1.544, allocations: 1.407 MB / 0.6514 GB, free: 7.055 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3397/1.884, allocations: 27.39 MB / 0.6781 GB, free: 189.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007001/1.891, allocations: 399.5 kB / 0.6785 GB, free: 189.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001492/1.893, allocations: 411.3 kB / 0.6789 GB, free: 189.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (753): * Single equations (assignments): 747 * 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.006226/1.899, allocations: 2.449 MB / 0.6813 GB, free: 188.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.9, allocations: 448.4 kB / 0.6817 GB, free: 188.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0218/1.922, allocations: 8.231 MB / 0.6897 GB, free: 185.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.287e-05/1.922, allocations: 28 kB / 0.6898 GB, free: 185.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.002e-05/1.922, allocations: 13.25 kB / 0.6898 GB, free: 185.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.804e-05/1.922, allocations: 11.11 kB / 0.6898 GB, free: 185.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04024/1.962, allocations: 16.89 MB / 0.7063 GB, free: 171 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-05/1.962, allocations: 4 kB / 0.7063 GB, free: 171 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001835/1.964, allocations: 299.7 kB / 0.7066 GB, free: 170.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01355/1.978, allocations: 3.941 MB / 0.7104 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005826/1.979, allocations: 49.02 kB / 0.7105 GB, free: 166.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04249/2.021, allocations: 26.2 MB / 0.7361 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.684e-06/2.021, allocations: 14.16 kB / 0.7361 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02574/2.047, allocations: 12.1 MB / 0.7479 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003118/2.05, allocations: 0.9677 MB / 0.7488 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001436/2.052, allocations: 48 kB / 0.7489 GB, free: 127.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00356/2.055, allocations: 167.8 kB / 0.749 GB, free: 127.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/2.056, allocations: 193.6 kB / 0.7492 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003674/2.057, allocations: 68 kB / 0.7493 GB, free: 126.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007004/2.064, allocations: 3.305 MB / 0.7525 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.507e-06/2.064, allocations: 0 / 0.7525 GB, free: 123.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008676/2.072, allocations: 1.444 MB / 0.7539 GB, free: 122.1 MB / 0.5105 GB 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 (158): * Single equations (assignments): 152 * 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.0009658/2.073, allocations: 206.3 kB / 0.7541 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01595/2.089, allocations: 8.105 MB / 0.762 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/2.089, allocations: 2.969 kB / 0.762 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007396/2.097, allocations: 3.512 MB / 0.7655 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/2.101, allocations: 0.5489 MB / 0.766 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0287/2.129, allocations: 14.92 MB / 0.7806 GB, free: 94.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0082/2.138, allocations: 4.028 MB / 0.7845 GB, free: 90.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001511/2.139, allocations: 335.4 kB / 0.7848 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of SimCode: time 1.8e-06/2.139, allocations: 0 / 0.7848 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of Templates: time 0.4579/2.597, allocations: 135.5 MB / 0.9171 GB, free: 153.3 MB / 0.5105 GB