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.Joints.FreeMotionScalarInit.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.Joints.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 1.879/1.879, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004387/0.0004389, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2803, allocations: 48.71 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.415, allocations: 91.27 MB / 422.5 MB, free: 3.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.4153, allocations: 79.95 kB / 422.6 MB, free: 3.043 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5689/0.9842, allocations: 90.53 MB / 0.5011 GB, free: 89.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.982e-06/0.9843, allocations: 0 / 0.5011 GB, free: 89.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001464/0.9844, allocations: 81.84 kB / 0.5012 GB, free: 89.27 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.01551/0.9999, allocations: 4.399 MB / 0.5055 GB, free: 87.03 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/1, allocations: 11.06 kB / 0.5055 GB, free: 87.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/1.018, allocations: 3.557 MB / 0.509 GB, free: 85.38 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/1.032, allocations: 4.686 MB / 0.5136 GB, free: 82.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/1.032, allocations: 328.1 kB / 0.5139 GB, free: 82.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001911/1.034, allocations: 438.2 kB / 0.5143 GB, free: 82.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0233/1.057, allocations: 11.04 MB / 0.5251 GB, free: 70.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001482/1.057, allocations: 31.7 kB / 0.5251 GB, free: 70.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001122/1.059, allocations: 196.8 kB / 0.5253 GB, free: 70.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001775/1.06, allocations: 1.23 MB / 0.5265 GB, free: 69.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02304/1.083, allocations: 10.67 MB / 0.5369 GB, free: 58.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0556/1.139, allocations: 37.33 MB / 0.5734 GB, free: 20.92 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00923/1.148, allocations: 4.396 MB / 0.5777 GB, free: 16.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001132/1.149, allocations: 1.319 MB / 0.5789 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/1.15, allocations: 60.56 kB / 0.579 GB, free: 14.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 8.412e-06/1.15, allocations: 0 / 0.579 GB, free: 14.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.05029/1.2, allocations: 14.28 MB / 0.5929 GB, free: 268 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/1.2, allocations: 77.41 kB / 0.593 GB, free: 176 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005314/1.205, allocations: 2.505 MB / 0.5955 GB, free: 13.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004409/1.206, allocations: 61.7 kB / 0.5955 GB, free: 13.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002885/1.209, allocations: 2.922 MB / 0.5984 GB, free: 10.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/1.21, allocations: 0.975 MB / 0.5993 GB, free: 9.699 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004971/1.211, allocations: 112 kB / 0.5994 GB, free: 9.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005781/1.211, allocations: 0.5704 MB / 0.6 GB, free: 9.008 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005282/1.217, allocations: 2.326 MB / 0.6023 GB, free: 6.676 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008843/1.225, allocations: 5.468 MB / 0.6076 GB, free: 15.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007811/1.233, allocations: 3.575 MB / 0.6111 GB, free: 12.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.505e-05/1.233, allocations: 32 kB / 0.6111 GB, free: 12.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02308/1.256, allocations: 8.477 MB / 0.6194 GB, free: 3.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.257, allocations: 60.23 kB / 0.6195 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001661/1.257, allocations: 108 kB / 0.6196 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004666/1.262, allocations: 1.04 MB / 0.6206 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006071/1.268, allocations: 1.337 MB / 0.6219 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2462/1.514, allocations: 2.488 MB / 0.6243 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004888/1.519, allocations: 312.4 kB / 0.6246 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.52, allocations: 340.6 kB / 0.6249 GB, free: 104.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (719): * Single equations (assignments): 710 * 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.005431/1.525, allocations: 2.257 MB / 0.6271 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005911/1.526, allocations: 291.7 kB / 0.6274 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/1.539, allocations: 5.062 MB / 0.6324 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/1.539, allocations: 49.23 kB / 0.6324 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/1.539, allocations: 1.188 kB / 0.6324 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.507e-05/1.539, allocations: 12.2 kB / 0.6324 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.565, allocations: 11.62 MB / 0.6438 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.051e-05/1.565, allocations: 9.594 kB / 0.6438 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002372/1.567, allocations: 423.3 kB / 0.6442 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00379/1.571, allocations: 0.908 MB / 0.6451 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004554/1.572, allocations: 59.83 kB / 0.6451 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00273/1.574, allocations: 2.311 MB / 0.6474 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.009e-05/1.574, allocations: 15.55 kB / 0.6474 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01415/1.588, allocations: 8.161 MB / 0.6554 GB, free: 97.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007503/1.589, allocations: 330.5 kB / 0.6557 GB, free: 97.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006894/1.59, allocations: 52.39 kB / 0.6557 GB, free: 97.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/1.592, allocations: 139.3 kB / 0.6559 GB, free: 97.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004568/1.592, allocations: 161.3 kB / 0.656 GB, free: 97.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/1.593, allocations: 78.75 kB / 0.6561 GB, free: 97.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003075/1.596, allocations: 1.707 MB / 0.6578 GB, free: 97.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.596, allocations: 3.25 kB / 0.6578 GB, free: 97.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005914/1.602, allocations: 1.007 MB / 0.6588 GB, free: 96.89 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.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.0006107/1.602, allocations: 203 kB / 0.6589 GB, free: 96.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01169/1.614, allocations: 6.142 MB / 0.6649 GB, free: 94.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/1.614, allocations: 3.094 kB / 0.6649 GB, free: 94.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005303/1.619, allocations: 2.596 MB / 0.6675 GB, free: 93.99 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/1.622, allocations: 388 kB / 0.6679 GB, free: 93.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0232/1.645, allocations: 13.46 MB / 0.681 GB, free: 86.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006354/1.651, allocations: 3.604 MB / 0.6845 GB, free: 83.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001426/1.653, allocations: 286.4 kB / 0.6848 GB, free: 83.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.991e-06/1.653, allocations: 4 kB / 0.6848 GB, free: 83.57 MB / 426.7 MB Notification: Performance of Templates: time 0.3968/2.05, allocations: 114.2 MB / 0.7963 GB, free: 117.6 MB / 442.7 MB