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.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.052/2.052, allocations: 234.9 MB / 250.5 MB, free: 10.66 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003917, allocations: 16 kB / 314.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.316, allocations: 54.87 MB / 369.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.08758/0.4036, allocations: 61.13 MB / 430.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03572/0.4394, allocations: 14.46 MB / 444.9 MB, free: 15.05 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01097/0.4504, allocations: 307.2 kB / 445.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009954/0.4604, allocations: 3.118 MB / 448.3 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0304/0.4909, allocations: 8.793 MB / 457.1 MB, free: 2.805 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005208/0.4961, allocations: 0.9244 MB / 458 MB, free: 1.879 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.3693/0.8655, allocations: 18.41 MB / 476.4 MB, free: 18.93 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01263/0.8782, allocations: 6.289 MB / 482.7 MB, free: 18.46 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003151/0.8814, allocations: 1.525 MB / 484.2 MB, free: 18.46 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003945/0.8853, allocations: 2.098 MB / 486.3 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001179/0.8866, allocations: 211 kB / 486.5 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.8895, allocations: 1.027 MB / 487.6 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00291/0.8924, allocations: 2.289 MB / 489.8 MB, free: 18.45 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001662/0.8941, allocations: 1.201 MB / 491 MB, free: 18.42 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.9049, allocations: 8.195 MB / 499.2 MB, free: 16.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.905, allocations: 0 / 499.2 MB, free: 16.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.905, allocations: 0 / 499.2 MB, free: 16.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003228/0.9053, allocations: 0 / 499.2 MB, free: 16.75 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.03128/0.9366, allocations: 6.507 MB / 0.4939 GB, free: 13.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.9367, allocations: 8.531 kB / 0.4939 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003698/0.9404, allocations: 0.9578 MB / 0.4948 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.395/1.335, allocations: 14.76 MB / 0.5093 GB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/1.352, allocations: 5.002 MB / 0.5141 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003697/1.352, allocations: 340.3 kB / 0.5145 GB, free: 0.543 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002397/1.355, allocations: 461.8 kB / 0.5149 GB, free: 252 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04069/1.395, allocations: 13.74 MB / 0.5283 GB, free: 5.645 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003698/1.396, allocations: 66.58 kB / 0.5284 GB, free: 5.605 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002713/1.399, allocations: 210.1 kB / 0.5286 GB, free: 5.547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008289/1.407, allocations: 2.418 MB / 0.5309 GB, free: 3.594 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05173/1.459, allocations: 11.73 MB / 0.5424 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1111/1.57, allocations: 53.77 MB / 0.5949 GB, free: 14.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02508/1.595, allocations: 5.822 MB / 0.6006 GB, free: 9.371 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/1.596, allocations: 0.6852 MB / 0.6013 GB, free: 8.594 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.089e-05/1.596, allocations: 64.22 kB / 0.6013 GB, free: 8.527 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 6.121e-06/1.596, allocations: 4 kB / 0.6013 GB, free: 8.523 MB / 474.7 MB Notification: Performance of matching and sorting (n=324): time 0.1884/1.785, allocations: 36.77 MB / 0.6372 GB, free: 3.641 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001884/1.785, allocations: 264.5 kB / 0.6375 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0146/1.8, allocations: 5.651 MB / 0.643 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001106/1.801, allocations: 77.7 kB / 0.6431 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004902/1.806, allocations: 3.851 MB / 0.6468 GB, free: 9.781 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002535/1.808, allocations: 1.204 MB / 0.648 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001081/1.809, allocations: 152 kB / 0.6482 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006576/1.81, allocations: 0.6333 MB / 0.6488 GB, free: 7.797 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/1.821, allocations: 3.441 MB / 0.6521 GB, free: 4.355 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3303/2.151, allocations: 7.67 MB / 0.6596 GB, free: 192.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0141/2.165, allocations: 5.038 MB / 0.6646 GB, free: 191.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003241/2.166, allocations: 43.19 kB / 0.6646 GB, free: 191.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.04083/2.206, allocations: 12.67 MB / 0.677 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001704/2.207, allocations: 68.72 kB / 0.677 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002633/2.207, allocations: 146.8 kB / 0.6772 GB, free: 187.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/2.217, allocations: 2.276 MB / 0.6794 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/2.229, allocations: 1.762 MB / 0.6811 GB, free: 186.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03141/2.26, allocations: 15.75 MB / 0.6965 GB, free: 177.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01014/2.27, allocations: 466.9 kB / 0.6969 GB, free: 177.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002274/2.273, allocations: 451.6 kB / 0.6974 GB, free: 177 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 669 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (928): * Single equations (assignments): 923 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008949/2.282, allocations: 2.82 MB / 0.7001 GB, free: 174.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/2.283, allocations: 0.4889 MB / 0.7006 GB, free: 174.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0236/2.307, allocations: 7.409 MB / 0.7078 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.803e-05/2.307, allocations: 33.41 kB / 0.7079 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.776e-05/2.307, allocations: 16 kB / 0.7079 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.292e-05/2.307, allocations: 15.42 kB / 0.7079 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04931/2.356, allocations: 16.67 MB / 0.7242 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-05/2.357, allocations: 11.95 kB / 0.7242 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008287/2.365, allocations: 0.5078 MB / 0.7247 GB, free: 151.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01083/2.376, allocations: 2.015 MB / 0.7267 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001029/2.377, allocations: 69 kB / 0.7267 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03059/2.407, allocations: 14.23 MB / 0.7406 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.699e-06/2.407, allocations: 7.938 kB / 0.7406 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03098/2.438, allocations: 11.81 MB / 0.7522 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004247/2.443, allocations: 1.104 MB / 0.7532 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002103/2.445, allocations: 60 kB / 0.7533 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005634/2.451, allocations: 220.5 kB / 0.7535 GB, free: 122 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001341/2.452, allocations: 213.6 kB / 0.7537 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000407/2.452, allocations: 88.64 kB / 0.7538 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008914/2.461, allocations: 3.64 MB / 0.7574 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.062e-06/2.461, allocations: 0 / 0.7574 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01062/2.472, allocations: 1.531 MB / 0.7589 GB, free: 116.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03179/2.504, allocations: 12.53 MB / 0.7711 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02092/2.525, allocations: 8.549 MB / 0.7794 GB, free: 95.33 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.525, allocations: 4 kB / 0.7794 GB, free: 95.33 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01247/2.537, allocations: 4.095 MB / 0.7834 GB, free: 91.21 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/2.543, allocations: 0.6332 MB / 0.7841 GB, free: 90.58 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1453/2.688, allocations: 58.48 MB / 0.8412 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009717/2.698, allocations: 4.533 MB / 0.8456 GB, free: 22.54 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007775/2.706, allocations: 2.877 MB / 0.8484 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of SimCode: time 1.573e-06/2.706, allocations: 0 / 0.8484 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.106/7.811, allocations: 168.9 MB / 1.013 GB, free: 58.02 MB / 0.5105 GB