Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.158/2.158, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004322/0.0004325, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.363, allocations: 48.71 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1682/0.5313, allocations: 91.24 MB / 423 MB, free: 3.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.5317, allocations: 87.94 kB / 423.1 MB, free: 3.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6618/1.193, allocations: 91.06 MB / 0.5021 GB, free: 89.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.194, allocations: 4 kB / 0.5021 GB, free: 89.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002415/1.194, allocations: 80.98 kB / 0.5022 GB, free: 89.22 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.02229/1.216, allocations: 4.4 MB / 0.5065 GB, free: 86.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/1.216, allocations: 11.19 kB / 0.5065 GB, free: 86.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02666/1.243, allocations: 3.556 MB / 0.51 GB, free: 85.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02402/1.267, allocations: 4.682 MB / 0.5146 GB, free: 82.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005399/1.268, allocations: 333 kB / 0.5149 GB, free: 82.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003599/1.271, allocations: 440.9 kB / 0.5153 GB, free: 81.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04294/1.314, allocations: 11.07 MB / 0.5261 GB, free: 70.51 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003213/1.315, allocations: 31.72 kB / 0.5262 GB, free: 70.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003225/1.318, allocations: 193.3 kB / 0.5263 GB, free: 70.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003621/1.321, allocations: 1.232 MB / 0.5275 GB, free: 69.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03026/1.352, allocations: 10.67 MB / 0.538 GB, free: 58.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07796/1.43, allocations: 37.33 MB / 0.5744 GB, free: 20.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01693/1.447, allocations: 4.388 MB / 0.5787 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002886/1.45, allocations: 1.325 MB / 0.58 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.67e-05/1.45, allocations: 56.5 kB / 0.58 GB, free: 14.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 9.909e-06/1.45, allocations: 4 kB / 0.5801 GB, free: 14.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=265): time 0.07244/1.522, allocations: 14.48 MB / 0.5942 GB, free: 15.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.59e-05/1.522, allocations: 73.41 kB / 0.5943 GB, free: 15.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007234/1.53, allocations: 2.819 MB / 0.597 GB, free: 12.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006749/1.53, allocations: 57.7 kB / 0.5971 GB, free: 12.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003423/1.534, allocations: 2.917 MB / 0.5999 GB, free: 9.684 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001794/1.536, allocations: 0.9731 MB / 0.6009 GB, free: 8.719 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007379/1.537, allocations: 116 kB / 0.601 GB, free: 8.605 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006076/1.537, allocations: 0.5588 MB / 0.6015 GB, free: 8.035 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006839/1.544, allocations: 2.334 MB / 0.6038 GB, free: 5.695 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01024/1.554, allocations: 5.484 MB / 0.6092 GB, free: 14.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009516/1.564, allocations: 3.583 MB / 0.6127 GB, free: 11.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/1.564, allocations: 32 kB / 0.6127 GB, free: 11.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02903/1.593, allocations: 8.467 MB / 0.621 GB, free: 2.566 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/1.593, allocations: 56.94 kB / 0.621 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001886/1.593, allocations: 112 kB / 0.6211 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00696/1.6, allocations: 1.052 MB / 0.6221 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008917/1.609, allocations: 1.333 MB / 0.6235 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3219/1.931, allocations: 2.487 MB / 0.6259 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006131/1.938, allocations: 313 kB / 0.6262 GB, free: 104.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/1.939, allocations: 336.6 kB / 0.6265 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.007261/1.946, allocations: 2.26 MB / 0.6287 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007649/1.947, allocations: 284.9 kB / 0.629 GB, free: 104.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01829/1.965, allocations: 5.06 MB / 0.6339 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001371/1.966, allocations: 53.66 kB / 0.634 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/1.966, allocations: 2.312 kB / 0.634 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-05/1.966, allocations: 11.39 kB / 0.634 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03639/2.002, allocations: 11.6 MB / 0.6453 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.175e-05/2.002, allocations: 13.34 kB / 0.6453 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003828/2.006, allocations: 424.9 kB / 0.6457 GB, free: 102.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006231/2.012, allocations: 0.9151 MB / 0.6466 GB, free: 102.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007499/2.013, allocations: 56.64 kB / 0.6467 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003798/2.017, allocations: 2.313 MB / 0.6489 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/2.017, allocations: 12.66 kB / 0.649 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02103/2.038, allocations: 7.509 MB / 0.6563 GB, free: 98.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009933/2.039, allocations: 336.2 kB / 0.6566 GB, free: 98.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001432/2.041, allocations: 49.75 kB / 0.6567 GB, free: 98.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003167/2.044, allocations: 139.1 kB / 0.6568 GB, free: 98.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008287/2.045, allocations: 157.2 kB / 0.6569 GB, free: 98.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002994/2.045, allocations: 79.36 kB / 0.657 GB, free: 98.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004329/2.049, allocations: 1.709 MB / 0.6587 GB, free: 97.74 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.904e-06/2.049, allocations: 0.9375 kB / 0.6587 GB, free: 97.74 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006979/2.056, allocations: 1.012 MB / 0.6597 GB, free: 97.62 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.001094/2.058, allocations: 202.8 kB / 0.6599 GB, free: 97.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01622/2.074, allocations: 6.139 MB / 0.6659 GB, free: 95.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/2.074, allocations: 2.875 kB / 0.6659 GB, free: 95.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007881/2.082, allocations: 2.6 MB / 0.6684 GB, free: 94.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00356/2.085, allocations: 389.2 kB / 0.6688 GB, free: 94.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03168/2.117, allocations: 13.51 MB / 0.682 GB, free: 86.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008193/2.125, allocations: 3.596 MB / 0.6855 GB, free: 84.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/2.127, allocations: 287.9 kB / 0.6857 GB, free: 83.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/2.127, allocations: 0 / 0.6857 GB, free: 83.8 MB / 426.7 MB Notification: Performance of Templates: time 0.5086/2.636, allocations: 114.2 MB / 0.7973 GB, free: 118.5 MB / 442.7 MB