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 2.3/2.3, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006861/0.000686, allocations: 16 kB / 282.7 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3833/0.3841, allocations: 48.7 MB / 331.4 MB, free: 6.402 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1718/0.5559, allocations: 91.26 MB / 422.6 MB, free: 3.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.5563, allocations: 71.97 kB / 422.7 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6632/1.22, allocations: 90.89 MB / 0.5015 GB, free: 88.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.069e-06/1.22, allocations: 3.781 kB / 0.5015 GB, free: 88.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001929/1.22, allocations: 82.36 kB / 0.5016 GB, free: 88.96 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.02375/1.244, allocations: 4.44 MB / 0.506 GB, free: 86.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/1.244, allocations: 10.31 kB / 0.506 GB, free: 86.54 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005141/1.249, allocations: 0.8622 MB / 0.5068 GB, free: 85.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02722/1.276, allocations: 3.586 MB / 0.5103 GB, free: 84.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.294, allocations: 4.719 MB / 0.5149 GB, free: 81.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004012/1.294, allocations: 339 kB / 0.5152 GB, free: 81.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/1.297, allocations: 444.4 kB / 0.5157 GB, free: 80.81 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03454/1.332, allocations: 11.49 MB / 0.5269 GB, free: 68.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/1.332, allocations: 31.75 kB / 0.5269 GB, free: 68.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002638/1.335, allocations: 201.2 kB / 0.5271 GB, free: 68.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002701/1.338, allocations: 1.246 MB / 0.5283 GB, free: 67.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03103/1.369, allocations: 11.09 MB / 0.5392 GB, free: 56.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07783/1.447, allocations: 38.04 MB / 0.5763 GB, free: 17.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01368/1.46, allocations: 4.682 MB / 0.5809 GB, free: 12.81 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001505/1.462, allocations: 1.32 MB / 0.5822 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/1.462, allocations: 52.56 kB / 0.5822 GB, free: 11.22 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 7.454e-06/1.462, allocations: 0 / 0.5822 GB, free: 11.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.06651/1.529, allocations: 14.35 MB / 0.5962 GB, free: 12.69 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/1.529, allocations: 73.41 kB / 0.5963 GB, free: 12.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006522/1.535, allocations: 2.505 MB / 0.5988 GB, free: 10.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005821/1.536, allocations: 57.7 kB / 0.5988 GB, free: 10.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003241/1.539, allocations: 2.946 MB / 0.6017 GB, free: 7.074 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001852/1.541, allocations: 0.9419 MB / 0.6026 GB, free: 6.141 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008268/1.542, allocations: 112 kB / 0.6027 GB, free: 6.031 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006872/1.543, allocations: 0.5547 MB / 0.6033 GB, free: 5.465 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006768/1.549, allocations: 2.279 MB / 0.6055 GB, free: 3.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01026/1.56, allocations: 5.405 MB / 0.6108 GB, free: 12.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009608/1.569, allocations: 3.517 MB / 0.6142 GB, free: 8.715 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/1.57, allocations: 35.95 kB / 0.6142 GB, free: 8.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02781/1.597, allocations: 8.319 MB / 0.6224 GB, free: 356 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.597, allocations: 55.94 kB / 0.6224 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001874/1.598, allocations: 112.2 kB / 0.6225 GB, free: 188 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3142/1.912, allocations: 1.025 MB / 0.6235 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008721/1.921, allocations: 1.313 MB / 0.6248 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004403/1.925, allocations: 2.492 MB / 0.6272 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005718/1.931, allocations: 317.8 kB / 0.6275 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/1.932, allocations: 330.9 kB / 0.6278 GB, free: 105.1 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.006832/1.939, allocations: 2.267 MB / 0.6301 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007467/1.94, allocations: 282.2 kB / 0.6303 GB, free: 105 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/1.956, allocations: 4.896 MB / 0.6351 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000126/1.956, allocations: 54.52 kB / 0.6352 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/1.956, allocations: 1.219 kB / 0.6352 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.483e-05/1.956, allocations: 13.89 kB / 0.6352 GB, free: 104.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03139/1.988, allocations: 11.5 MB / 0.6464 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.931e-05/1.988, allocations: 8.875 kB / 0.6464 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003434/1.991, allocations: 412.8 kB / 0.6468 GB, free: 103.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004932/1.996, allocations: 0.6137 MB / 0.6474 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005478/1.997, allocations: 59.14 kB / 0.6475 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003131/2, allocations: 2.104 MB / 0.6495 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/2, allocations: 10.78 kB / 0.6495 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01778/2.018, allocations: 7.726 MB / 0.6571 GB, free: 98.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008601/2.019, allocations: 336.8 kB / 0.6574 GB, free: 98.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007597/2.02, allocations: 49.11 kB / 0.6574 GB, free: 98.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00221/2.022, allocations: 128.2 kB / 0.6576 GB, free: 98.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005023/2.022, allocations: 157.8 kB / 0.6577 GB, free: 98.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002455/2.023, allocations: 75.56 kB / 0.6578 GB, free: 98.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003748/2.026, allocations: 1.705 MB / 0.6595 GB, free: 97.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.026, allocations: 3.344 kB / 0.6595 GB, free: 97.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007122/2.034, allocations: 0.9967 MB / 0.6604 GB, free: 97.59 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.01925/2.053, allocations: 10.68 MB / 0.6709 GB, free: 91.11 MB / 426.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.01447/2.067, allocations: 5.97 MB / 0.6767 GB, free: 89.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/2.067, allocations: 0 / 0.6767 GB, free: 89.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006895/2.074, allocations: 2.381 MB / 0.679 GB, free: 87.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/2.078, allocations: 397.1 kB / 0.6794 GB, free: 87.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4198/2.497, allocations: 109 MB / 0.7858 GB, free: 122.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008841/2.506, allocations: 3.612 MB / 0.7894 GB, free: 121.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00536/2.512, allocations: 1.99 MB / 0.7913 GB, free: 121.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/2.512, allocations: 0 / 0.7913 GB, free: 121.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.342/6.854, allocations: 139.1 MB / 0.9272 GB, free: 17.25 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat