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.Planar.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.Planar,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.931/1.931, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004193/0.0004195, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3375, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.05562/0.3932, allocations: 38.73 MB / 370 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02489/0.4182, allocations: 9.239 MB / 379.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007684/0.4259, allocations: 183.6 kB / 379.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007032/0.433, allocations: 1.983 MB / 381.4 MB, free: 12.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02064/0.4537, allocations: 5.661 MB / 387.1 MB, free: 6.578 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003251/0.457, allocations: 0.5382 MB / 387.6 MB, free: 6.035 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005542/0.4626, allocations: 2.436 MB / 390 MB, free: 3.594 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006604/0.4692, allocations: 3.569 MB / 393.6 MB, free: 15.97 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002107/0.4713, allocations: 1.168 MB / 394.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002713/0.4741, allocations: 1.546 MB / 396.3 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007358/0.4748, allocations: 176 kB / 396.5 MB, free: 13.08 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00232/0.4772, allocations: 0.8348 MB / 397.3 MB, free: 12.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002125/0.4793, allocations: 1.706 MB / 399 MB, free: 10.53 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001228/0.4806, allocations: 0.9517 MB / 400 MB, free: 9.57 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009386/0.49, allocations: 6.154 MB / 406.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.49, allocations: 0 / 406.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.49, allocations: 0 / 406.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001731/0.4902, allocations: 0 / 406.1 MB, free: 3.402 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.01264/0.5029, allocations: 4.453 MB / 410.6 MB, free: 14.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5029, allocations: 12.03 kB / 410.6 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002172/0.5051, allocations: 0.8934 MB / 411.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02287/0.528, allocations: 3.838 MB / 415.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007493/0.5356, allocations: 2.611 MB / 417.9 MB, free: 7.449 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002676/0.5359, allocations: 266.5 kB / 418.2 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/0.537, allocations: 343.7 kB / 418.5 MB, free: 6.852 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02959/0.5666, allocations: 12.76 MB / 431.3 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001601/0.5668, allocations: 35.66 kB / 431.3 MB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007266/0.5675, allocations: 163.8 kB / 431.5 MB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008263/0.5758, allocations: 2.973 MB / 434.5 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03294/0.6088, allocations: 11.39 MB / 445.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3584/0.9672, allocations: 42.29 MB / 488.1 MB, free: 89.95 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01426/0.9816, allocations: 4.704 MB / 492.8 MB, free: 88.65 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/0.9832, allocations: 1.317 MB / 494.2 MB, free: 87.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.9832, allocations: 59.31 kB / 494.2 MB, free: 87.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=250): time 6.392e-06/0.9832, allocations: 0 / 494.2 MB, free: 87.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=268): time 0.06792/1.051, allocations: 20.05 MB / 0.5022 GB, free: 79.49 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/1.051, allocations: 101.5 kB / 0.5023 GB, free: 79.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005315/1.057, allocations: 3.334 MB / 0.5056 GB, free: 77.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004923/1.057, allocations: 57.62 kB / 0.5056 GB, free: 77.58 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.059, allocations: 3.241 MB / 0.5088 GB, free: 74.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001237/1.06, allocations: 0.981 MB / 0.5097 GB, free: 73.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004672/1.061, allocations: 117.2 kB / 0.5099 GB, free: 73.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003414/1.061, allocations: 0.575 MB / 0.5104 GB, free: 73.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005212/1.066, allocations: 2.467 MB / 0.5128 GB, free: 70.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006677/1.073, allocations: 5.828 MB / 0.5185 GB, free: 63.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007628/1.081, allocations: 3.774 MB / 0.5222 GB, free: 59.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.472e-05/1.081, allocations: 32 kB / 0.5222 GB, free: 59.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=806) (initialization): time 0.02266/1.104, allocations: 8.995 MB / 0.531 GB, free: 50.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/1.104, allocations: 56 kB / 0.5311 GB, free: 50.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/1.104, allocations: 123.9 kB / 0.5312 GB, free: 50.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00501/1.109, allocations: 1.072 MB / 0.5322 GB, free: 49.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007894/1.117, allocations: 1.376 MB / 0.5336 GB, free: 47.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.127, allocations: 5.28 MB / 0.5387 GB, free: 42.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005522/1.132, allocations: 329 kB / 0.5391 GB, free: 42.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006411/1.133, allocations: 349.1 kB / 0.5394 GB, free: 41.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 536 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[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 (744): * Single equations (assignments): 737 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004882/1.138, allocations: 2.484 MB / 0.5418 GB, free: 39.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006764/1.139, allocations: 315.9 kB / 0.5421 GB, free: 38.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/1.152, allocations: 5.362 MB / 0.5474 GB, free: 33.53 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.298e-05/1.152, allocations: 49.39 kB / 0.5474 GB, free: 33.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/1.152, allocations: 7.953 kB / 0.5474 GB, free: 33.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.356e-05/1.152, allocations: 7.969 kB / 0.5474 GB, free: 33.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.183, allocations: 13.33 MB / 0.5604 GB, free: 19.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/1.183, allocations: 12 kB / 0.5604 GB, free: 19.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003264/1.186, allocations: 423.3 kB / 0.5608 GB, free: 19.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004663/1.191, allocations: 0.8945 MB / 0.5617 GB, free: 18.64 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003539/1.191, allocations: 59.98 kB / 0.5618 GB, free: 18.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008855/1.2, allocations: 4.641 MB / 0.5663 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/1.2, allocations: 15.94 kB / 0.5663 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01749/1.217, allocations: 8.008 MB / 0.5741 GB, free: 5.566 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002269/1.22, allocations: 0.7313 MB / 0.5749 GB, free: 4.812 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007131/1.22, allocations: 55.98 kB / 0.5749 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002307/1.223, allocations: 156.5 kB / 0.5751 GB, free: 4.605 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004413/1.223, allocations: 170.2 kB / 0.5752 GB, free: 4.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000235/1.224, allocations: 76.77 kB / 0.5753 GB, free: 4.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003794/1.227, allocations: 2.06 MB / 0.5773 GB, free: 2.309 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.227, allocations: 0 / 0.5773 GB, free: 2.309 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00616/1.234, allocations: 1.125 MB / 0.5784 GB, free: 1.191 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * 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 (209): * Single equations (assignments): 202 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0206/1.254, allocations: 8.697 MB / 0.5869 GB, free: 8.277 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01438/1.269, allocations: 6.019 MB / 0.5928 GB, free: 2.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.71e-05/1.269, allocations: 8.125 kB / 0.5928 GB, free: 2.262 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005314/1.274, allocations: 2.243 MB / 0.595 GB, free: 12 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/1.277, allocations: 391.8 kB / 0.5953 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4616/1.739, allocations: 37.8 MB / 0.6323 GB, free: 149.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008047/1.747, allocations: 3.928 MB / 0.6361 GB, free: 148.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0051/1.752, allocations: 2.249 MB / 0.6383 GB, free: 146.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.633e-06/1.752, allocations: 0 / 0.6383 GB, free: 146.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.183/5.935, allocations: 111.8 MB / 0.7474 GB, free: 44.29 MB / 442.7 MB