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.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadModel(ModelicaTest): time 2.067/2.067, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004385, allocations: 11.98 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2883, allocations: 48.7 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0515/0.3399, allocations: 38.53 MB / 369.7 MB, free: 7.926 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02595/0.3658, allocations: 9.667 MB / 379.4 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008698/0.3746, allocations: 199.4 kB / 379.6 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006291/0.3809, allocations: 1.921 MB / 381.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02/0.4009, allocations: 5.649 MB / 387.1 MB, free: 6.441 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003506/0.4045, allocations: 0.78 MB / 387.9 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.03816/0.4427, allocations: 17.91 MB / 405.8 MB, free: 3.723 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008132/0.4509, allocations: 4.222 MB / 410.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002521/0.4534, allocations: 1.203 MB / 411.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.4567, allocations: 1.757 MB / 413 MB, free: 12.48 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008596/0.4576, allocations: 176 kB / 413.2 MB, free: 12.31 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002853/0.4605, allocations: 1.104 MB / 414.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002908/0.4634, allocations: 1.812 MB / 416.1 MB, free: 9.391 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001448/0.4649, allocations: 0.8972 MB / 417 MB, free: 8.484 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009703/0.4746, allocations: 6.173 MB / 423.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.803e-06/0.4747, allocations: 0 / 423.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.747e-06/0.4747, allocations: 0 / 423.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001576/0.4749, allocations: 0 / 423.2 MB, free: 2.297 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1534 * Number of variables: 1534 Notification: Performance of Generate backend data structure: time 0.0135/0.4884, allocations: 4.909 MB / 428.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.4884, allocations: 8.031 kB / 428.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05332/0.5418, allocations: 7.889 MB / 436 MB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.5523, allocations: 3.849 MB / 439.8 MB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003286/0.5527, allocations: 238.1 kB / 440.1 MB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001413/0.5541, allocations: 331.6 kB / 440.4 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02688/0.581, allocations: 10.91 MB / 451.3 MB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002404/0.5813, allocations: 51.59 kB / 451.3 MB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001112/0.5824, allocations: 147.9 kB / 451.5 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004078/0.5865, allocations: 1.947 MB / 453.4 MB, free: 3.164 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02587/0.6124, allocations: 9.327 MB / 462.8 MB, free: 9.824 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2903/0.9028, allocations: 41.05 MB / 0.492 GB, free: 87.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01406/0.9169, allocations: 4.225 MB / 0.4961 GB, free: 85.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01396/0.9309, allocations: 7.596 MB / 0.5035 GB, free: 79.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/0.931, allocations: 60.02 kB / 0.5036 GB, free: 79.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=180): time 7.051e-06/0.931, allocations: 3.984 kB / 0.5036 GB, free: 79.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=236): time 0.1989/1.13, allocations: 41.53 MB / 0.5442 GB, free: 42.37 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/1.13, allocations: 217.9 kB / 0.5444 GB, free: 42.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007693/1.138, allocations: 4.555 MB / 0.5488 GB, free: 37.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005201/1.138, allocations: 57.7 kB / 0.5489 GB, free: 37.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/1.14, allocations: 3.08 MB / 0.5519 GB, free: 34.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/1.142, allocations: 0.8725 MB / 0.5527 GB, free: 33.54 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006733/1.142, allocations: 128 kB / 0.5529 GB, free: 33.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003993/1.143, allocations: 0.5713 MB / 0.5534 GB, free: 32.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009352/1.152, allocations: 3.464 MB / 0.5568 GB, free: 29.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01347/1.166, allocations: 7.065 MB / 0.5637 GB, free: 20.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009622/1.175, allocations: 4.791 MB / 0.5684 GB, free: 15.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.712e-05/1.176, allocations: 39.94 kB / 0.5684 GB, free: 15.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=815) (initialization): time 0.04331/1.219, allocations: 15.48 MB / 0.5835 GB, free: 196 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/1.219, allocations: 59.94 kB / 0.5836 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/1.219, allocations: 131.9 kB / 0.5837 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02992/1.249, allocations: 6.112 MB / 0.5897 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006539/1.256, allocations: 1.427 MB / 0.5911 GB, free: 8.453 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05449/1.31, allocations: 26.38 MB / 0.6168 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00676/1.317, allocations: 407.3 kB / 0.6172 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001327/1.318, allocations: 377.1 kB / 0.6176 GB, free: 13.03 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 573 * 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 (738): * Single equations (assignments): 733 * 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.005711/1.324, allocations: 2.212 MB / 0.6197 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/1.325, allocations: 402.8 kB / 0.6201 GB, free: 10.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2757/1.601, allocations: 11.06 MB / 0.6309 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-05/1.601, allocations: 23.66 kB / 0.631 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.69e-05/1.601, allocations: 15.06 kB / 0.631 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.804e-05/1.601, allocations: 11.33 kB / 0.631 GB, free: 150.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05612/1.657, allocations: 20.58 MB / 0.6511 GB, free: 143 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.71e-05/1.658, allocations: 11.83 kB / 0.6511 GB, free: 143 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/1.66, allocations: 389.8 kB / 0.6515 GB, free: 142.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02699/1.687, allocations: 5.179 MB / 0.6565 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005171/1.688, allocations: 39.44 kB / 0.6566 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03651/1.724, allocations: 21.5 MB / 0.6775 GB, free: 123.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.822e-06/1.724, allocations: 4 kB / 0.6776 GB, free: 123.3 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03592/1.76, allocations: 14.3 MB / 0.6915 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002657/1.763, allocations: 0.99 MB / 0.6925 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.764, allocations: 44 kB / 0.6925 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003816/1.768, allocations: 175.7 kB / 0.6927 GB, free: 108.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008706/1.769, allocations: 152.9 kB / 0.6928 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003147/1.769, allocations: 67.98 kB / 0.6929 GB, free: 108 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005315/1.775, allocations: 2.914 MB / 0.6958 GB, free: 105.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.084e-06/1.775, allocations: 0 / 0.6958 GB, free: 105.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006967/1.782, allocations: 1.342 MB / 0.6971 GB, free: 103.7 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 (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.0008723/1.782, allocations: 201.5 kB / 0.6973 GB, free: 103.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0139/1.796, allocations: 8.038 MB / 0.7051 GB, free: 95.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.692e-06/1.796, allocations: 0 / 0.7051 GB, free: 95.56 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005857/1.802, allocations: 3.169 MB / 0.7082 GB, free: 92.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003265/1.806, allocations: 499.3 kB / 0.7087 GB, free: 91.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02342/1.829, allocations: 13.99 MB / 0.7223 GB, free: 77.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006038/1.835, allocations: 3.604 MB / 0.7259 GB, free: 74.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/1.837, allocations: 311.4 kB / 0.7262 GB, free: 74 MB / 442.7 MB Notification: Performance of SimCode: time 1.787e-06/1.837, allocations: 0 / 0.7262 GB, free: 74 MB / 442.7 MB Notification: Performance of Templates: time 0.3849/2.222, allocations: 105.2 MB / 0.8289 GB, free: 124.1 MB / 442.7 MB