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.FreeMotionScalarInit.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.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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 2.308/2.308, allocations: 234.9 MB / 251.1 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004435/0.0004436, allocations: 16 kB / 314.9 MB, free: 9.738 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3731, allocations: 54.85 MB / 369.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.198/0.5711, allocations: 97.98 MB / 467.8 MB, free: 10.69 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.5715, allocations: 83.95 kB / 467.9 MB, free: 10.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7731/1.345, allocations: 91.08 MB / 0.5458 GB, free: 88.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.345, allocations: 0 / 0.5458 GB, free: 88.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001743/1.345, allocations: 80 kB / 0.5459 GB, free: 88.29 MB / 426.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.0225/1.367, allocations: 4.383 MB / 0.5502 GB, free: 83.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/1.367, allocations: 16.02 kB / 0.5502 GB, free: 83.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02637/1.394, allocations: 3.558 MB / 0.5537 GB, free: 80.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/1.412, allocations: 4.695 MB / 0.5583 GB, free: 75.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003842/1.412, allocations: 332.6 kB / 0.5586 GB, free: 75.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00284/1.415, allocations: 435.8 kB / 0.559 GB, free: 74.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03213/1.447, allocations: 11.09 MB / 0.5698 GB, free: 63.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002226/1.448, allocations: 23.81 kB / 0.5698 GB, free: 63.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002244/1.45, allocations: 195.9 kB / 0.57 GB, free: 63.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002405/1.452, allocations: 1.228 MB / 0.5712 GB, free: 61.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02885/1.481, allocations: 10.67 MB / 0.5817 GB, free: 51.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07514/1.556, allocations: 37.32 MB / 0.6181 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0122/1.569, allocations: 4.389 MB / 0.6224 GB, free: 8.266 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001544/1.57, allocations: 1.327 MB / 0.6237 GB, free: 6.719 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/1.57, allocations: 52.56 kB / 0.6237 GB, free: 6.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 5.62e-06/1.57, allocations: 0 / 0.6237 GB, free: 6.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.07217/1.643, allocations: 14.49 MB / 0.6379 GB, free: 8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.409e-05/1.643, allocations: 73.41 kB / 0.638 GB, free: 7.918 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/1.649, allocations: 2.815 MB / 0.6407 GB, free: 5.086 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006257/1.65, allocations: 61.69 kB / 0.6408 GB, free: 5.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003263/1.653, allocations: 2.917 MB / 0.6436 GB, free: 2.062 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001912/1.655, allocations: 0.9713 MB / 0.6446 GB, free: 1.078 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000739/1.656, allocations: 116 kB / 0.6447 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006101/1.657, allocations: 0.5666 MB / 0.6452 GB, free: 396 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006732/1.663, allocations: 2.326 MB / 0.6475 GB, free: 14.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/1.674, allocations: 5.484 MB / 0.6528 GB, free: 7.031 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009379/1.683, allocations: 3.583 MB / 0.6563 GB, free: 3.445 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001031/1.684, allocations: 32 kB / 0.6564 GB, free: 3.414 MB / 458.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.02822/1.712, allocations: 8.472 MB / 0.6647 GB, free: 10.93 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/1.712, allocations: 55.98 kB / 0.6647 GB, free: 10.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/1.712, allocations: 112 kB / 0.6648 GB, free: 10.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006935/1.719, allocations: 1.056 MB / 0.6658 GB, free: 9.695 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00887/1.728, allocations: 1.33 MB / 0.6671 GB, free: 8.363 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/1.733, allocations: 2.498 MB / 0.6696 GB, free: 5.727 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005987/1.739, allocations: 319.5 kB / 0.6699 GB, free: 5.414 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001526/1.74, allocations: 332 kB / 0.6702 GB, free: 5.09 MB / 474.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.007208/1.748, allocations: 2.259 MB / 0.6724 GB, free: 2.816 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007871/1.748, allocations: 284.3 kB / 0.6727 GB, free: 2.535 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4469/2.195, allocations: 5.063 MB / 0.6776 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001579/2.196, allocations: 47.45 kB / 0.6777 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.425e-05/2.196, allocations: 3.875 kB / 0.6777 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.667e-05/2.196, allocations: 11.53 kB / 0.6777 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05068/2.246, allocations: 11.61 MB / 0.689 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.353e-05/2.247, allocations: 7.844 kB / 0.689 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005499/2.252, allocations: 430.4 kB / 0.6894 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00916/2.261, allocations: 0.9019 MB / 0.6903 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008891/2.262, allocations: 62.22 kB / 0.6904 GB, free: 122.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005448/2.268, allocations: 2.314 MB / 0.6926 GB, free: 121.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.681e-05/2.268, allocations: 14.03 kB / 0.6926 GB, free: 121.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02815/2.296, allocations: 7.505 MB / 0.7 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/2.297, allocations: 332.4 kB / 0.7003 GB, free: 120.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001631/2.299, allocations: 51.27 kB / 0.7003 GB, free: 120.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004162/2.303, allocations: 139.8 kB / 0.7005 GB, free: 120.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009506/2.304, allocations: 164.3 kB / 0.7006 GB, free: 120.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004319/2.305, allocations: 79.75 kB / 0.7007 GB, free: 120.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006196/2.311, allocations: 1.708 MB / 0.7024 GB, free: 119.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.252e-06/2.311, allocations: 0 / 0.7024 GB, free: 119.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009049/2.32, allocations: 1.007 MB / 0.7034 GB, free: 119.5 MB / 474.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.001151/2.321, allocations: 208.3 kB / 0.7036 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01709/2.338, allocations: 6.138 MB / 0.7096 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/2.338, allocations: 0 / 0.7096 GB, free: 117.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007759/2.346, allocations: 2.6 MB / 0.7121 GB, free: 116.6 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/2.349, allocations: 393.9 kB / 0.7125 GB, free: 116.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03129/2.381, allocations: 13.5 MB / 0.7257 GB, free: 109.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00976/2.391, allocations: 3.603 MB / 0.7292 GB, free: 106.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002458/2.393, allocations: 289.1 kB / 0.7294 GB, free: 106.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.363e-06/2.393, allocations: 0 / 0.7294 GB, free: 106.1 MB / 474.7 MB Notification: Performance of Templates: time 0.24/2.633, allocations: 114.2 MB / 0.841 GB, free: 14.6 MB / 490.7 MB