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.Joints.CheckConstaintTorqueUniversalJoint.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.Joints.CheckConstaintTorqueUniversalJoint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint") Notification: Performance of loadModel(ModelicaTest): time 2.13/2.13, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004346, allocations: 16 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2746, allocations: 54.87 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.CheckConstaintTorqueUniversalJoint): time 0.05056/0.3252, allocations: 34.14 MB / 403.3 MB, free: 8.488 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02232/0.3476, allocations: 8.793 MB / 412.1 MB, free: 15.67 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006245/0.3539, allocations: 167.6 kB / 412.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005282/0.3592, allocations: 1.707 MB / 414 MB, free: 13.79 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01643/0.3757, allocations: 5.038 MB / 419 MB, free: 8.738 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002775/0.3785, allocations: 0.5694 MB / 419.6 MB, free: 8.168 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.02014/0.3987, allocations: 9.426 MB / 429 MB, free: 14.73 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006796/0.4055, allocations: 3.655 MB / 432.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.4073, allocations: 0.9187 MB / 433.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.4094, allocations: 1.226 MB / 434.8 MB, free: 8.875 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004554/0.4099, allocations: 132 kB / 435 MB, free: 8.746 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.412, allocations: 0.948 MB / 435.9 MB, free: 7.797 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001797/0.4139, allocations: 1.387 MB / 437.3 MB, free: 6.406 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001023/0.4149, allocations: 0.7688 MB / 438.1 MB, free: 5.629 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007785/0.4227, allocations: 5.258 MB / 443.3 MB, free: 368 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.195e-06/0.4227, allocations: 0 / 443.3 MB, free: 368 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.794e-06/0.4228, allocations: 0 / 443.3 MB, free: 368 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.4229, allocations: 0 / 443.3 MB, free: 368 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1388 * Number of variables: 1388 Notification: Performance of Generate backend data structure: time 0.0106/0.4335, allocations: 3.95 MB / 447.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.4336, allocations: 8.031 kB / 447.3 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03068/0.4642, allocations: 4.929 MB / 452.2 MB, free: 7.395 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006746/0.471, allocations: 2.604 MB / 454.8 MB, free: 4.727 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.4713, allocations: 209.2 kB / 455 MB, free: 4.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008509/0.4722, allocations: 279.8 kB / 455.3 MB, free: 4.246 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02049/0.4927, allocations: 9.348 MB / 464.6 MB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001563/0.4929, allocations: 43.58 kB / 464.7 MB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005596/0.4935, allocations: 139.9 kB / 464.8 MB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003579/0.4971, allocations: 1.798 MB / 466.6 MB, free: 8.285 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02044/0.5175, allocations: 8.105 MB / 474.7 MB, free: 160 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2981/0.8157, allocations: 36.06 MB / 0.4988 GB, free: 62.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009216/0.825, allocations: 3.705 MB / 0.5024 GB, free: 59.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003746/0.8254, allocations: 336.2 kB / 0.5027 GB, free: 59.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.8255, allocations: 51.52 kB / 0.5028 GB, free: 59.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=156): time 6.97e-06/0.8255, allocations: 3.984 kB / 0.5028 GB, free: 59.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=177): time 0.04484/0.8703, allocations: 15.99 MB / 0.5184 GB, free: 43.36 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.8704, allocations: 175.2 kB / 0.5186 GB, free: 43.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005155/0.8756, allocations: 3.729 MB / 0.5222 GB, free: 39.42 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003428/0.876, allocations: 53.7 kB / 0.5223 GB, free: 39.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001478/0.8775, allocations: 2.75 MB / 0.525 GB, free: 36.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006363/0.8781, allocations: 0.6785 MB / 0.5256 GB, free: 35.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.8784, allocations: 104 kB / 0.5257 GB, free: 35.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003005/0.8788, allocations: 0.5422 MB / 0.5263 GB, free: 35.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003605/0.8824, allocations: 2.158 MB / 0.5284 GB, free: 33.13 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005119/0.8875, allocations: 5.478 MB / 0.5337 GB, free: 25.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005526/0.8931, allocations: 3.374 MB / 0.537 GB, free: 22.61 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.729e-05/0.8932, allocations: 35.95 kB / 0.537 GB, free: 22.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01578/0.909, allocations: 8.091 MB / 0.5449 GB, free: 14.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.776e-05/0.9091, allocations: 52 kB / 0.545 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001093/0.9092, allocations: 123.6 kB / 0.5451 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002693/0.9119, allocations: 0.9809 MB / 0.5461 GB, free: 13.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/0.9166, allocations: 1.267 MB / 0.5473 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009474/0.9261, allocations: 6.639 MB / 0.5538 GB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004923/0.931, allocations: 323.4 kB / 0.5541 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007484/0.9318, allocations: 341.1 kB / 0.5544 GB, free: 4.637 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 533 * Number of states: 0 () * Number of discrete variables: 21 (universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],torque.color[3],torque.color[2],torque.color[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[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 (668): * Single equations (assignments): 664 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003372/0.9352, allocations: 1.955 MB / 0.5563 GB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006555/0.9359, allocations: 319.9 kB / 0.5566 GB, free: 2.352 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007696/0.9436, allocations: 3.559 MB / 0.5601 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-05/0.9437, allocations: 20 kB / 0.5601 GB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/0.9437, allocations: 11.95 kB / 0.5601 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.002e-05/0.9438, allocations: 7.969 kB / 0.5602 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02088/0.9647, allocations: 8.662 MB / 0.5686 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.9647, allocations: 0 / 0.5686 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/0.9666, allocations: 275.5 kB / 0.5689 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002785/0.9694, allocations: 0.8046 MB / 0.5697 GB, free: 4.973 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002537/0.9696, allocations: 28 kB / 0.5697 GB, free: 4.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/0.9812, allocations: 6.148 MB / 0.5757 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/0.9813, allocations: 3.984 kB / 0.5757 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.9947, allocations: 6.367 MB / 0.5819 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/0.9967, allocations: 0.6725 MB / 0.5826 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005039/0.9973, allocations: 28 kB / 0.5826 GB, free: 7.547 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.999, allocations: 107.8 kB / 0.5827 GB, free: 7.441 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003476/0.9994, allocations: 100.7 kB / 0.5828 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001965/0.9996, allocations: 44 kB / 0.5828 GB, free: 7.305 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004774/1.004, allocations: 2.356 MB / 0.5851 GB, free: 4.957 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.54e-07/1.004, allocations: 4 kB / 0.5851 GB, free: 4.953 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005879/1.01, allocations: 0.9518 MB / 0.5861 GB, free: 4.004 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * 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 (137): * Single equations (assignments): 133 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005939/1.011, allocations: 172.3 kB / 0.5862 GB, free: 3.832 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.022, allocations: 5.23 MB / 0.5913 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.986e-06/1.022, allocations: 4 kB / 0.5913 GB, free: 14.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004522/1.027, allocations: 1.947 MB / 0.5932 GB, free: 12.65 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/1.029, allocations: 372.9 kB / 0.5936 GB, free: 12.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02234/1.051, allocations: 10.8 MB / 0.6041 GB, free: 1.453 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005527/1.057, allocations: 3.145 MB / 0.6072 GB, free: 14.28 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.058, allocations: 271.4 kB / 0.6075 GB, free: 14.01 MB / 458.7 MB Notification: Performance of SimCode: time 1.526e-06/1.058, allocations: 4 kB / 0.6075 GB, free: 14.01 MB / 458.7 MB Notification: Performance of Templates: time 0.3636/1.422, allocations: 69.63 MB / 0.6755 GB, free: 130.6 MB / 474.7 MB