Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadModel(ModelicaTest): time 1.835/1.835, allocations: 209.3 MB / 224.8 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004773/0.0004776, allocations: 12 kB / 282.5 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.285, allocations: 48.7 MB / 331.2 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.03402/0.319, allocations: 24.71 MB / 355.9 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02223/0.3413, allocations: 6.44 MB / 362.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008518/0.3499, allocations: 111.8 kB / 362.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006621/0.3565, allocations: 1.268 MB / 363.7 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02222/0.3788, allocations: 3.779 MB / 367.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003261/0.3821, allocations: 423.3 kB / 367.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007108/0.3893, allocations: 1.996 MB / 369.9 MB, free: 7.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006782/0.3961, allocations: 2.253 MB / 372.2 MB, free: 5.438 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002411/0.3986, allocations: 0.8796 MB / 373 MB, free: 4.555 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003322/0.4019, allocations: 1.234 MB / 374.3 MB, free: 3.316 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007162/0.4027, allocations: 132 kB / 374.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003329/0.406, allocations: 0.7997 MB / 375.2 MB, free: 2.387 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002979/0.409, allocations: 1.379 MB / 376.6 MB, free: 1.004 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.4107, allocations: 0.7647 MB / 377.3 MB, free: 236 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01262/0.4234, allocations: 4.829 MB / 382.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.415e-06/0.4234, allocations: 0 / 382.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.529e-06/0.4235, allocations: 3.984 kB / 382.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.717e-05/0.4236, allocations: 0 / 382.2 MB, free: 11.39 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: 1567 * Number of variables: 1567 Notification: Performance of Generate backend data structure: time 0.008066/0.4316, allocations: 3.614 MB / 385.8 MB, free: 7.699 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.4317, allocations: 8.031 kB / 385.8 MB, free: 7.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01635/0.4481, allocations: 3.727 MB / 389.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00534/0.4534, allocations: 2.115 MB / 391.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000257/0.4538, allocations: 196.7 kB / 391.8 MB, free: 1.594 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001062/0.4548, allocations: 259.8 kB / 392.1 MB, free: 1.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02266/0.4775, allocations: 10.78 MB / 402.9 MB, free: 6.105 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.4777, allocations: 23.8 kB / 402.9 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005342/0.4782, allocations: 123.8 kB / 403 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005592/0.4838, allocations: 2.581 MB / 405.6 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02521/0.5091, allocations: 10.07 MB / 415.7 MB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07788/0.587, allocations: 35.27 MB / 450.9 MB, free: 5.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01333/0.6004, allocations: 5.181 MB / 456.1 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00242/0.6028, allocations: 1.884 MB / 458 MB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.819e-05/0.6029, allocations: 52.56 kB / 458 MB, free: 13.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=229): time 7.401e-06/0.603, allocations: 0 / 458 MB, free: 13.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=235): time 0.04613/0.6491, allocations: 14.54 MB / 472.6 MB, free: 14.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/0.6492, allocations: 73.34 kB / 472.7 MB, free: 14.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005298/0.6545, allocations: 2.757 MB / 475.4 MB, free: 11.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004042/0.655, allocations: 49.7 kB / 475.5 MB, free: 11.81 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002677/0.6577, allocations: 2.696 MB / 478.2 MB, free: 9.074 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001284/0.659, allocations: 0.8517 MB / 479 MB, free: 8.211 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/0.6594, allocations: 104 kB / 479.1 MB, free: 8.109 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005268/0.6599, allocations: 0.534 MB / 479.6 MB, free: 7.566 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004857/0.6648, allocations: 2.185 MB / 481.8 MB, free: 5.375 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2327/0.8975, allocations: 5.082 MB / 486.9 MB, free: 125.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006252/0.9038, allocations: 3.319 MB / 490.2 MB, free: 124.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.34e-05/0.904, allocations: 33.78 kB / 490.3 MB, free: 124.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01711/0.9211, allocations: 7.799 MB / 498.1 MB, free: 121.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.9212, allocations: 49.28 kB / 498.1 MB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001467/0.9214, allocations: 100.2 kB / 498.2 MB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002753/0.9242, allocations: 0.8052 MB / 499 MB, free: 121.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004873/0.9291, allocations: 1.194 MB / 0.4885 GB, free: 121.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.9354, allocations: 4.291 MB / 0.4927 GB, free: 119.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004172/0.9396, allocations: 300 kB / 0.493 GB, free: 119.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007614/0.9404, allocations: 308.3 kB / 0.4933 GB, free: 119.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 460 * Number of states: 0 () * Number of discrete variables: 24 (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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (637): * Single equations (assignments): 630 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003592/0.944, allocations: 2.042 MB / 0.4953 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004546/0.9444, allocations: 260.8 kB / 0.4955 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008606/0.9531, allocations: 4.712 MB / 0.5001 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.129e-05/0.9532, allocations: 46.59 kB / 0.5001 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.9532, allocations: 3.938 kB / 0.5002 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.459e-05/0.9532, allocations: 7.781 kB / 0.5002 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/0.9731, allocations: 10.59 MB / 0.5105 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/0.9731, allocations: 8 kB / 0.5105 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.9751, allocations: 363.5 kB / 0.5109 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002323/0.9774, allocations: 0.656 MB / 0.5115 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003612/0.9778, allocations: 49.08 kB / 0.5115 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005309/0.9831, allocations: 3.74 MB / 0.5152 GB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/0.9832, allocations: 8.5 kB / 0.5152 GB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/0.9949, allocations: 7.121 MB / 0.5222 GB, free: 96.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001607/0.9965, allocations: 0.6498 MB / 0.5228 GB, free: 95.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005094/0.9971, allocations: 44.88 kB / 0.5228 GB, free: 95.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/0.9986, allocations: 141.9 kB / 0.523 GB, free: 95.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/0.999, allocations: 133.1 kB / 0.5231 GB, free: 95.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/0.9992, allocations: 73.02 kB / 0.5232 GB, free: 95.06 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002592/1.002, allocations: 1.694 MB / 0.5248 GB, free: 93.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.47e-07/1.002, allocations: 0 / 0.5248 GB, free: 93.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00499/1.007, allocations: 0.9492 MB / 0.5258 GB, free: 92.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006758/1.008, allocations: 204.1 kB / 0.5259 GB, free: 92.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008597/1.016, allocations: 5.334 MB / 0.5312 GB, free: 86.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.016, allocations: 0 / 0.5312 GB, free: 86.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00309/1.019, allocations: 2.016 MB / 0.5331 GB, free: 84.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/1.021, allocations: 318.8 kB / 0.5334 GB, free: 84.56 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/1.039, allocations: 11.76 MB / 0.5449 GB, free: 72.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004108/1.043, allocations: 3.309 MB / 0.5481 GB, free: 69.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001328/1.044, allocations: 255.3 kB / 0.5484 GB, free: 69.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.501e-06/1.044, allocations: 0 / 0.5484 GB, free: 69.08 MB / 410.7 MB Notification: Performance of Templates: time 0.09029/1.134, allocations: 68.82 MB / 0.6156 GB, free: 212 kB / 410.7 MB