Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.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.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.991/1.991, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006142/0.0006143, allocations: 8 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.351, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.05034/0.4014, allocations: 32 MB / 363.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.4241, allocations: 7.373 MB / 370.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007086/0.4313, allocations: 151.7 kB / 370.8 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006406/0.4377, allocations: 1.641 MB / 372.4 MB, free: 5.238 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01918/0.457, allocations: 4.64 MB / 377.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002623/0.4597, allocations: 255.7 kB / 377.3 MB, free: 344 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.4639, allocations: 1.38 MB / 378.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006624/0.4706, allocations: 3.011 MB / 381.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.472, allocations: 0.5994 MB / 382.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.4737, allocations: 0.7863 MB / 383.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005065/0.4742, allocations: 104 kB / 383.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001541/0.4758, allocations: 0.5227 MB / 383.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001706/0.4775, allocations: 0.9858 MB / 384.7 MB, free: 8.875 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008504/0.4784, allocations: 0.5662 MB / 385.3 MB, free: 8.301 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006172/0.4846, allocations: 3.722 MB / 389 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.4847, allocations: 0 / 389 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4847, allocations: 0 / 389 MB, free: 4.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001704/0.4849, allocations: 0 / 389 MB, free: 4.566 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.007903/0.4928, allocations: 2.643 MB / 391.6 MB, free: 1.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.4929, allocations: 8.031 kB / 391.7 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001785/0.4946, allocations: 0.5253 MB / 392.2 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.5063, allocations: 1.95 MB / 394.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.5109, allocations: 1.382 MB / 395.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.5112, allocations: 160 kB / 395.7 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009614/0.5122, allocations: 203.9 kB / 395.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.5312, allocations: 6.992 MB / 402.9 MB, free: 6.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/0.5313, allocations: 11.88 kB / 402.9 MB, free: 6.238 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009396/0.5323, allocations: 103.8 kB / 403 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005955/0.5383, allocations: 1.524 MB / 404.5 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02621/0.5645, allocations: 5.959 MB / 410.5 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07057/0.6352, allocations: 22.18 MB / 432.6 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01816/0.6534, allocations: 2.187 MB / 434.8 MB, free: 5.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01751/0.671, allocations: 3.984 MB / 438.8 MB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.569e-05/0.6712, allocations: 39.22 kB / 438.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 5.921e-06/0.6712, allocations: 0 / 438.9 MB, free: 1.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=96): time 0.01375/0.6849, allocations: 2.512 MB / 441.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/0.6851, allocations: 60.06 kB / 441.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004356/0.6894, allocations: 2.02 MB / 443.4 MB, free: 12.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000196/0.6897, allocations: 37.7 kB / 443.5 MB, free: 12.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/0.6917, allocations: 2.013 MB / 445.5 MB, free: 10.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006338/0.6923, allocations: 379.2 kB / 445.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.6926, allocations: 64 kB / 445.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003377/0.6929, allocations: 461.9 kB / 446.4 MB, free: 9.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002789/0.6957, allocations: 0.9784 MB / 447.4 MB, free: 8.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004964/0.7007, allocations: 2.961 MB / 450.3 MB, free: 4.789 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00437/0.7052, allocations: 1.694 MB / 452 MB, free: 3.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.029e-05/0.7053, allocations: 20 kB / 452 MB, free: 3.074 MB / 378.7 MB Notification: Performance of matching and sorting (n=432) (initialization): time 0.01079/0.7161, allocations: 3.79 MB / 455.8 MB, free: 15.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.353e-05/0.7163, allocations: 36 kB / 455.9 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/0.7164, allocations: 72 kB / 455.9 MB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001477/0.7165, allocations: 100 kB / 456 MB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004541/0.7211, allocations: 0.7252 MB / 456.7 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001867/0.7213, allocations: 135.5 kB / 456.9 MB, free: 14.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/0.7247, allocations: 455.6 kB / 457.3 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006064/0.7254, allocations: 200 kB / 457.5 MB, free: 13.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[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 (398): * Single equations (assignments): 393 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00376/0.7291, allocations: 1.458 MB / 459 MB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000475/0.7296, allocations: 169.7 kB / 459.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.7332, allocations: 1.232 MB / 460.4 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.149e-05/0.7332, allocations: 15.98 kB / 460.4 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.7333, allocations: 0 / 460.4 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.7333, allocations: 0 / 460.4 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.747, allocations: 5.018 MB / 465.4 MB, free: 5.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/0.7471, allocations: 12 kB / 465.4 MB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.7482, allocations: 139.7 kB / 465.6 MB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-05/0.7483, allocations: 20.03 kB / 465.6 MB, free: 5.297 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.603e-05/0.7484, allocations: 24 kB / 465.6 MB, free: 5.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.801e-05/0.7484, allocations: 31.81 kB / 465.6 MB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.606e-05/0.7485, allocations: 19.92 kB / 465.7 MB, free: 5.223 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.7518, allocations: 1.566 MB / 467.2 MB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006392/0.7525, allocations: 278.5 kB / 467.5 MB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/0.7529, allocations: 23.98 kB / 467.5 MB, free: 3.188 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.7539, allocations: 43.88 kB / 467.6 MB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.7541, allocations: 79.66 kB / 467.6 MB, free: 3.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.7543, allocations: 47.92 kB / 467.7 MB, free: 3.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003263/0.7576, allocations: 1.316 MB / 469 MB, free: 1.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.7576, allocations: 0 / 469 MB, free: 1.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003979/0.7616, allocations: 0.7698 MB / 469.8 MB, free: 0.9062 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 0 () * 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 (76): * Single equations (assignments): 73 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004042/0.7657, allocations: 2.183 MB / 471.9 MB, free: 14.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005927/0.7717, allocations: 2.271 MB / 474.2 MB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.7717, allocations: 4 kB / 474.2 MB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.7732, allocations: 0.5572 MB / 474.8 MB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.775, allocations: 235.7 kB / 475 MB, free: 11.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3402/1.115, allocations: 11.51 MB / 486.5 MB, free: 129.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006917/1.122, allocations: 2.509 MB / 489 MB, free: 129.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003618/1.126, allocations: 1.189 MB / 490.2 MB, free: 128.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/1.126, allocations: 0 / 490.2 MB, free: 128.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.31/4.436, allocations: 48.22 MB / 0.5258 GB, free: 91.23 MB / 410.7 MB