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.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadModel(ModelicaTest): time 1.965/1.965, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004351/0.0004354, allocations: 12 kB / 282.5 MB, free: 9.633 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2845, allocations: 48.7 MB / 331.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.05655/0.3411, allocations: 43.89 MB / 375.1 MB, free: 2.523 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02942/0.3705, allocations: 10.74 MB / 385.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009988/0.3806, allocations: 219.4 kB / 386 MB, free: 7.539 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007536/0.3881, allocations: 2.224 MB / 388.3 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0233/0.4115, allocations: 6.475 MB / 394.7 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004052/0.4156, allocations: 0.8659 MB / 395.6 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03999/0.4556, allocations: 18.65 MB / 414.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00977/0.4655, allocations: 5.077 MB / 419.3 MB, free: 6.121 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003727/0.4692, allocations: 1.581 MB / 420.9 MB, free: 4.535 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00456/0.4738, allocations: 2.286 MB / 423.2 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.4753, allocations: 240 kB / 423.4 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.4788, allocations: 1.163 MB / 424.6 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003889/0.4827, allocations: 2.396 MB / 427 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.485, allocations: 1.201 MB / 428.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.4979, allocations: 8.137 MB / 436.3 MB, free: 5.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.247e-06/0.4979, allocations: 0 / 436.3 MB, free: 5.074 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.294e-06/0.4979, allocations: 0 / 436.3 MB, free: 5.074 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002412/0.4982, allocations: 0 / 436.3 MB, free: 5.074 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2238 * Number of variables: 2238 Notification: Performance of Generate backend data structure: time 0.01826/0.5164, allocations: 6.523 MB / 442.8 MB, free: 14.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.5165, allocations: 8.031 kB / 442.9 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06223/0.5788, allocations: 9.723 MB / 452.6 MB, free: 4.715 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01341/0.5922, allocations: 4.682 MB / 457.3 MB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004586/0.5927, allocations: 323.9 kB / 457.6 MB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001959/0.5947, allocations: 427.6 kB / 458 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.268/0.8627, allocations: 15.8 MB / 473.8 MB, free: 109.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002116/0.863, allocations: 57.12 kB / 473.9 MB, free: 109.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001096/0.8641, allocations: 208.6 kB / 474.1 MB, free: 109.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005949/0.8701, allocations: 3.152 MB / 477.2 MB, free: 109.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03427/0.9044, allocations: 14.08 MB / 491.3 MB, free: 104.1 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07868/0.9831, allocations: 57.45 MB / 0.5359 GB, free: 49.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0175/1.001, allocations: 6.597 MB / 0.5423 GB, free: 43.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0274/1.028, allocations: 14.56 MB / 0.5565 GB, free: 28.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/1.028, allocations: 64.44 kB / 0.5566 GB, free: 27.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=289): time 7.279e-06/1.028, allocations: 0 / 0.5566 GB, free: 27.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=339): time 0.1856/1.214, allocations: 42.96 MB / 0.5986 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001694/1.214, allocations: 214 kB / 0.5988 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01311/1.227, allocations: 5.709 MB / 0.6043 GB, free: 10.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007826/1.228, allocations: 73.7 kB / 0.6044 GB, free: 10.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004767/1.233, allocations: 4.26 MB / 0.6086 GB, free: 6.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002228/1.235, allocations: 1.259 MB / 0.6098 GB, free: 5.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/1.236, allocations: 172 kB / 0.61 GB, free: 5.152 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001015/1.237, allocations: 0.683 MB / 0.6106 GB, free: 4.457 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.011/1.248, allocations: 4.612 MB / 0.6151 GB, free: 15.84 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01614/1.265, allocations: 9.555 MB / 0.6245 GB, free: 3.844 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2557/1.52, allocations: 6.476 MB / 0.6308 GB, free: 140.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001373/1.52, allocations: 50.5 kB / 0.6308 GB, free: 140.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=1146) (initialization): time 0.05554/1.576, allocations: 18.76 MB / 0.6492 GB, free: 134.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/1.576, allocations: 80.98 kB / 0.6492 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000213/1.576, allocations: 170.9 kB / 0.6494 GB, free: 134.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02991/1.606, allocations: 5.836 MB / 0.6551 GB, free: 133.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009147/1.616, allocations: 2.054 MB / 0.6571 GB, free: 133 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04033/1.656, allocations: 24.94 MB / 0.6815 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008374/1.664, allocations: 0.5525 MB / 0.682 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.666, allocations: 0.4973 MB / 0.6825 GB, free: 111.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1055): * Single equations (assignments): 1047 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006428/1.672, allocations: 3.097 MB / 0.6855 GB, free: 108.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/1.674, allocations: 0.4994 MB / 0.686 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03626/1.71, allocations: 12.68 MB / 0.6984 GB, free: 95.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.416e-05/1.71, allocations: 56.69 kB / 0.6984 GB, free: 95.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/1.71, allocations: 8 kB / 0.6984 GB, free: 95.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.662e-05/1.71, allocations: 15.95 kB / 0.6985 GB, free: 95.51 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0584/1.768, allocations: 24.44 MB / 0.7223 GB, free: 70.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.28e-05/1.769, allocations: 4 kB / 0.7223 GB, free: 70.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003603/1.772, allocations: 0.5733 MB / 0.7229 GB, free: 70.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02259/1.795, allocations: 4.837 MB / 0.7276 GB, free: 65.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007061/1.796, allocations: 56.94 kB / 0.7277 GB, free: 65.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03197/1.828, allocations: 20.21 MB / 0.7474 GB, free: 44.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-05/1.828, allocations: 11.94 kB / 0.7474 GB, free: 44.77 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04155/1.869, allocations: 17.11 MB / 0.7641 GB, free: 27.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003503/1.873, allocations: 1.244 MB / 0.7653 GB, free: 26.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/1.874, allocations: 57.16 kB / 0.7654 GB, free: 26.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004186/1.878, allocations: 264.8 kB / 0.7656 GB, free: 26.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001125/1.88, allocations: 193.6 kB / 0.7658 GB, free: 25.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005087/1.88, allocations: 85.17 kB / 0.7659 GB, free: 25.78 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007063/1.887, allocations: 3.592 MB / 0.7694 GB, free: 22.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.235e-06/1.887, allocations: 4 kB / 0.7694 GB, free: 22.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009212/1.896, allocations: 1.728 MB / 0.7711 GB, free: 20.48 MB / 442.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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/1.898, allocations: 218.8 kB / 0.7713 GB, free: 20.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01943/1.917, allocations: 10.6 MB / 0.7817 GB, free: 9.672 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.53e-06/1.917, allocations: 0.5 kB / 0.7817 GB, free: 9.672 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007716/1.925, allocations: 4.046 MB / 0.7856 GB, free: 5.609 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003863/1.929, allocations: 0.5836 MB / 0.7862 GB, free: 5.031 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2754/2.204, allocations: 19.14 MB / 0.8049 GB, free: 137.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009911/2.214, allocations: 4.759 MB / 0.8095 GB, free: 136 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002576/2.217, allocations: 421.2 kB / 0.8099 GB, free: 136 MB / 442.7 MB Notification: Performance of SimCode: time 1.642e-06/2.217, allocations: 3.469 kB / 0.8099 GB, free: 136 MB / 442.7 MB Notification: Performance of Templates: time 0.4403/2.657, allocations: 143.4 MB / 0.95 GB, free: 138 MB / 442.7 MB