Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Worldtorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Worldtorque") Notification: Performance of loadModel(ModelicaTest): time 2.182/2.182, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004373/0.0004375, allocations: 8 kB / 314.3 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2775, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Worldtorque): time 0.1136/0.3912, allocations: 83.3 MB / 452.5 MB, free: 7.203 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04664/0.4379, allocations: 18.67 MB / 471.2 MB, free: 4.477 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01596/0.4539, allocations: 411.1 kB / 471.6 MB, free: 4.074 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.3379/0.7918, allocations: 4.275 MB / 475.8 MB, free: 3.734 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03527/0.8272, allocations: 11.89 MB / 487.7 MB, free: 3.547 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005087/0.8323, allocations: 1.006 MB / 488.7 MB, free: 3.535 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.05481/0.8871, allocations: 26.61 MB / 0.5033 GB, free: 14.78 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0136/0.9008, allocations: 7.44 MB / 0.5105 GB, free: 9.891 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004013/0.9049, allocations: 1.784 MB / 0.5123 GB, free: 8.75 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004981/0.9099, allocations: 2.508 MB / 0.5147 GB, free: 7.004 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0016/0.9115, allocations: 252 kB / 0.515 GB, free: 6.758 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003995/0.9156, allocations: 1.162 MB / 0.5161 GB, free: 5.805 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004544/0.9201, allocations: 2.856 MB / 0.5189 GB, free: 3.781 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002491/0.9227, allocations: 1.429 MB / 0.5203 GB, free: 3.293 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0148/0.9375, allocations: 9.737 MB / 0.5298 GB, free: 10.83 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.936e-06/0.9376, allocations: 4 kB / 0.5298 GB, free: 10.83 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.48e-06/0.9376, allocations: 0 / 0.5298 GB, free: 10.83 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002623/0.9379, allocations: 4.438 kB / 0.5298 GB, free: 10.83 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: 2470 * Number of variables: 2470 Notification: Performance of Generate backend data structure: time 0.02122/0.9591, allocations: 7.413 MB / 0.537 GB, free: 3.992 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.9591, allocations: 8.031 kB / 0.537 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07663/1.036, allocations: 11.21 MB / 0.548 GB, free: 9.781 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/1.05, allocations: 5.693 MB / 0.5535 GB, free: 5.691 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004411/1.051, allocations: 406 kB / 0.5539 GB, free: 5.469 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001911/1.053, allocations: 0.5306 MB / 0.5545 GB, free: 5.121 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03773/1.09, allocations: 16.42 MB / 0.5705 GB, free: 8.27 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002985/1.091, allocations: 77.3 kB / 0.5706 GB, free: 8.227 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001304/1.092, allocations: 252.1 kB / 0.5708 GB, free: 8.156 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005553/1.098, allocations: 2.905 MB / 0.5736 GB, free: 5.797 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03507/1.133, allocations: 13.41 MB / 0.5867 GB, free: 12.44 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.103/1.236, allocations: 61.82 MB / 0.6471 GB, free: 5.844 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01995/1.256, allocations: 5.923 MB / 0.6529 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/1.256, allocations: 61.45 kB / 0.6529 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.351e-05/1.256, allocations: 60.12 kB / 0.653 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=249): time 1.008e-05/1.256, allocations: 0 / 0.653 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=267): time 0.5862/1.842, allocations: 23.99 MB / 0.6764 GB, free: 213 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/1.843, allocations: 262.9 kB / 0.6767 GB, free: 212.7 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01351/1.856, allocations: 7.372 MB / 0.6839 GB, free: 210.6 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0005159/1.857, allocations: 65.48 kB / 0.6839 GB, free: 210.5 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003549/1.86, allocations: 4.767 MB / 0.6886 GB, free: 206.7 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001328/1.862, allocations: 1.031 MB / 0.6896 GB, free: 206 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006867/1.862, allocations: 171.8 kB / 0.6898 GB, free: 205.8 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0004827/1.863, allocations: 0.6689 MB / 0.6904 GB, free: 205.4 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006171/1.869, allocations: 3.055 MB / 0.6934 GB, free: 204.4 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008912/1.878, allocations: 8.304 MB / 0.7015 GB, free: 196.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008888/1.887, allocations: 4.914 MB / 0.7063 GB, free: 194.5 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001243/1.887, allocations: 52.66 kB / 0.7064 GB, free: 194.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1116) (initialization): time 0.02382/1.911, allocations: 11.56 MB / 0.7177 GB, free: 185.6 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001446/1.911, allocations: 87.98 kB / 0.7177 GB, free: 185.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/1.911, allocations: 191.9 kB / 0.7179 GB, free: 185.3 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003034/1.914, allocations: 1.051 MB / 0.7189 GB, free: 184.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007508/1.922, allocations: 1.999 MB / 0.7209 GB, free: 182.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01262/1.934, allocations: 9.8 MB / 0.7305 GB, free: 172.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008289/1.943, allocations: 486 kB / 0.7309 GB, free: 171.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.944, allocations: 0.5125 MB / 0.7314 GB, free: 171.1 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 54 (worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1050): * Single equations (assignments): 1044 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006432/1.951, allocations: 3.314 MB / 0.7347 GB, free: 167.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.952, allocations: 0.5977 MB / 0.7353 GB, free: 167.2 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01026/1.962, allocations: 4.883 MB / 0.74 GB, free: 162.3 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.085e-05/1.962, allocations: 28 kB / 0.74 GB, free: 162.2 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.531e-05/1.962, allocations: 8 kB / 0.7401 GB, free: 162.2 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.46e-05/1.962, allocations: 15.95 kB / 0.7401 GB, free: 162.2 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02788/1.99, allocations: 12.28 MB / 0.7521 GB, free: 149.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.618e-05/1.99, allocations: 8 kB / 0.7521 GB, free: 149.9 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002917/1.993, allocations: 463.3 kB / 0.7525 GB, free: 149.5 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/1.996, allocations: 0.741 MB / 0.7532 GB, free: 148.7 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003935/1.996, allocations: 49.31 kB / 0.7533 GB, free: 148.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/2.008, allocations: 8.841 MB / 0.7619 GB, free: 139.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.438e-06/2.008, allocations: 4.031 kB / 0.7619 GB, free: 139.4 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0149/2.023, allocations: 8.371 MB / 0.7701 GB, free: 131 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003102/2.026, allocations: 1.048 MB / 0.7711 GB, free: 129.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001378/2.027, allocations: 50.52 kB / 0.7712 GB, free: 129.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003611/2.031, allocations: 168.6 kB / 0.7713 GB, free: 129.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006908/2.031, allocations: 157.7 kB / 0.7715 GB, free: 129.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002607/2.032, allocations: 76.64 kB / 0.7716 GB, free: 129.5 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.008909/2.041, allocations: 4.752 MB / 0.7762 GB, free: 124.7 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.087e-06/2.041, allocations: 4 kB / 0.7762 GB, free: 124.7 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009367/2.05, allocations: 1.6 MB / 0.7778 GB, free: 123.1 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (219): * Single equations (assignments): 213 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007963/2.051, allocations: 196 kB / 0.778 GB, free: 123 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01391/2.065, allocations: 7.716 MB / 0.7855 GB, free: 115.2 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 7.818e-06/2.065, allocations: 4 kB / 0.7855 GB, free: 115.2 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.004584/2.069, allocations: 2.656 MB / 0.7881 GB, free: 112.6 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004543/2.074, allocations: 0.7698 MB / 0.7888 GB, free: 111.8 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0326/2.107, allocations: 18.65 MB / 0.807 GB, free: 93.09 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009427/2.116, allocations: 5.202 MB / 0.8121 GB, free: 87.85 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002112/2.118, allocations: 467.4 kB / 0.8126 GB, free: 87.39 MB / 0.5262 GB Notification: Performance of SimCode: time 1.79e-06/2.118, allocations: 0 / 0.8126 GB, free: 87.39 MB / 0.5262 GB Notification: Performance of Templates: time 0.5068/2.625, allocations: 178.6 MB / 0.987 GB, free: 104.6 MB / 0.5262 GB