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.Joints.FreeMotionScalarInit5.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.Joints.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") Notification: Performance of loadModel(ModelicaTest): time 2.206/2.206, allocations: 234.9 MB / 250.5 MB, free: 9.512 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004341, allocations: 12 kB / 314.3 MB, free: 9.559 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.278, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.05106/0.3291, allocations: 38.06 MB / 407.2 MB, free: 4.543 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02438/0.3535, allocations: 9.396 MB / 416.6 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007319/0.3609, allocations: 183.5 kB / 416.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006075/0.367, allocations: 1.979 MB / 418.8 MB, free: 8.957 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01871/0.3858, allocations: 5.614 MB / 424.4 MB, free: 3.328 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.3886, allocations: 0.4953 MB / 424.9 MB, free: 2.832 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005036/0.3937, allocations: 2.267 MB / 427.2 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007881/0.4016, allocations: 4.154 MB / 431.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.4036, allocations: 0.9769 MB / 432.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002529/0.4062, allocations: 1.347 MB / 433.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006294/0.4069, allocations: 156 kB / 433.8 MB, free: 9.859 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002291/0.4092, allocations: 0.8582 MB / 434.7 MB, free: 9 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002359/0.4116, allocations: 1.609 MB / 436.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.4128, allocations: 0.905 MB / 437.2 MB, free: 6.473 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008806/0.4216, allocations: 6.032 MB / 443.2 MB, free: 436 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.592e-06/0.4217, allocations: 0 / 443.2 MB, free: 436 kB / 362.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4217, allocations: 4 kB / 443.2 MB, free: 432 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.4219, allocations: 0 / 443.2 MB, free: 432 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.01124/0.4331, allocations: 4.368 MB / 447.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.4332, allocations: 8.031 kB / 447.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01702/0.4502, allocations: 3.835 MB / 451.4 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006281/0.4565, allocations: 2.477 MB / 453.9 MB, free: 5.605 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000342/0.4569, allocations: 250.2 kB / 454.1 MB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/0.4585, allocations: 331.7 kB / 454.5 MB, free: 5.035 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02663/0.4851, allocations: 11.94 MB / 466.4 MB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001524/0.4853, allocations: 27.72 kB / 466.4 MB, free: 8.621 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009748/0.4863, allocations: 147.8 kB / 466.6 MB, free: 8.477 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005644/0.492, allocations: 2.641 MB / 469.2 MB, free: 5.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2772/0.7692, allocations: 11.02 MB / 480.2 MB, free: 85.35 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05555/0.8248, allocations: 37.55 MB / 0.5057 GB, free: 56.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009032/0.8339, allocations: 4.394 MB / 0.5099 GB, free: 51.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/0.8351, allocations: 1.325 MB / 0.5112 GB, free: 50.22 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.8351, allocations: 52.56 kB / 0.5113 GB, free: 50.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 7.552e-06/0.8351, allocations: 11.92 kB / 0.5113 GB, free: 50.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.04747/0.8826, allocations: 14.44 MB / 0.5254 GB, free: 35.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.8827, allocations: 73.41 kB / 0.5255 GB, free: 35.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004299/0.887, allocations: 3.063 MB / 0.5285 GB, free: 32.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004132/0.8874, allocations: 67.17 kB / 0.5285 GB, free: 32.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/0.8893, allocations: 3.091 MB / 0.5315 GB, free: 29.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/0.8904, allocations: 0.9742 MB / 0.5325 GB, free: 28.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000524/0.891, allocations: 116 kB / 0.5326 GB, free: 28.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003849/0.8914, allocations: 0.5709 MB / 0.5332 GB, free: 27.55 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004343/0.8957, allocations: 2.374 MB / 0.5355 GB, free: 25.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006001/0.9018, allocations: 5.644 MB / 0.541 GB, free: 17.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006234/0.9081, allocations: 3.665 MB / 0.5446 GB, free: 14.25 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-05/0.9082, allocations: 32 kB / 0.5446 GB, free: 14.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01902/0.9272, allocations: 8.652 MB / 0.553 GB, free: 5.547 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.4e-05/0.9274, allocations: 56.06 kB / 0.5531 GB, free: 5.492 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001189/0.9275, allocations: 116 kB / 0.5532 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004164/0.9317, allocations: 1.052 MB / 0.5542 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005568/0.9373, allocations: 1.372 MB / 0.5556 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002968/0.9403, allocations: 2.497 MB / 0.558 GB, free: 312 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004564/0.9449, allocations: 319.7 kB / 0.5583 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009009/0.9458, allocations: 347.9 kB / 0.5587 GB, free: 15.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 520 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (741): * Single equations (assignments): 732 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005333/0.9512, allocations: 2.364 MB / 0.561 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006702/0.9519, allocations: 304.1 kB / 0.5613 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/0.9645, allocations: 5.083 MB / 0.5662 GB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.944e-05/0.9647, allocations: 44 kB / 0.5663 GB, free: 7.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.9647, allocations: 4 kB / 0.5663 GB, free: 7.785 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.575e-05/0.9648, allocations: 11.95 kB / 0.5663 GB, free: 7.773 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02971/0.9945, allocations: 11.76 MB / 0.5778 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.772e-05/0.9946, allocations: 11.98 kB / 0.5778 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00264/0.9972, allocations: 431.3 kB / 0.5782 GB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004276/1.002, allocations: 0.9119 MB / 0.5791 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004924/1.002, allocations: 59.97 kB / 0.5791 GB, free: 10.49 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003639/1.006, allocations: 2.303 MB / 0.5814 GB, free: 8.059 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-05/1.006, allocations: 16 kB / 0.5814 GB, free: 8.043 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.023, allocations: 7.522 MB / 0.5887 GB, free: 352 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000879/1.024, allocations: 349.1 kB / 0.5891 GB, free: 15.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006619/1.025, allocations: 59.83 kB / 0.5891 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/1.026, allocations: 135.8 kB / 0.5893 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/1.027, allocations: 157.6 kB / 0.5894 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.027, allocations: 79.97 kB / 0.5895 GB, free: 15.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003815/1.031, allocations: 1.878 MB / 0.5913 GB, free: 13.68 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.071e-06/1.031, allocations: 0 / 0.5913 GB, free: 13.68 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005886/1.037, allocations: 1.061 MB / 0.5923 GB, free: 12.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_3) * 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 (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007169/1.038, allocations: 197.7 kB / 0.5925 GB, free: 12.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01451/1.052, allocations: 6.231 MB / 0.5986 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.79e-06/1.052, allocations: 0 / 0.5986 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006471/1.059, allocations: 2.597 MB / 0.6012 GB, free: 3.516 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002786/1.061, allocations: 456.1 kB / 0.6016 GB, free: 3.074 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/1.09, allocations: 14.05 MB / 0.6153 GB, free: 4.898 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007578/1.098, allocations: 3.759 MB / 0.619 GB, free: 1.105 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001566/1.1, allocations: 295.4 kB / 0.6193 GB, free: 0.8164 MB / 458.7 MB Notification: Performance of SimCode: time 1.821e-06/1.1, allocations: 4 kB / 0.6193 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of Templates: time 0.4134/1.513, allocations: 120.5 MB / 0.7369 GB, free: 91.29 MB / 490.7 MB