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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 2.064/2.064, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.0004322, allocations: 8 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2874, allocations: 48.71 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.07146/0.3589, allocations: 51.07 MB / 382.3 MB, free: 11.35 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03327/0.3922, allocations: 12.4 MB / 394.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01146/0.4037, allocations: 263.3 kB / 394.9 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008401/0.4122, allocations: 2.601 MB / 397.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02563/0.4378, allocations: 7.422 MB / 404.9 MB, free: 4.598 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004329/0.4422, allocations: 0.9205 MB / 405.9 MB, free: 3.676 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03916/0.4814, allocations: 18.4 MB / 424.3 MB, free: 1.254 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01059/0.492, allocations: 5.51 MB / 429.8 MB, free: 11.68 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00313/0.4952, allocations: 1.363 MB / 431.1 MB, free: 10.31 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003626/0.4989, allocations: 1.819 MB / 433 MB, free: 8.488 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009302/0.4999, allocations: 176 kB / 433.1 MB, free: 8.316 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/0.5028, allocations: 1.104 MB / 434.2 MB, free: 7.211 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003132/0.506, allocations: 2.003 MB / 436.2 MB, free: 5.203 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.5077, allocations: 1.03 MB / 437.3 MB, free: 4.164 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0105/0.5182, allocations: 6.921 MB / 444.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.878e-06/0.5182, allocations: 0 / 444.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.727e-06/0.5183, allocations: 0 / 444.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001749/0.5184, allocations: 0 / 444.2 MB, free: 13.23 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.01624/0.5347, allocations: 5.588 MB / 449.8 MB, free: 7.562 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.5347, allocations: 11.97 kB / 449.8 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0527/0.5875, allocations: 7.95 MB / 457.7 MB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.5996, allocations: 4.498 MB / 462.2 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000383/0.6001, allocations: 283.2 kB / 462.5 MB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001468/0.6015, allocations: 387.6 kB / 462.9 MB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2567/0.8583, allocations: 12.06 MB / 474.9 MB, free: 114.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002311/0.8585, allocations: 59.34 kB / 475 MB, free: 114.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009206/0.8595, allocations: 178.9 kB / 475.2 MB, free: 114 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003884/0.8634, allocations: 2.078 MB / 477.3 MB, free: 113.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.8895, allocations: 10.3 MB / 487.6 MB, free: 109.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06208/0.9516, allocations: 47.34 MB / 0.5224 GB, free: 67.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/0.9698, allocations: 5.872 MB / 0.5281 GB, free: 61.45 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01563/0.9855, allocations: 8.87 MB / 0.5368 GB, free: 52.49 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.9855, allocations: 51.88 kB / 0.5368 GB, free: 52.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=206): time 6.624e-06/0.9856, allocations: 4 kB / 0.5368 GB, free: 52.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=262): time 0.1468/1.132, allocations: 35.6 MB / 0.5716 GB, free: 16.74 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/1.133, allocations: 217.8 kB / 0.5718 GB, free: 16.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008562/1.141, allocations: 5.137 MB / 0.5768 GB, free: 11.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005295/1.142, allocations: 61.7 kB / 0.5769 GB, free: 11.28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/1.144, allocations: 3.426 MB / 0.5802 GB, free: 7.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/1.145, allocations: 0.9626 MB / 0.5812 GB, free: 6.902 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005441/1.146, allocations: 135.8 kB / 0.5813 GB, free: 6.773 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003537/1.146, allocations: 0.5917 MB / 0.5819 GB, free: 6.172 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005669/1.152, allocations: 3.005 MB / 0.5848 GB, free: 3.164 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00954/1.161, allocations: 6.79 MB / 0.5914 GB, free: 10.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009662/1.171, allocations: 4.416 MB / 0.5957 GB, free: 6.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/1.171, allocations: 40 kB / 0.5958 GB, free: 6.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=869) (initialization): time 0.03664/1.208, allocations: 12.94 MB / 0.6084 GB, free: 9.094 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/1.208, allocations: 63.98 kB / 0.6085 GB, free: 9.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002114/1.208, allocations: 132.8 kB / 0.6086 GB, free: 8.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01654/1.225, allocations: 4.251 MB / 0.6128 GB, free: 4.637 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006123/1.231, allocations: 1.404 MB / 0.6141 GB, free: 3.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2906/1.522, allocations: 27.39 MB / 0.6409 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006873/1.529, allocations: 399.7 kB / 0.6413 GB, free: 117.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.53, allocations: 405.5 kB / 0.6416 GB, free: 117.5 MB / 426.7 MB 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.005349/1.535, allocations: 2.463 MB / 0.6441 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.536, allocations: 445 kB / 0.6445 GB, free: 116.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02193/1.558, allocations: 8.22 MB / 0.6525 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.765e-05/1.558, allocations: 29.03 kB / 0.6525 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.245e-05/1.558, allocations: 14.62 kB / 0.6525 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.096e-05/1.558, allocations: 11.58 kB / 0.6526 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03977/1.598, allocations: 16.87 MB / 0.669 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.57e-05/1.598, allocations: 7.656 kB / 0.669 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/1.6, allocations: 303.5 kB / 0.6693 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/1.614, allocations: 3.939 MB / 0.6732 GB, free: 96.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005381/1.614, allocations: 55.88 kB / 0.6732 GB, free: 96.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04411/1.658, allocations: 26.19 MB / 0.6988 GB, free: 70.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.679e-06/1.658, allocations: 7.938 kB / 0.6988 GB, free: 70.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02552/1.684, allocations: 12.09 MB / 0.7106 GB, free: 58.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002724/1.687, allocations: 0.9722 MB / 0.7116 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/1.688, allocations: 47.98 kB / 0.7116 GB, free: 57.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003304/1.691, allocations: 167.8 kB / 0.7118 GB, free: 56.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001042/1.692, allocations: 193.7 kB / 0.712 GB, free: 56.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003352/1.693, allocations: 73.62 kB / 0.712 GB, free: 56.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006389/1.699, allocations: 3.308 MB / 0.7153 GB, free: 53.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.017e-06/1.699, allocations: 0 / 0.7153 GB, free: 53.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007776/1.707, allocations: 1.45 MB / 0.7167 GB, free: 51.99 MB / 426.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 (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.0008588/1.708, allocations: 203.1 kB / 0.7169 GB, free: 51.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01568/1.723, allocations: 8.107 MB / 0.7248 GB, free: 43.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/1.723, allocations: 6.312 kB / 0.7248 GB, free: 43.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007372/1.731, allocations: 3.511 MB / 0.7282 GB, free: 40.17 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003593/1.734, allocations: 0.5473 MB / 0.7288 GB, free: 39.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02606/1.761, allocations: 14.92 MB / 0.7433 GB, free: 24.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007185/1.768, allocations: 4.031 MB / 0.7473 GB, free: 20.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/1.769, allocations: 327.4 kB / 0.7476 GB, free: 20.28 MB / 426.7 MB Notification: Performance of SimCode: time 1.771e-06/1.769, allocations: 0 / 0.7476 GB, free: 20.28 MB / 426.7 MB Notification: Performance of Templates: time 0.4288/2.198, allocations: 135.4 MB / 0.8798 GB, free: 51.21 MB / 442.7 MB