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.129/2.129, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004381/0.0004381, allocations: 19.94 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2756, allocations: 54.85 MB / 369.3 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4253, allocations: 99.55 MB / 468.8 MB, free: 7.043 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.4256, allocations: 75.95 kB / 468.9 MB, free: 6.969 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6018/1.027, allocations: 80.51 MB / 0.5365 GB, free: 35.55 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.234e-06/1.027, allocations: 0 / 0.5365 GB, free: 35.55 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002695/1.028, allocations: 75.98 kB / 0.5366 GB, free: 35.48 MB / 394.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.02068/1.048, allocations: 4.01 MB / 0.5405 GB, free: 31.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/1.048, allocations: 16 kB / 0.5405 GB, free: 31.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.021/1.069, allocations: 4.281 MB / 0.5447 GB, free: 27.09 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01836/1.088, allocations: 4.525 MB / 0.5491 GB, free: 22.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/1.088, allocations: 291.8 kB / 0.5494 GB, free: 22.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001548/1.09, allocations: 379.8 kB / 0.5498 GB, free: 21.85 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/1.109, allocations: 9.625 MB / 0.5592 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001658/1.109, allocations: 55.47 kB / 0.5592 GB, free: 11.25 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007054/1.11, allocations: 183.9 kB / 0.5594 GB, free: 11.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001317/1.111, allocations: 0.9473 MB / 0.5603 GB, free: 10.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01735/1.128, allocations: 8.128 MB / 0.5683 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0622/1.19, allocations: 43.68 MB / 0.6109 GB, free: 4.895 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/1.202, allocations: 3.689 MB / 0.6145 GB, free: 1.055 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005309/1.202, allocations: 324.3 kB / 0.6148 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/1.202, allocations: 59.48 kB / 0.6149 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of pre-optimization done (n=156): time 6.2e-06/1.202, allocations: 0 / 0.6149 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of matching and sorting (n=177): time 0.04849/1.251, allocations: 15.22 MB / 0.6297 GB, free: 1.203 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/1.251, allocations: 171.2 kB / 0.6299 GB, free: 1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00645/1.257, allocations: 3.209 MB / 0.633 GB, free: 13.79 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003628/1.258, allocations: 49.7 kB / 0.6331 GB, free: 13.74 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002689/1.26, allocations: 2.772 MB / 0.6358 GB, free: 10.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000956/1.261, allocations: 0.6749 MB / 0.6365 GB, free: 10.25 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003848/1.262, allocations: 108.2 kB / 0.6366 GB, free: 10.14 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005088/1.262, allocations: 0.5461 MB / 0.6371 GB, free: 9.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00446/1.267, allocations: 2.131 MB / 0.6392 GB, free: 7.453 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007758/1.275, allocations: 5.433 MB / 0.6445 GB, free: 360 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2778/1.552, allocations: 3.34 MB / 0.6477 GB, free: 116.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.461e-05/1.553, allocations: 33.66 kB / 0.6478 GB, free: 116.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=718) (initialization): time 0.01834/1.571, allocations: 8.023 MB / 0.6556 GB, free: 116.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/1.571, allocations: 56.03 kB / 0.6557 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001394/1.571, allocations: 120.9 kB / 0.6558 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002814/1.574, allocations: 0.9315 MB / 0.6567 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005241/1.579, allocations: 1.276 MB / 0.6579 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009723/1.589, allocations: 6.26 MB / 0.664 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005396/1.595, allocations: 324.4 kB / 0.6643 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009561/1.596, allocations: 333.9 kB / 0.6647 GB, free: 114.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 535 * 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 (670): * Single equations (assignments): 666 * 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.004383/1.6, allocations: 1.968 MB / 0.6666 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007028/1.601, allocations: 312.1 kB / 0.6669 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0075/1.608, allocations: 3.457 MB / 0.6703 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.655e-05/1.608, allocations: 22.25 kB / 0.6703 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/1.608, allocations: 10.97 kB / 0.6703 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.658e-05/1.608, allocations: 6.938 kB / 0.6703 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/1.626, allocations: 8.49 MB / 0.6786 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.612e-05/1.626, allocations: 0 / 0.6786 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/1.627, allocations: 279.3 kB / 0.6789 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002651/1.63, allocations: 0.7577 MB / 0.6796 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/1.63, allocations: 30.58 kB / 0.6796 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00905/1.64, allocations: 5.806 MB / 0.6853 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.853e-06/1.64, allocations: 6.812 kB / 0.6853 GB, free: 107.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/1.65, allocations: 6.278 MB / 0.6914 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/1.652, allocations: 0.6595 MB / 0.6921 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000669/1.653, allocations: 27.31 kB / 0.6921 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/1.655, allocations: 103.7 kB / 0.6922 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004049/1.655, allocations: 103.1 kB / 0.6923 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.656, allocations: 45.44 kB / 0.6923 GB, free: 104.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004554/1.66, allocations: 2.252 MB / 0.6945 GB, free: 103.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.124e-06/1.66, allocations: 0 / 0.6945 GB, free: 103.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006135/1.666, allocations: 0.9304 MB / 0.6955 GB, free: 103.6 MB / 474.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.0006317/1.667, allocations: 172.1 kB / 0.6956 GB, free: 103.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009336/1.676, allocations: 5.159 MB / 0.7007 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.933e-06/1.677, allocations: 2.531 kB / 0.7007 GB, free: 101.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003445/1.68, allocations: 1.889 MB / 0.7025 GB, free: 99.86 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/1.682, allocations: 363.4 kB / 0.7029 GB, free: 99.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02663/1.709, allocations: 10.72 MB / 0.7133 GB, free: 89.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009096/1.718, allocations: 3.137 MB / 0.7164 GB, free: 87.51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/1.72, allocations: 269.6 kB / 0.7166 GB, free: 87.26 MB / 474.7 MB Notification: Performance of SimCode: time 2.285e-06/1.72, allocations: 0 / 0.7166 GB, free: 87.26 MB / 474.7 MB Notification: Performance of Templates: time 0.1176/1.838, allocations: 69.02 MB / 0.784 GB, free: 25.52 MB / 474.7 MB