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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_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.FreeMotionScalarInit3") Notification: Performance of loadModel(ModelicaTest): time 1.973/1.973, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.259e-05, allocations: 7.984 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09449, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5488/0.6433, allocations: 94.88 MB / 421.4 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.6436, allocations: 75.47 kB / 421.5 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3766/1.02, allocations: 97.5 MB / 0.5068 GB, free: 2.141 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.27e-06/1.02, allocations: 0 / 0.5068 GB, free: 2.141 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002424/1.021, allocations: 95.88 kB / 0.5069 GB, free: 2.047 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.01926/1.04, allocations: 4.644 MB / 0.5115 GB, free: 13.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/1.04, allocations: 8.031 kB / 0.5115 GB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02103/1.061, allocations: 3.628 MB / 0.515 GB, free: 9.688 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01658/1.078, allocations: 4.893 MB / 0.5198 GB, free: 4.738 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005851/1.078, allocations: 377.8 kB / 0.5202 GB, free: 4.367 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002603/1.081, allocations: 499.8 kB / 0.5206 GB, free: 3.879 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2733/1.354, allocations: 12.09 MB / 0.5324 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002836/1.354, allocations: 32.06 kB / 0.5325 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002314/1.357, allocations: 230.4 kB / 0.5327 GB, free: 87.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002597/1.359, allocations: 1.313 MB / 0.534 GB, free: 87.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02905/1.389, allocations: 11.35 MB / 0.545 GB, free: 87.69 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06906/1.458, allocations: 41.9 MB / 0.586 GB, free: 66.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01236/1.47, allocations: 4.917 MB / 0.5908 GB, free: 64.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004361/1.474, allocations: 2.351 MB / 0.5931 GB, free: 63.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01278/1.487, allocations: 6.558 MB / 0.5995 GB, free: 60.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/1.487, allocations: 48.22 kB / 0.5995 GB, free: 60.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=228): time 6.76e-06/1.487, allocations: 3.938 kB / 0.5995 GB, free: 60.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=237): time 0.04613/1.534, allocations: 13.61 MB / 0.6128 GB, free: 56.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/1.534, allocations: 77.44 kB / 0.6129 GB, free: 56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005789/1.539, allocations: 2.815 MB / 0.6156 GB, free: 54.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004221/1.54, allocations: 57.7 kB / 0.6157 GB, free: 54.28 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002015/1.542, allocations: 3.259 MB / 0.6189 GB, free: 51.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.543, allocations: 0.8954 MB / 0.6197 GB, free: 50.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006006/1.544, allocations: 120 kB / 0.6199 GB, free: 50.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004307/1.544, allocations: 0.5657 MB / 0.6204 GB, free: 49.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004845/1.549, allocations: 2.328 MB / 0.6227 GB, free: 47.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006747/1.556, allocations: 5.692 MB / 0.6282 GB, free: 40.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006806/1.563, allocations: 3.671 MB / 0.6318 GB, free: 37.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.469e-05/1.563, allocations: 34.25 kB / 0.6319 GB, free: 37.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.02049/1.583, allocations: 8.75 MB / 0.6404 GB, free: 30.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/1.583, allocations: 56 kB / 0.6405 GB, free: 30.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001448/1.584, allocations: 116 kB / 0.6406 GB, free: 30.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004525/1.588, allocations: 1.168 MB / 0.6417 GB, free: 29.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005839/1.594, allocations: 1.369 MB / 0.643 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006788/1.601, allocations: 4.585 MB / 0.6475 GB, free: 24.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005585/1.606, allocations: 322.1 kB / 0.6478 GB, free: 23.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/1.608, allocations: 355.3 kB / 0.6482 GB, free: 23.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 734 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.001584/1.609, allocations: 0.5513 MB / 0.6487 GB, free: 22.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/1.61, allocations: 300.1 kB / 0.649 GB, free: 22.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009779/1.62, allocations: 4.39 MB / 0.6533 GB, free: 18.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.23e-05/1.62, allocations: 47.55 kB / 0.6533 GB, free: 18.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/1.62, allocations: 4 kB / 0.6533 GB, free: 18.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.294e-05/1.62, allocations: 6.094 kB / 0.6533 GB, free: 18.86 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.645, allocations: 10.42 MB / 0.6635 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-05/1.645, allocations: 7.938 kB / 0.6635 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/1.648, allocations: 384.8 kB / 0.6639 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002476/1.65, allocations: 0.6697 MB / 0.6645 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004763/1.651, allocations: 51.69 kB / 0.6646 GB, free: 9.359 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/1.654, allocations: 2.415 MB / 0.6669 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.188e-06/1.654, allocations: 11.5 kB / 0.667 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01264/1.666, allocations: 7.128 MB / 0.6739 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008876/1.667, allocations: 345.1 kB / 0.6742 GB, free: 104 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009166/1.668, allocations: 43.98 kB / 0.6743 GB, free: 60 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002325/1.671, allocations: 139.5 kB / 0.6744 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000623/1.671, allocations: 133.7 kB / 0.6746 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002935/1.672, allocations: 63.98 kB / 0.6746 GB, free: 15.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005204/1.677, allocations: 1.902 MB / 0.6765 GB, free: 13.83 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.257e-06/1.677, allocations: 4 kB / 0.6765 GB, free: 13.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006984/1.684, allocations: 1.074 MB / 0.6775 GB, free: 12.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 182 * 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.0008502/1.685, allocations: 193.3 kB / 0.6777 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01362/1.698, allocations: 5.74 MB / 0.6833 GB, free: 6.852 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.698, allocations: 4 kB / 0.6833 GB, free: 6.848 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006037/1.705, allocations: 2.393 MB / 0.6857 GB, free: 4.395 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/1.708, allocations: 414.3 kB / 0.686 GB, free: 4.004 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.27/1.978, allocations: 9.977 MB / 0.6958 GB, free: 97.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008417/1.986, allocations: 3.833 MB / 0.6995 GB, free: 96.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/1.988, allocations: 290.5 kB / 0.6998 GB, free: 96.22 MB / 442.7 MB Notification: Performance of SimCode: time 1.975e-06/1.988, allocations: 4.5 kB / 0.6998 GB, free: 96.22 MB / 442.7 MB Notification: Performance of Templates: time 0.1564/2.144, allocations: 111.9 MB / 0.8091 GB, free: 35.82 MB / 442.7 MB