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.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 1.796/1.796, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004373, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2819, allocations: 48.7 MB / 331.3 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4146, allocations: 91.25 MB / 422.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.4148, allocations: 79.95 kB / 422.6 MB, free: 3.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5403/0.9552, allocations: 90.9 MB / 0.5015 GB, free: 88.93 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.371e-06/0.9552, allocations: 0 / 0.5015 GB, free: 88.93 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001433/0.9554, allocations: 84.62 kB / 0.5016 GB, free: 88.93 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01452/0.9699, allocations: 4.434 MB / 0.5059 GB, free: 86.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.97, allocations: 10.16 kB / 0.5059 GB, free: 86.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02014/0.9901, allocations: 3.579 MB / 0.5094 GB, free: 85.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/1.004, allocations: 4.724 MB / 0.514 GB, free: 82.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002818/1.005, allocations: 344.3 kB / 0.5143 GB, free: 82.25 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/1.006, allocations: 440.1 kB / 0.5148 GB, free: 81.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/1.03, allocations: 11.49 MB / 0.526 GB, free: 69.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001465/1.031, allocations: 31.73 kB / 0.526 GB, free: 69.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001057/1.032, allocations: 202.7 kB / 0.5262 GB, free: 69.79 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001735/1.033, allocations: 1.244 MB / 0.5274 GB, free: 68.55 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02359/1.057, allocations: 11.09 MB / 0.5382 GB, free: 57.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.055/1.112, allocations: 38.03 MB / 0.5754 GB, free: 18.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/1.122, allocations: 4.68 MB / 0.58 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/1.123, allocations: 1.318 MB / 0.5812 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/1.123, allocations: 52.56 kB / 0.5813 GB, free: 12.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.688e-06/1.123, allocations: 0 / 0.5813 GB, free: 12.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.04828/1.172, allocations: 14.35 MB / 0.5953 GB, free: 13.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/1.172, allocations: 73.41 kB / 0.5954 GB, free: 13.65 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004899/1.177, allocations: 2.505 MB / 0.5978 GB, free: 11.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003613/1.177, allocations: 61.64 kB / 0.5979 GB, free: 11.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/1.18, allocations: 2.937 MB / 0.6008 GB, free: 8.129 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/1.181, allocations: 0.942 MB / 0.6017 GB, free: 7.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/1.181, allocations: 119.7 kB / 0.6018 GB, free: 7.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005503/1.182, allocations: 0.5586 MB / 0.6023 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00485/1.187, allocations: 2.272 MB / 0.6046 GB, free: 4.234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008053/1.195, allocations: 5.405 MB / 0.6098 GB, free: 13.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007456/1.202, allocations: 3.521 MB / 0.6133 GB, free: 9.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.823e-05/1.202, allocations: 28 kB / 0.6133 GB, free: 9.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02104/1.223, allocations: 8.324 MB / 0.6214 GB, free: 1.406 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.224, allocations: 56.84 kB / 0.6215 GB, free: 1.352 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/1.224, allocations: 112 kB / 0.6216 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004378/1.228, allocations: 1.028 MB / 0.6226 GB, free: 208 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2457/1.474, allocations: 1.312 MB / 0.6239 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/1.477, allocations: 2.489 MB / 0.6263 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005476/1.483, allocations: 312.3 kB / 0.6266 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009521/1.484, allocations: 334.8 kB / 0.6269 GB, free: 105.2 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 (710): * Single equations (assignments): 701 * 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 {(3,100.0%),(2,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.005119/1.489, allocations: 2.272 MB / 0.6291 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000574/1.49, allocations: 280.7 kB / 0.6294 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.504, allocations: 4.898 MB / 0.6342 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.83e-05/1.504, allocations: 47.56 kB / 0.6342 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/1.504, allocations: 5.031 kB / 0.6342 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.354e-05/1.504, allocations: 12.62 kB / 0.6342 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0258/1.53, allocations: 11.5 MB / 0.6455 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.472e-05/1.53, allocations: 12.45 kB / 0.6455 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/1.532, allocations: 408.2 kB / 0.6459 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003669/1.536, allocations: 0.619 MB / 0.6465 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004553/1.536, allocations: 57.45 kB / 0.6465 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/1.539, allocations: 2.101 MB / 0.6486 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/1.539, allocations: 15.06 kB / 0.6486 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01418/1.553, allocations: 7.721 MB / 0.6561 GB, free: 98.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/1.554, allocations: 335.5 kB / 0.6565 GB, free: 98.45 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006221/1.555, allocations: 47.11 kB / 0.6565 GB, free: 98.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.556, allocations: 127.1 kB / 0.6566 GB, free: 98.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003885/1.557, allocations: 164.1 kB / 0.6568 GB, free: 98.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/1.557, allocations: 72.59 kB / 0.6569 GB, free: 98.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003037/1.56, allocations: 1.71 MB / 0.6585 GB, free: 97.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.3e-07/1.56, allocations: 1.312 kB / 0.6585 GB, free: 97.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005513/1.566, allocations: 0.9963 MB / 0.6595 GB, free: 97.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_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 (207): * Single equations (assignments): 198 * 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.0005304/1.566, allocations: 204.4 kB / 0.6597 GB, free: 97.52 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01164/1.578, allocations: 5.96 MB / 0.6655 GB, free: 95.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/1.578, allocations: 2.188 kB / 0.6655 GB, free: 95.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005249/1.583, allocations: 2.38 MB / 0.6678 GB, free: 94.65 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/1.586, allocations: 399.9 kB / 0.6682 GB, free: 94.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0228/1.608, allocations: 13.43 MB / 0.6813 GB, free: 86.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005496/1.614, allocations: 3.616 MB / 0.6849 GB, free: 83.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/1.615, allocations: 279.9 kB / 0.6851 GB, free: 83.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.688e-06/1.615, allocations: 0 / 0.6851 GB, free: 83.09 MB / 426.7 MB Notification: Performance of Templates: time 0.414/2.029, allocations: 113.8 MB / 0.7963 GB, free: 120.5 MB / 442.7 MB