Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.242/2.242, allocations: 235 MB / 248.1 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.083e-05, allocations: 4 kB / 309.7 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3708, allocations: 54.86 MB / 364.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1505/0.5214, allocations: 97.89 MB / 462.4 MB, free: 14.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5217, allocations: 79.55 kB / 462.5 MB, free: 14.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.149, allocations: 90.65 MB / 0.5402 GB, free: 108 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.36e-06/1.15, allocations: 0 / 0.5402 GB, free: 108 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000195/1.15, allocations: 75.78 kB / 0.5403 GB, free: 108 MB / 458.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.02451/1.174, allocations: 4.261 MB / 0.5444 GB, free: 106.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/1.174, allocations: 9.656 kB / 0.5444 GB, free: 106.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03554/1.21, allocations: 3.557 MB / 0.5479 GB, free: 105.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0227/1.233, allocations: 4.665 MB / 0.5525 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006176/1.233, allocations: 333.4 kB / 0.5528 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003458/1.237, allocations: 439.2 kB / 0.5532 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04428/1.281, allocations: 10.95 MB / 0.5639 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00033/1.282, allocations: 30.91 kB / 0.5639 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/1.284, allocations: 201.5 kB / 0.5641 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004014/1.288, allocations: 1.229 MB / 0.5653 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03067/1.319, allocations: 10.52 MB / 0.5756 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06215/1.381, allocations: 37.33 MB / 0.6121 GB, free: 75.42 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009485/1.391, allocations: 4.354 MB / 0.6163 GB, free: 71.33 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003564/1.395, allocations: 2.135 MB / 0.6184 GB, free: 69.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001233/1.396, allocations: 1.319 MB / 0.6197 GB, free: 67.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/1.396, allocations: 60.45 kB / 0.6197 GB, free: 67.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 8.098e-06/1.396, allocations: 0 / 0.6197 GB, free: 67.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=265): time 0.04407/1.44, allocations: 11.16 MB / 0.6306 GB, free: 58.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/1.44, allocations: 77.41 kB / 0.6307 GB, free: 58.37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004877/1.445, allocations: 2.486 MB / 0.6331 GB, free: 55.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004454/1.445, allocations: 61.7 kB / 0.6332 GB, free: 55.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001975/1.447, allocations: 2.913 MB / 0.636 GB, free: 52.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/1.449, allocations: 0.9828 MB / 0.637 GB, free: 51.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005496/1.449, allocations: 112 kB / 0.6371 GB, free: 51.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004213/1.45, allocations: 0.5588 MB / 0.6377 GB, free: 51.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004603/1.454, allocations: 2.284 MB / 0.6399 GB, free: 48.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00644/1.461, allocations: 5.418 MB / 0.6452 GB, free: 41.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006336/1.467, allocations: 3.57 MB / 0.6487 GB, free: 38.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.708e-05/1.467, allocations: 35.94 kB / 0.6487 GB, free: 38.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.0195/1.487, allocations: 8.379 MB / 0.6569 GB, free: 29.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.169e-05/1.487, allocations: 52 kB / 0.6569 GB, free: 29.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001183/1.487, allocations: 108.8 kB / 0.657 GB, free: 29.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004316/1.491, allocations: 1.056 MB / 0.6581 GB, free: 28.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005574/1.497, allocations: 1.333 MB / 0.6594 GB, free: 27.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003061/1.5, allocations: 2.459 MB / 0.6618 GB, free: 24.83 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005095/1.505, allocations: 323.7 kB / 0.6621 GB, free: 24.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.506, allocations: 337.6 kB / 0.6624 GB, free: 24.19 MB / 458.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 () * 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.001609/1.508, allocations: 0.5237 MB / 0.6629 GB, free: 23.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005722/1.509, allocations: 280.3 kB / 0.6632 GB, free: 23.38 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01165/1.52, allocations: 5.018 MB / 0.6681 GB, free: 18.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.772e-05/1.52, allocations: 47.98 kB / 0.6681 GB, free: 18.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/1.52, allocations: 0 / 0.6681 GB, free: 18.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.005e-05/1.521, allocations: 11.95 kB / 0.6681 GB, free: 18.24 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02733/1.548, allocations: 11.57 MB / 0.6794 GB, free: 6.555 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.622e-05/1.548, allocations: 11.98 kB / 0.6794 GB, free: 6.543 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.55, allocations: 427.4 kB / 0.6799 GB, free: 6.125 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003885/1.554, allocations: 0.9112 MB / 0.6807 GB, free: 5.207 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005322/1.555, allocations: 59.97 kB / 0.6808 GB, free: 5.148 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002906/1.558, allocations: 2.275 MB / 0.683 GB, free: 2.75 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/1.558, allocations: 11.94 kB / 0.683 GB, free: 2.738 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0175/1.575, allocations: 8.089 MB / 0.6909 GB, free: 10.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009987/1.577, allocations: 333.3 kB / 0.6912 GB, free: 9.961 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008195/1.577, allocations: 48 kB / 0.6913 GB, free: 9.914 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.579, allocations: 142.8 kB / 0.6914 GB, free: 9.777 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005486/1.58, allocations: 153.6 kB / 0.6916 GB, free: 9.629 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002904/1.58, allocations: 83.97 kB / 0.6917 GB, free: 9.547 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004146/1.585, allocations: 1.686 MB / 0.6933 GB, free: 7.852 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.063e-06/1.585, allocations: 0 / 0.6933 GB, free: 7.852 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006438/1.591, allocations: 1.007 MB / 0.6943 GB, free: 6.848 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 () * 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.0008233/1.592, allocations: 211.4 kB / 0.6945 GB, free: 6.637 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01443/1.606, allocations: 6.062 MB / 0.7004 GB, free: 0.5391 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/1.606, allocations: 0 / 0.7004 GB, free: 0.5391 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2718/1.878, allocations: 2.561 MB / 0.7029 GB, free: 112.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/1.881, allocations: 391.4 kB / 0.7033 GB, free: 112.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/1.907, allocations: 9.812 MB / 0.7129 GB, free: 110.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008325/1.916, allocations: 3.601 MB / 0.7164 GB, free: 110.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/1.917, allocations: 289.8 kB / 0.7167 GB, free: 110.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.882e-06/1.917, allocations: 0 / 0.7167 GB, free: 110.1 MB / 474.7 MB Notification: Performance of Templates: time 0.1558/2.073, allocations: 114.2 MB / 0.8282 GB, free: 36.58 MB / 474.7 MB