Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.832/1.832, allocations: 209.2 MB / 224.8 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004239/0.000424, allocations: 16 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3478, allocations: 48.71 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04041/0.3882, allocations: 28.07 MB / 359.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02022/0.4085, allocations: 7.242 MB / 366.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005865/0.4144, allocations: 135.6 kB / 366.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00526/0.4197, allocations: 1.454 MB / 368.2 MB, free: 9.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01603/0.4358, allocations: 4.243 MB / 372.4 MB, free: 5.266 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002703/0.4386, allocations: 435.3 kB / 372.9 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005374/0.444, allocations: 2.145 MB / 375 MB, free: 2.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006893/0.4509, allocations: 3.346 MB / 378.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001923/0.4529, allocations: 0.9303 MB / 379.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00258/0.4555, allocations: 1.304 MB / 380.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007937/0.4564, allocations: 148 kB / 380.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002564/0.4589, allocations: 0.8543 MB / 381.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002339/0.4613, allocations: 1.539 MB / 383.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.4626, allocations: 0.8544 MB / 384 MB, free: 9.645 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00889/0.4715, allocations: 5.648 MB / 389.6 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.4715, allocations: 0 / 389.6 MB, free: 3.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.941e-06/0.4715, allocations: 0 / 389.6 MB, free: 3.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002074/0.4718, allocations: 3.938 kB / 389.6 MB, free: 3.977 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.01371/0.4855, allocations: 4.158 MB / 393.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.4855, allocations: 8.031 kB / 393.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002307/0.4879, allocations: 0.7949 MB / 394.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02315/0.511, allocations: 3.812 MB / 398.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006822/0.5179, allocations: 2.329 MB / 400.7 MB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002725/0.5182, allocations: 225.6 kB / 400.9 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/0.5196, allocations: 295.7 kB / 401.2 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.5488, allocations: 11.99 MB / 413.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001254/0.5489, allocations: 23.81 kB / 413.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007235/0.5497, allocations: 139.8 kB / 413.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007439/0.5571, allocations: 2.699 MB / 416.1 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03323/0.5904, allocations: 11.16 MB / 427.2 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08153/0.672, allocations: 37.1 MB / 464.3 MB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0145/0.6865, allocations: 4.699 MB / 469 MB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001818/0.6884, allocations: 1.315 MB / 470.3 MB, free: 1.352 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.825e-05/0.6885, allocations: 56.56 kB / 470.4 MB, free: 1.289 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.001e-06/0.6885, allocations: 0 / 470.4 MB, free: 1.289 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.06544/0.7539, allocations: 14.09 MB / 484.5 MB, free: 3.008 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.7541, allocations: 81.36 kB / 484.6 MB, free: 2.918 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.268/1.022, allocations: 2.904 MB / 487.5 MB, free: 128.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005079/1.023, allocations: 57.67 kB / 487.5 MB, free: 128.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002477/1.025, allocations: 2.953 MB / 490.5 MB, free: 127.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.027, allocations: 0.9405 MB / 491.4 MB, free: 126.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004936/1.027, allocations: 111.6 kB / 491.5 MB, free: 126.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000406/1.027, allocations: 0.557 MB / 492.1 MB, free: 126.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005623/1.033, allocations: 2.277 MB / 494.4 MB, free: 125.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00787/1.041, allocations: 5.429 MB / 499.8 MB, free: 120.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008115/1.049, allocations: 3.518 MB / 0.4915 GB, free: 119.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001477/1.049, allocations: 31.16 kB / 0.4916 GB, free: 119.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.02398/1.073, allocations: 8.322 MB / 0.4997 GB, free: 116.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/1.074, allocations: 51.75 kB / 0.4997 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/1.074, allocations: 111.3 kB / 0.4998 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006228/1.08, allocations: 1.037 MB / 0.5008 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007543/1.087, allocations: 1.312 MB / 0.5021 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/1.091, allocations: 2.496 MB / 0.5046 GB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005241/1.097, allocations: 326.4 kB / 0.5049 GB, free: 114.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008849/1.097, allocations: 329.7 kB / 0.5052 GB, free: 114.2 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.004966/1.102, allocations: 2.268 MB / 0.5074 GB, free: 113.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000583/1.103, allocations: 283.7 kB / 0.5077 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/1.117, allocations: 4.911 MB / 0.5125 GB, free: 108.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.714e-05/1.117, allocations: 44 kB / 0.5125 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/1.117, allocations: 0 / 0.5125 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.621e-05/1.117, allocations: 15.95 kB / 0.5125 GB, free: 108.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02854/1.146, allocations: 11.46 MB / 0.5237 GB, free: 97.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.146, allocations: 8 kB / 0.5237 GB, free: 97.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003324/1.149, allocations: 407.4 kB / 0.5241 GB, free: 96.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005094/1.154, allocations: 0.6231 MB / 0.5247 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003607/1.155, allocations: 55.98 kB / 0.5248 GB, free: 96.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003065/1.158, allocations: 2.078 MB / 0.5268 GB, free: 93.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/1.158, allocations: 11.94 kB / 0.5268 GB, free: 93.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/1.174, allocations: 6.964 MB / 0.5336 GB, free: 86.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007441/1.175, allocations: 333.4 kB / 0.5339 GB, free: 86.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007867/1.176, allocations: 55.27 kB / 0.534 GB, free: 86.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/1.178, allocations: 133.2 kB / 0.5341 GB, free: 86.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004159/1.178, allocations: 157.6 kB / 0.5343 GB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002299/1.179, allocations: 77.47 kB / 0.5343 GB, free: 85.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003359/1.182, allocations: 1.791 MB / 0.5361 GB, free: 84.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.182, allocations: 0 / 0.5361 GB, free: 84.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005577/1.188, allocations: 1.007 MB / 0.5371 GB, free: 83.11 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.01719/1.205, allocations: 7.638 MB / 0.5445 GB, free: 75.29 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.01391/1.219, allocations: 5.958 MB / 0.5504 GB, free: 69.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/1.219, allocations: 0.9375 kB / 0.5504 GB, free: 69.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006311/1.225, allocations: 2.383 MB / 0.5527 GB, free: 66.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002871/1.228, allocations: 393.5 kB / 0.5531 GB, free: 66.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07226/1.3, allocations: 33.95 MB / 0.5862 GB, free: 29.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005748/1.306, allocations: 3.613 MB / 0.5897 GB, free: 26.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004301/1.311, allocations: 1.972 MB / 0.5917 GB, free: 24.11 MB / 410.7 MB Notification: Performance of SimCode: time 2.315e-06/1.311, allocations: 0 / 0.5917 GB, free: 24.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.883/6.193, allocations: 139.5 MB / 0.7279 GB, free: 73.55 MB / 442.7 MB