Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.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.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.276/2.276, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006148/0.000615, allocations: 15.94 kB / 314.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3418, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.FreeBodies2): time 0.1299/0.4718, allocations: 84.83 MB / 454.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05269/0.5246, allocations: 19.15 MB / 473.2 MB, free: 2.441 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01744/0.5421, allocations: 430.9 kB / 473.7 MB, free: 2.02 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3628/0.905, allocations: 4.331 MB / 478 MB, free: 2.266 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04156/0.9466, allocations: 12.06 MB / 490.1 MB, free: 2.066 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007134/0.9538, allocations: 1.178 MB / 491.2 MB, free: 2.016 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.05478/1.009, allocations: 20.32 MB / 0.4996 GB, free: 12.55 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01828/1.027, allocations: 9.434 MB / 0.5088 GB, free: 9.07 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005159/1.032, allocations: 2.027 MB / 0.5108 GB, free: 7.762 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005945/1.038, allocations: 2.648 MB / 0.5134 GB, free: 5.93 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001772/1.04, allocations: 270.7 kB / 0.5136 GB, free: 5.668 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004319/1.044, allocations: 1.139 MB / 0.5147 GB, free: 4.715 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005056/1.049, allocations: 3.03 MB / 0.5177 GB, free: 2.555 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002715/1.052, allocations: 1.518 MB / 0.5192 GB, free: 2.004 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0163/1.068, allocations: 10.45 MB / 0.5294 GB, free: 8.941 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/1.069, allocations: 0 / 0.5294 GB, free: 8.941 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.069, allocations: 4 kB / 0.5294 GB, free: 8.938 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004129/1.069, allocations: 0 / 0.5294 GB, free: 8.938 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2525 * Number of variables: 2525 Notification: Performance of Generate backend data structure: time 0.02985/1.099, allocations: 7.804 MB / 0.537 GB, free: 1.703 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/1.099, allocations: 8.031 kB / 0.537 GB, free: 1.695 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004061/1.103, allocations: 1.212 MB / 0.5382 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2204/1.323, allocations: 12.06 MB / 0.55 GB, free: 5.652 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01982/1.343, allocations: 6.302 MB / 0.5561 GB, free: 1.141 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006155/1.344, allocations: 467.1 kB / 0.5566 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005307/1.349, allocations: 0.9708 MB / 0.5575 GB, free: 216 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05454/1.404, allocations: 17.44 MB / 0.5745 GB, free: 2.551 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004201/1.404, allocations: 82.5 kB / 0.5746 GB, free: 2.508 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002518/1.407, allocations: 286.4 kB / 0.5749 GB, free: 2.43 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007041/1.414, allocations: 2.666 MB / 0.5775 GB, free: 268 kB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05094/1.465, allocations: 14.71 MB / 0.5919 GB, free: 5.73 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1332/1.598, allocations: 67.63 MB / 0.6579 GB, free: 9.082 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03676/1.635, allocations: 7.147 MB / 0.6649 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6279/2.263, allocations: 15.07 MB / 0.6796 GB, free: 211.5 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.583e-05/2.263, allocations: 67.16 kB / 0.6797 GB, free: 211.4 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=261): time 1.044e-05/2.263, allocations: 0 / 0.6797 GB, free: 211.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=289): time 0.1268/2.39, allocations: 28.48 MB / 0.7075 GB, free: 195.3 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005579/2.396, allocations: 6.311 MB / 0.7136 GB, free: 188.4 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0306/2.426, allocations: 7.068 MB / 0.7205 GB, free: 181.4 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001046/2.427, allocations: 67.81 kB / 0.7206 GB, free: 181.3 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00437/2.432, allocations: 5.022 MB / 0.7255 GB, free: 176.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.01056/2.442, allocations: 1.192 MB / 0.7267 GB, free: 175.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/2.444, allocations: 194.1 kB / 0.7269 GB, free: 174.9 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0007132/2.444, allocations: 0.7194 MB / 0.7276 GB, free: 174.2 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.022/2.466, allocations: 4.169 MB / 0.7316 GB, free: 170 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01291/2.479, allocations: 9.939 MB / 0.7413 GB, free: 157.4 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/2.493, allocations: 6.201 MB / 0.7474 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001715/2.493, allocations: 60 kB / 0.7475 GB, free: 151.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1267) (initialization): time 0.08976/2.583, allocations: 19.56 MB / 0.7666 GB, free: 131.5 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/2.583, allocations: 92 kB / 0.7666 GB, free: 131.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06673/2.65, allocations: 11.2 MB / 0.7776 GB, free: 120.1 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07072/2.721, allocations: 7.589 MB / 0.785 GB, free: 112.5 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01293/2.734, allocations: 2.293 MB / 0.7872 GB, free: 110.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04858/2.782, allocations: 21.87 MB / 0.8086 GB, free: 87.54 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01331/2.796, allocations: 0.8569 MB / 0.8094 GB, free: 86.68 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002085/2.798, allocations: 0.5872 MB / 0.81 GB, free: 86.09 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 925 * Number of states: 0 () * Number of discrete variables: 75 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1191): * Single equations (assignments): 1166 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008324/2.806, allocations: 3.4 MB / 0.8133 GB, free: 82.68 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/2.808, allocations: 0.5784 MB / 0.8139 GB, free: 82.1 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02557/2.833, allocations: 7.826 MB / 0.8215 GB, free: 74.22 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02365/2.857, allocations: 6.974 MB / 0.8283 GB, free: 67.19 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-05/2.857, allocations: 15.95 kB / 0.8283 GB, free: 67.17 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-05/2.857, allocations: 11.95 kB / 0.8284 GB, free: 67.16 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01708/2.874, allocations: 7.559 MB / 0.8357 GB, free: 59.61 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-05/2.874, allocations: 0 / 0.8357 GB, free: 59.61 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006227/2.88, allocations: 0.6201 MB / 0.8363 GB, free: 58.99 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01711/2.898, allocations: 3.211 MB / 0.8395 GB, free: 55.73 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009386/2.899, allocations: 95.91 kB / 0.8396 GB, free: 55.64 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02203/2.921, allocations: 14.3 MB / 0.8535 GB, free: 40.55 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004789/2.925, allocations: 6.097 MB / 0.8595 GB, free: 33.89 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03345/2.959, allocations: 11.97 MB / 0.8712 GB, free: 21.79 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002054/2.961, allocations: 0.6651 MB / 0.8718 GB, free: 21.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002436/2.964, allocations: 75.92 kB / 0.8719 GB, free: 21.03 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006864/2.97, allocations: 379.4 kB / 0.8723 GB, free: 20.66 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/2.972, allocations: 213.6 kB / 0.8725 GB, free: 20.45 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004091/2.972, allocations: 87.94 kB / 0.8726 GB, free: 20.36 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01029/2.982, allocations: 4.478 MB / 0.8769 GB, free: 15.9 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7.21e-07/2.983, allocations: 0 / 0.8769 GB, free: 15.9 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01215/2.995, allocations: 2.149 MB / 0.879 GB, free: 13.76 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[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 (235): * Single equations (assignments): 218 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03478/3.03, allocations: 12.72 MB / 0.8914 GB, free: 0.9258 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3576/3.387, allocations: 11.7 MB / 0.9029 GB, free: 200.6 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/3.387, allocations: 2.031 kB / 0.9029 GB, free: 200.6 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01675/3.404, allocations: 5.451 MB / 0.9082 GB, free: 197.9 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00751/3.412, allocations: 0.8459 MB / 0.909 GB, free: 197.6 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2281/3.64, allocations: 80.92 MB / 0.988 GB, free: 122.1 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01132/3.651, allocations: 5.406 MB / 0.9933 GB, free: 116.7 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008408/3.659, allocations: 3.682 MB / 0.9969 GB, free: 113 MB / 0.5262 GB Notification: Performance of SimCode: time 1.673e-06/3.66, allocations: 0 / 0.9969 GB, free: 113 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.177/11.84, allocations: 0.549 GB / 1.546 GB, free: 142.9 MB / 0.5262 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat