Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.348/2.348, allocations: 234.9 MB / 250.5 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004263, allocations: 12 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3343, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.1492/0.4836, allocations: 83.64 MB / 452.9 MB, free: 6.871 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.05233/0.536, allocations: 18.59 MB / 471.5 MB, free: 4.223 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01671/0.5528, allocations: 423.1 kB / 471.9 MB, free: 3.809 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3566/0.9094, allocations: 4.303 MB / 476.2 MB, free: 3.531 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04412/0.9536, allocations: 11.98 MB / 488.2 MB, free: 3.336 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007568/0.9612, allocations: 1.257 MB / 489.5 MB, free: 3.32 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01213/0.9734, allocations: 4.762 MB / 494.2 MB, free: 3.262 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01793/0.9914, allocations: 9.21 MB / 0.4916 GB, free: 1.102 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005502/0.9969, allocations: 2.173 MB / 0.4938 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005794/1.003, allocations: 2.779 MB / 0.4965 GB, free: 64 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002356/1.005, allocations: 296.4 kB / 0.4967 GB, free: 64 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005373/1.011, allocations: 0.9995 MB / 0.4977 GB, free: 0 / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.009621/1.02, allocations: 3.448 MB / 0.5011 GB, free: 0 / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004352/1.025, allocations: 1.61 MB / 0.5027 GB, free: 15.96 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01767/1.042, allocations: 10.46 MB / 0.5129 GB, free: 10.22 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.043, allocations: 0 / 0.5129 GB, free: 10.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.043, allocations: 1.75 kB / 0.5129 GB, free: 10.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005703/1.043, allocations: 0 / 0.5129 GB, free: 10.22 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.02784/1.071, allocations: 8.147 MB / 0.5208 GB, free: 3.008 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/1.071, allocations: 8.031 kB / 0.5208 GB, free: 3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004966/1.076, allocations: 1.37 MB / 0.5222 GB, free: 2.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02246/1.099, allocations: 3.133 MB / 0.5252 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01677/1.115, allocations: 5.738 MB / 0.5308 GB, free: 10.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006506/1.116, allocations: 479 kB / 0.5313 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003054/1.119, allocations: 0.6065 MB / 0.5319 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05689/1.176, allocations: 19.67 MB / 0.5511 GB, free: 10.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004003/1.176, allocations: 77.34 kB / 0.5512 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003088/1.18, allocations: 301.3 kB / 0.5515 GB, free: 10.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009859/1.19, allocations: 3.638 MB / 0.555 GB, free: 7.754 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05255/1.242, allocations: 15.3 MB / 0.57 GB, free: 13.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1583/1.4, allocations: 73.21 MB / 0.6414 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03033/1.431, allocations: 6.115 MB / 0.6474 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03674/1.468, allocations: 11.32 MB / 0.6585 GB, free: 8.082 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.555e-05/1.468, allocations: 67.19 kB / 0.6585 GB, free: 8.012 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=250): time 6.923e-06/1.468, allocations: 0 / 0.6585 GB, free: 8.012 MB / 0.5261 GB Notification: Performance of matching and sorting (n=274): time 0.3979/1.866, allocations: 16.86 MB / 0.675 GB, free: 209.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.844e-05/1.866, allocations: 160.9 kB / 0.6752 GB, free: 209.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01795/1.884, allocations: 7.187 MB / 0.6822 GB, free: 207.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006025/1.884, allocations: 67.62 kB / 0.6822 GB, free: 207.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00477/1.889, allocations: 5.525 MB / 0.6876 GB, free: 203.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0016/1.891, allocations: 1.051 MB / 0.6887 GB, free: 202.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/1.892, allocations: 186.7 kB / 0.6888 GB, free: 202.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000797/1.893, allocations: 0.7121 MB / 0.6895 GB, free: 201.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007825/1.901, allocations: 2.697 MB / 0.6922 GB, free: 201 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01148/1.912, allocations: 8.566 MB / 0.7005 GB, free: 192.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0112/1.924, allocations: 4.639 MB / 0.7051 GB, free: 190.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/1.924, allocations: 61.94 kB / 0.7051 GB, free: 190.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02761/1.951, allocations: 10.68 MB / 0.7156 GB, free: 185 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/1.952, allocations: 102.6 kB / 0.7157 GB, free: 184.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002899/1.952, allocations: 208 kB / 0.7159 GB, free: 184.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003037/1.952, allocations: 304 kB / 0.7162 GB, free: 184.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01282/1.965, allocations: 2.181 MB / 0.7183 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004115/1.966, allocations: 408.6 kB / 0.7187 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01001/1.976, allocations: 464 kB / 0.7191 GB, free: 181.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001724/1.977, allocations: 0.5679 MB / 0.7197 GB, free: 181.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 948 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1176): * Single equations (assignments): 1165 * Array equations: 11 * 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.00921/1.987, allocations: 3.756 MB / 0.7233 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001525/1.988, allocations: 0.5861 MB / 0.7239 GB, free: 177.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008471/1.997, allocations: 2.976 MB / 0.7268 GB, free: 174.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.849e-05/1.997, allocations: 28.62 kB / 0.7268 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/1.997, allocations: 3.781 kB / 0.7268 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.271e-05/1.997, allocations: 11.95 kB / 0.7269 GB, free: 174.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05569/2.053, allocations: 25.15 MB / 0.7514 GB, free: 148.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002792/2.053, allocations: 64 kB / 0.7515 GB, free: 148 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006999/2.06, allocations: 0.6094 MB / 0.7521 GB, free: 147.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002112/2.06, allocations: 92.72 kB / 0.7522 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008164/2.061, allocations: 141.9 kB / 0.7523 GB, free: 147.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001496/2.061, allocations: 131.5 kB / 0.7524 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.089e-05/2.061, allocations: 100 kB / 0.7525 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/2.075, allocations: 5.861 MB / 0.7582 GB, free: 140.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003376/2.078, allocations: 0.7466 MB / 0.759 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002902/2.081, allocations: 147.9 kB / 0.7591 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007785/2.089, allocations: 153.1 kB / 0.7593 GB, free: 139 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001211/2.09, allocations: 422.2 kB / 0.7597 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003808/2.09, allocations: 177.2 kB / 0.7598 GB, free: 138.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01053/2.101, allocations: 4.556 MB / 0.7643 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.202e-06/2.101, allocations: 0 / 0.7643 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01207/2.113, allocations: 1.576 MB / 0.7658 GB, free: 132.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.01078/2.124, allocations: 6.637 MB / 0.7723 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01508/2.139, allocations: 6.333 MB / 0.7785 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-05/2.139, allocations: 13.94 kB / 0.7785 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003976/2.143, allocations: 1.635 MB / 0.7801 GB, free: 116.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00771/2.151, allocations: 0.9088 MB / 0.781 GB, free: 115.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07017/2.221, allocations: 39.76 MB / 0.8198 GB, free: 69.96 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01385/2.235, allocations: 5.957 MB / 0.8256 GB, free: 63.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008152/2.243, allocations: 3.877 MB / 0.8294 GB, free: 60.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.693e-06/2.243, allocations: 0 / 0.8294 GB, free: 60.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.557/7.8, allocations: 141.7 MB / 0.9678 GB, free: 112.4 MB / 0.5261 GB