Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.355/2.355, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004539/0.0004539, allocations: 12 kB / 314.9 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3558, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.5297, allocations: 96.02 MB / 465.8 MB, free: 10.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.5301, allocations: 79.97 kB / 465.9 MB, free: 10.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6642/1.194, allocations: 87.02 MB / 0.54 GB, free: 32.15 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.194, allocations: 0 / 0.54 GB, free: 32.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001771/1.195, allocations: 76 kB / 0.54 GB, free: 32.08 MB / 394.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.01354/1.208, allocations: 3.857 MB / 0.5438 GB, free: 28.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/1.208, allocations: 15.97 kB / 0.5438 GB, free: 28.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02707/1.235, allocations: 3.648 MB / 0.5474 GB, free: 24.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01711/1.252, allocations: 4.97 MB / 0.5522 GB, free: 19.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/1.253, allocations: 291.6 kB / 0.5525 GB, free: 19.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002247/1.255, allocations: 391.7 kB / 0.5529 GB, free: 18.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02656/1.282, allocations: 10.37 MB / 0.563 GB, free: 7.914 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001666/1.282, allocations: 27.75 kB / 0.563 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009684/1.283, allocations: 175.9 kB / 0.5632 GB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002272/1.285, allocations: 1.195 MB / 0.5644 GB, free: 6.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02816/1.313, allocations: 10.15 MB / 0.5743 GB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08442/1.398, allocations: 36.47 MB / 0.6099 GB, free: 6.973 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/1.412, allocations: 4.396 MB / 0.6142 GB, free: 2.348 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/1.414, allocations: 1.319 MB / 0.6155 GB, free: 0.8086 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.755e-05/1.414, allocations: 52.56 kB / 0.6155 GB, free: 0.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=245): time 7.373e-06/1.414, allocations: 4 kB / 0.6155 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of matching and sorting (n=261): time 0.07774/1.492, allocations: 17.51 MB / 0.6326 GB, free: 14.96 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002343/1.494, allocations: 1.547 MB / 0.6342 GB, free: 13.26 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008891/1.503, allocations: 2.758 MB / 0.6368 GB, free: 10.48 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007431/1.504, allocations: 61.89 kB / 0.6369 GB, free: 10.42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003977/1.508, allocations: 2.723 MB / 0.6396 GB, free: 7.656 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002216/1.51, allocations: 0.9519 MB / 0.6405 GB, free: 6.691 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008573/1.511, allocations: 112 kB / 0.6406 GB, free: 6.582 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007492/1.512, allocations: 0.5544 MB / 0.6411 GB, free: 6.016 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009481/1.521, allocations: 2.431 MB / 0.6435 GB, free: 3.578 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4088/1.93, allocations: 5.458 MB / 0.6488 GB, free: 119.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009421/1.94, allocations: 3.636 MB / 0.6524 GB, free: 119.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001869/1.94, allocations: 29 kB / 0.6524 GB, free: 119.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.04846/1.988, allocations: 9.406 MB / 0.6616 GB, free: 119 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001408/1.989, allocations: 50.72 kB / 0.6617 GB, free: 119 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02336/2.012, allocations: 4.589 MB / 0.6661 GB, free: 118.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02002/2.032, allocations: 2.062 MB / 0.6682 GB, free: 118.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00802/2.04, allocations: 1.285 MB / 0.6694 GB, free: 118.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/2.051, allocations: 5.151 MB / 0.6744 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00654/2.058, allocations: 395.6 kB / 0.6748 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009368/2.059, allocations: 324.1 kB / 0.6751 GB, free: 116.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * 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 (688): * Single equations (assignments): 676 * 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.005353/2.064, allocations: 2.106 MB / 0.6772 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007044/2.065, allocations: 279.1 kB / 0.6775 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/2.081, allocations: 5.391 MB / 0.6827 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01457/2.096, allocations: 4.641 MB / 0.6872 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/2.096, allocations: 0 / 0.6872 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.901e-05/2.096, allocations: 12.66 kB / 0.6873 GB, free: 113.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03812/2.134, allocations: 14.65 MB / 0.7016 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.269e-05/2.134, allocations: 11.47 kB / 0.7016 GB, free: 108.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003528/2.138, allocations: 424.7 kB / 0.702 GB, free: 108.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007725/2.145, allocations: 1.195 MB / 0.7031 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005847/2.146, allocations: 63.97 kB / 0.7032 GB, free: 107.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006768/2.153, allocations: 4.529 MB / 0.7076 GB, free: 103.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001085/2.154, allocations: 1.476 MB / 0.7091 GB, free: 101.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02379/2.178, allocations: 8.018 MB / 0.7169 GB, free: 94.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/2.179, allocations: 344.9 kB / 0.7172 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/2.18, allocations: 52.92 kB / 0.7173 GB, free: 94.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003962/2.184, allocations: 199 kB / 0.7175 GB, free: 94.34 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006772/2.185, allocations: 178.1 kB / 0.7176 GB, free: 94.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003569/2.185, allocations: 71.89 kB / 0.7177 GB, free: 94.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004645/2.19, allocations: 1.687 MB / 0.7194 GB, free: 92.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.452e-06/2.19, allocations: 0 / 0.7194 GB, free: 92.77 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009504/2.2, allocations: 1.066 MB / 0.7204 GB, free: 91.72 MB / 474.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.0008878/2.201, allocations: 211.3 kB / 0.7206 GB, free: 91.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02081/2.221, allocations: 6.47 MB / 0.7269 GB, free: 85.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.93e-05/2.221, allocations: 3.625 kB / 0.7269 GB, free: 85.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01068/2.232, allocations: 2.89 MB / 0.7297 GB, free: 83.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/2.236, allocations: 365.5 kB / 0.7301 GB, free: 83.08 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/2.267, allocations: 13.04 MB / 0.7428 GB, free: 71.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00717/2.274, allocations: 3.392 MB / 0.7461 GB, free: 68.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/2.276, allocations: 271.4 kB / 0.7464 GB, free: 67.96 MB / 474.7 MB Notification: Performance of SimCode: time 1.623e-06/2.276, allocations: 0 / 0.7464 GB, free: 67.96 MB / 474.7 MB Notification: Performance of Templates: time 0.5799/2.856, allocations: 125.9 MB / 0.8693 GB, free: 119.5 MB / 490.7 MB