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.FreeMotionScalarInit2.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.04/2.04, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005214/0.0005214, allocations: 12 kB / 314.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.311, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.04079/0.3519, allocations: 28.09 MB / 397.4 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01944/0.3714, allocations: 7.259 MB / 404.6 MB, free: 7.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004787/0.3762, allocations: 135.6 kB / 404.8 MB, free: 7.137 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004484/0.3808, allocations: 1.454 MB / 406.2 MB, free: 5.676 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01484/0.3956, allocations: 4.247 MB / 410.5 MB, free: 1.418 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.398, allocations: 427.2 kB / 410.9 MB, free: 1 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004803/0.4028, allocations: 2.148 MB / 413 MB, free: 14.85 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00626/0.4091, allocations: 3.338 MB / 416.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.4107, allocations: 0.9381 MB / 417.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002125/0.4129, allocations: 1.3 MB / 418.6 MB, free: 9.215 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005263/0.4134, allocations: 148 kB / 418.7 MB, free: 9.07 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002189/0.4156, allocations: 0.866 MB / 419.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002053/0.4177, allocations: 1.539 MB / 421.1 MB, free: 6.66 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.4188, allocations: 0.8505 MB / 422 MB, free: 5.801 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008569/0.4273, allocations: 5.643 MB / 427.6 MB, free: 148 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.4274, allocations: 0 / 427.6 MB, free: 148 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4274, allocations: 0 / 427.6 MB, free: 148 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001408/0.4276, allocations: 0 / 427.6 MB, free: 148 kB / 346.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.01292/0.4405, allocations: 4.159 MB / 431.8 MB, free: 11.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4406, allocations: 12.03 kB / 431.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001758/0.4423, allocations: 0.7949 MB / 432.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02219/0.4645, allocations: 3.812 MB / 436.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006539/0.4711, allocations: 2.332 MB / 438.7 MB, free: 4.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/0.4714, allocations: 225.6 kB / 439 MB, free: 4.672 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.4724, allocations: 295.7 kB / 439.3 MB, free: 4.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02778/0.5002, allocations: 11.97 MB / 451.2 MB, free: 7.969 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.5004, allocations: 23.81 kB / 451.3 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006282/0.501, allocations: 135.8 kB / 451.4 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006877/0.5079, allocations: 2.707 MB / 454.1 MB, free: 5.102 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03113/0.5391, allocations: 11.15 MB / 465.2 MB, free: 9.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3561/0.8952, allocations: 37.11 MB / 0.4906 GB, free: 66.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.9073, allocations: 4.699 MB / 0.4952 GB, free: 64.03 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/0.9088, allocations: 1.315 MB / 0.4965 GB, free: 62.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.9088, allocations: 51.97 kB / 0.4965 GB, free: 62.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.162e-06/0.9089, allocations: 0 / 0.4965 GB, free: 62.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.0538/0.9627, allocations: 14.09 MB / 0.5103 GB, free: 51.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.9627, allocations: 73.41 kB / 0.5103 GB, free: 51.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004009/0.9668, allocations: 2.917 MB / 0.5132 GB, free: 48.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003247/0.9671, allocations: 53.7 kB / 0.5132 GB, free: 48.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/0.9687, allocations: 2.959 MB / 0.5161 GB, free: 45.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009098/0.9696, allocations: 0.9334 MB / 0.517 GB, free: 44.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003421/0.9699, allocations: 112.6 kB / 0.5171 GB, free: 44.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000295/0.9702, allocations: 0.5625 MB / 0.5177 GB, free: 44.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004406/0.9747, allocations: 2.279 MB / 0.5199 GB, free: 41.8 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00585/0.9805, allocations: 5.424 MB / 0.5252 GB, free: 34.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006712/0.9873, allocations: 3.517 MB / 0.5286 GB, free: 31.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.045e-05/0.9874, allocations: 32 kB / 0.5287 GB, free: 31.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01943/1.007, allocations: 8.326 MB / 0.5368 GB, free: 22.95 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.973e-05/1.007, allocations: 52 kB / 0.5369 GB, free: 22.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/1.007, allocations: 112 kB / 0.537 GB, free: 22.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005531/1.013, allocations: 1.033 MB / 0.538 GB, free: 21.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006493/1.019, allocations: 1.318 MB / 0.5393 GB, free: 20.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00352/1.023, allocations: 2.505 MB / 0.5417 GB, free: 17.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00466/1.027, allocations: 308.7 kB / 0.542 GB, free: 17.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005617/1.028, allocations: 334.5 kB / 0.5423 GB, free: 17.15 MB / 394.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.004255/1.032, allocations: 2.274 MB / 0.5445 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005379/1.033, allocations: 284.2 kB / 0.5448 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/1.046, allocations: 4.903 MB / 0.5496 GB, free: 9.609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.428e-05/1.046, allocations: 48.69 kB / 0.5496 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/1.046, allocations: 0 / 0.5496 GB, free: 9.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/1.046, allocations: 11.97 kB / 0.5497 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0262/1.072, allocations: 11.46 MB / 0.5609 GB, free: 13.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.037e-05/1.072, allocations: 8 kB / 0.5609 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003224/1.075, allocations: 412.2 kB / 0.5613 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004875/1.08, allocations: 0.6227 MB / 0.5619 GB, free: 12.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002244/1.081, allocations: 54.41 kB / 0.5619 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003358/1.084, allocations: 2.088 MB / 0.564 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.476e-05/1.084, allocations: 15.92 kB / 0.564 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0173/1.101, allocations: 6.951 MB / 0.5708 GB, free: 3.492 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000838/1.102, allocations: 341.2 kB / 0.5711 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006233/1.103, allocations: 48 kB / 0.5711 GB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/1.105, allocations: 130.2 kB / 0.5712 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004094/1.105, allocations: 157.6 kB / 0.5714 GB, free: 2.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/1.105, allocations: 75.98 kB / 0.5715 GB, free: 2.738 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003507/1.109, allocations: 1.788 MB / 0.5732 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.109, allocations: 0 / 0.5732 GB, free: 0.9453 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005189/1.114, allocations: 1.005 MB / 0.5742 GB, free: 15.94 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.0183/1.133, allocations: 7.645 MB / 0.5817 GB, free: 8.113 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01472/1.147, allocations: 5.965 MB / 0.5875 GB, free: 2.105 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/1.147, allocations: 0 / 0.5875 GB, free: 2.105 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006283/1.154, allocations: 2.372 MB / 0.5898 GB, free: 15.68 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/1.156, allocations: 396.4 kB / 0.5902 GB, free: 15.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0749/1.231, allocations: 33.96 MB / 0.6233 GB, free: 10.54 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0059/1.237, allocations: 3.6 MB / 0.6269 GB, free: 6.906 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004361/1.241, allocations: 1.979 MB / 0.6288 GB, free: 4.926 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/1.241, allocations: 0 / 0.6288 GB, free: 4.926 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.317/5.559, allocations: 139.5 MB / 0.765 GB, free: 67.62 MB / 490.7 MB