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.FreeMotion.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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.139/2.139, allocations: 234.9 MB / 250.5 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 12 kB / 314.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2755, allocations: 54.88 MB / 369.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.03442/0.3099, allocations: 24.37 MB / 393.6 MB, free: 2.383 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01626/0.3262, allocations: 6.517 MB / 400.1 MB, free: 11.84 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004277/0.3306, allocations: 111.8 kB / 400.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00387/0.3345, allocations: 1.272 MB / 401.5 MB, free: 10.46 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01247/0.347, allocations: 3.775 MB / 405.2 MB, free: 6.672 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001942/0.349, allocations: 423.2 kB / 405.6 MB, free: 6.258 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004632/0.3536, allocations: 2.218 MB / 407.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004178/0.3579, allocations: 2.201 MB / 410.1 MB, free: 1.785 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.3595, allocations: 0.8875 MB / 411 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002146/0.3617, allocations: 1.25 MB / 412.2 MB, free: 15.64 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004794/0.3622, allocations: 136 kB / 412.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.3643, allocations: 0.8816 MB / 413.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.3663, allocations: 1.461 MB / 414.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.3673, allocations: 0.7686 MB / 415.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007361/0.3747, allocations: 4.922 MB / 420.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.291e-06/0.3747, allocations: 0 / 420.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.632e-06/0.3748, allocations: 0 / 420.4 MB, free: 7.449 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001193/0.3749, allocations: 0 / 420.4 MB, free: 7.449 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.008262/0.3832, allocations: 3.672 MB / 424 MB, free: 3.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3832, allocations: 8.031 kB / 424.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01742/0.4007, allocations: 3.855 MB / 427.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005886/0.4066, allocations: 2.423 MB / 430.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.4069, allocations: 184.7 kB / 430.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/0.4085, allocations: 343.4 kB / 430.8 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02307/0.4315, allocations: 10.84 MB / 441.7 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.4317, allocations: 23.81 kB / 441.7 MB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006773/0.4324, allocations: 119.8 kB / 441.8 MB, free: 1.383 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005374/0.4378, allocations: 2.561 MB / 444.4 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02627/0.4641, allocations: 10.32 MB / 454.7 MB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3177/0.7818, allocations: 35.87 MB / 490.6 MB, free: 68.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/0.7921, allocations: 4.428 MB / 495 MB, free: 67.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001165/0.7933, allocations: 1.319 MB / 496.3 MB, free: 65.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.7933, allocations: 58.08 kB / 496.4 MB, free: 65.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=245): time 7.285e-06/0.7934, allocations: 0 / 496.4 MB, free: 65.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=261): time 0.05077/0.8441, allocations: 17.63 MB / 0.502 GB, free: 57.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001148/0.8453, allocations: 1.538 MB / 0.5035 GB, free: 56.11 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004032/0.8494, allocations: 2.977 MB / 0.5064 GB, free: 53.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004149/0.8498, allocations: 59.27 kB / 0.5064 GB, free: 53.06 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.8512, allocations: 2.722 MB / 0.5091 GB, free: 50.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009043/0.8521, allocations: 0.9615 MB / 0.51 GB, free: 49.39 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/0.8525, allocations: 116.8 kB / 0.5101 GB, free: 49.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002986/0.8528, allocations: 0.5545 MB / 0.5107 GB, free: 48.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004088/0.8569, allocations: 2.46 MB / 0.5131 GB, free: 46.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005496/0.8624, allocations: 5.477 MB / 0.5184 GB, free: 39.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005881/0.8684, allocations: 3.671 MB / 0.522 GB, free: 35.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-05/0.8685, allocations: 32 kB / 0.522 GB, free: 35.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.02437/0.8928, allocations: 9.727 MB / 0.5315 GB, free: 25.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.81e-05/0.893, allocations: 48.56 kB / 0.5316 GB, free: 25.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01485/0.9078, allocations: 4.904 MB / 0.5364 GB, free: 20.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01247/0.9204, allocations: 2.386 MB / 0.5387 GB, free: 18.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004984/0.9254, allocations: 1.287 MB / 0.54 GB, free: 17.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009556/0.935, allocations: 6.159 MB / 0.546 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004755/0.9398, allocations: 405.2 kB / 0.5464 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007182/0.9405, allocations: 331 kB / 0.5467 GB, free: 10.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 21 (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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.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 (689): * Single equations (assignments): 677 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.003689/0.9442, allocations: 2.097 MB / 0.5487 GB, free: 7.984 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005343/0.9448, allocations: 284.3 kB / 0.549 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01197/0.9568, allocations: 5.432 MB / 0.5543 GB, free: 2.203 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01143/0.9682, allocations: 4.675 MB / 0.5589 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.695e-05/0.9683, allocations: 4 kB / 0.5589 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-05/0.9683, allocations: 15.95 kB / 0.5589 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03508/1.003, allocations: 14.73 MB / 0.5733 GB, free: 14.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.451e-05/1.004, allocations: 8.938 kB / 0.5733 GB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002537/1.006, allocations: 423.3 kB / 0.5737 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005703/1.012, allocations: 1.247 MB / 0.5749 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005509/1.012, allocations: 69.52 kB / 0.575 GB, free: 12.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007041/1.019, allocations: 4.519 MB / 0.5794 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001548/1.021, allocations: 1.479 MB / 0.5808 GB, free: 6.359 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01872/1.04, allocations: 8.137 MB / 0.5888 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009092/1.041, allocations: 345.4 kB / 0.5891 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007137/1.041, allocations: 61.09 kB / 0.5892 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002017/1.043, allocations: 203.7 kB / 0.5894 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004911/1.044, allocations: 171 kB / 0.5895 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002847/1.044, allocations: 71.98 kB / 0.5896 GB, free: 13.17 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003613/1.048, allocations: 1.86 MB / 0.5914 GB, free: 11.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.018e-06/1.048, allocations: 0 / 0.5914 GB, free: 11.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006117/1.054, allocations: 1.09 MB / 0.5925 GB, free: 10.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * 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.0007603/1.055, allocations: 222.8 kB / 0.5927 GB, free: 9.996 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01466/1.07, allocations: 6.504 MB / 0.599 GB, free: 3.449 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/1.07, allocations: 4 kB / 0.599 GB, free: 3.445 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006932/1.077, allocations: 2.893 MB / 0.6019 GB, free: 492 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/1.079, allocations: 355.5 kB / 0.6022 GB, free: 140 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02564/1.104, allocations: 13.01 MB / 0.6149 GB, free: 2.957 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005962/1.111, allocations: 3.401 MB / 0.6182 GB, free: 15.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/1.112, allocations: 275.4 kB / 0.6185 GB, free: 15.25 MB / 474.7 MB Notification: Performance of SimCode: time 1.68e-06/1.112, allocations: 0 / 0.6185 GB, free: 15.25 MB / 474.7 MB Notification: Performance of Templates: time 0.407/1.519, allocations: 126.7 MB / 0.7422 GB, free: 85.39 MB / 490.7 MB