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.833/1.833, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004382, allocations: 16 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2806, allocations: 48.71 MB / 331.2 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.03942/0.3201, allocations: 28.07 MB / 359.3 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01919/0.3393, allocations: 7.254 MB / 366.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005718/0.3451, allocations: 131.7 kB / 366.6 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003892/0.349, allocations: 1.447 MB / 368.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01415/0.3632, allocations: 4.258 MB / 372.3 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.3652, allocations: 431.3 kB / 372.8 MB, free: 4.867 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004138/0.3694, allocations: 2.135 MB / 374.9 MB, free: 2.727 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005876/0.3753, allocations: 3.345 MB / 378.3 MB, free: 15.33 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.3768, allocations: 0.9342 MB / 379.2 MB, free: 14.39 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001963/0.3788, allocations: 1.3 MB / 380.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004293/0.3793, allocations: 152 kB / 380.6 MB, free: 12.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00197/0.3813, allocations: 0.8581 MB / 381.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001846/0.3831, allocations: 1.543 MB / 383 MB, free: 10.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.3842, allocations: 0.8427 MB / 383.9 MB, free: 9.684 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007852/0.392, allocations: 5.651 MB / 389.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.3921, allocations: 0 / 389.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.083e-06/0.3921, allocations: 0 / 389.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001052/0.3922, allocations: 7.938 kB / 389.5 MB, free: 4.008 MB / 314.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.01015/0.4024, allocations: 4.155 MB / 393.7 MB, free: 15.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.4024, allocations: 11.97 kB / 393.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01675/0.4192, allocations: 3.812 MB / 397.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/0.425, allocations: 2.329 MB / 399.8 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.4253, allocations: 229.6 kB / 400.1 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009207/0.4262, allocations: 295.7 kB / 400.4 MB, free: 9.055 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02547/0.4517, allocations: 11.98 MB / 412.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/0.4519, allocations: 23.81 kB / 412.4 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000595/0.4525, allocations: 139.8 kB / 412.5 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005708/0.4582, allocations: 2.699 MB / 415.2 MB, free: 9.773 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02863/0.4869, allocations: 11.15 MB / 426.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06934/0.5563, allocations: 37.1 MB / 463.4 MB, free: 8.664 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01248/0.5688, allocations: 4.695 MB / 468.1 MB, free: 3.734 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001728/0.5706, allocations: 1.319 MB / 469.5 MB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.897e-05/0.5707, allocations: 52.56 kB / 469.5 MB, free: 2.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 9.824e-06/0.5707, allocations: 4.094 kB / 469.5 MB, free: 2.133 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.05179/0.6225, allocations: 14.09 MB / 483.6 MB, free: 3.852 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.6226, allocations: 77.36 kB / 483.7 MB, free: 3.766 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005191/0.6278, allocations: 2.909 MB / 486.6 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003379/0.6282, allocations: 61.69 kB / 486.6 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2227/0.8508, allocations: 2.948 MB / 489.6 MB, free: 128.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/0.8519, allocations: 0.941 MB / 490.5 MB, free: 127.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003635/0.8523, allocations: 116.5 kB / 490.6 MB, free: 127.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004219/0.8527, allocations: 0.558 MB / 491.2 MB, free: 127.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004899/0.8576, allocations: 2.279 MB / 493.5 MB, free: 126.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006447/0.8641, allocations: 5.427 MB / 498.9 MB, free: 121.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006669/0.8708, allocations: 3.507 MB / 0.4906 GB, free: 120.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001289/0.871, allocations: 31.22 kB / 0.4907 GB, free: 120.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01871/0.8897, allocations: 8.327 MB / 0.4988 GB, free: 117.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.8899, allocations: 50.75 kB / 0.4989 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/0.89, allocations: 109.9 kB / 0.499 GB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003901/0.8939, allocations: 1.033 MB / 0.5 GB, free: 117.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005124/0.8991, allocations: 1.314 MB / 0.5013 GB, free: 117.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.9022, allocations: 2.516 MB / 0.5037 GB, free: 115.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/0.9066, allocations: 311.1 kB / 0.504 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006005/0.9072, allocations: 334 kB / 0.5043 GB, free: 115.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * 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 (711): * Single equations (assignments): 702 * 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.004044/0.9113, allocations: 2.276 MB / 0.5065 GB, free: 114.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004883/0.9118, allocations: 277 kB / 0.5068 GB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/0.9221, allocations: 4.905 MB / 0.5116 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-05/0.9222, allocations: 48.92 kB / 0.5116 GB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.507e-06/0.9222, allocations: 0 / 0.5116 GB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.867e-05/0.9223, allocations: 7.969 kB / 0.5117 GB, free: 109.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02132/0.9436, allocations: 11.46 MB / 0.5228 GB, free: 98.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.041e-05/0.9437, allocations: 15.08 kB / 0.5229 GB, free: 98.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.9458, allocations: 415.3 kB / 0.5233 GB, free: 97.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003067/0.9488, allocations: 0.6194 MB / 0.5239 GB, free: 97.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002402/0.9491, allocations: 51.98 kB / 0.5239 GB, free: 97.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/0.9515, allocations: 2.088 MB / 0.5259 GB, free: 94.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/0.9516, allocations: 15.89 kB / 0.526 GB, free: 94.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01192/0.9635, allocations: 6.955 MB / 0.5328 GB, free: 87.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006008/0.9642, allocations: 333.4 kB / 0.5331 GB, free: 87.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004849/0.9647, allocations: 51.98 kB / 0.5331 GB, free: 87.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/0.9662, allocations: 127.8 kB / 0.5332 GB, free: 87.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003304/0.9665, allocations: 157.6 kB / 0.5334 GB, free: 86.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002168/0.9667, allocations: 72.69 kB / 0.5335 GB, free: 86.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002697/0.9694, allocations: 1.791 MB / 0.5352 GB, free: 85.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.49e-07/0.9695, allocations: 0 / 0.5352 GB, free: 85.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004876/0.9744, allocations: 1.006 MB / 0.5362 GB, free: 84.1 MB / 410.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.0005445/0.9749, allocations: 208 kB / 0.5364 GB, free: 83.9 MB / 410.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.01068/0.9856, allocations: 5.967 MB / 0.5422 GB, free: 77.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.205e-06/0.9857, allocations: 4.188 kB / 0.5422 GB, free: 77.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00446/0.9901, allocations: 2.382 MB / 0.5446 GB, free: 75.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.9922, allocations: 396.5 kB / 0.5449 GB, free: 75.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.012, allocations: 13.46 MB / 0.5581 GB, free: 61.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004464/1.017, allocations: 3.6 MB / 0.5616 GB, free: 57.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001323/1.018, allocations: 291.4 kB / 0.5619 GB, free: 57.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.607e-06/1.018, allocations: 0 / 0.5619 GB, free: 57.54 MB / 410.7 MB Notification: Performance of Templates: time 0.3592/1.377, allocations: 114.3 MB / 0.6735 GB, free: 110 MB / 426.7 MB