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.CutTorque2.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: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadModel(ModelicaTest): time 2.244/2.244, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004504/0.0004505, allocations: 12 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4002, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.5675, allocations: 96.02 MB / 465.8 MB, free: 10.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.5679, allocations: 87.89 kB / 465.9 MB, free: 10.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5834/1.151, allocations: 57.07 MB / 0.5107 GB, free: 62.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.151, allocations: 0 / 0.5107 GB, free: 62.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001705/1.152, allocations: 52 kB / 0.5108 GB, free: 62.16 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: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.009527/1.161, allocations: 2.774 MB / 0.5135 GB, free: 59.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/1.161, allocations: 8.031 kB / 0.5135 GB, free: 59.32 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/1.174, allocations: 1.84 MB / 0.5153 GB, free: 57.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005683/1.18, allocations: 1.735 MB / 0.517 GB, free: 55.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/1.18, allocations: 225.9 kB / 0.5172 GB, free: 55.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001572/1.182, allocations: 295.9 kB / 0.5175 GB, free: 55.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/1.201, allocations: 6.825 MB / 0.5241 GB, free: 47.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001127/1.201, allocations: 11.88 kB / 0.5242 GB, free: 47.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009407/1.202, allocations: 147.8 kB / 0.5243 GB, free: 47.81 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001325/1.203, allocations: 0.7 MB / 0.525 GB, free: 47.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01679/1.22, allocations: 5.939 MB / 0.5308 GB, free: 41.15 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04293/1.263, allocations: 23.83 MB / 0.554 GB, free: 16.65 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006928/1.27, allocations: 2.191 MB / 0.5562 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/1.282, allocations: 4.012 MB / 0.5601 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/1.282, allocations: 39.22 kB / 0.5601 GB, free: 10.13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.97e-06/1.282, allocations: 0 / 0.5601 GB, free: 10.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.009952/1.292, allocations: 2.512 MB / 0.5626 GB, free: 7.559 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/1.292, allocations: 60.06 kB / 0.5626 GB, free: 7.488 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004103/1.296, allocations: 2.004 MB / 0.5646 GB, free: 5.484 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/1.296, allocations: 41.69 kB / 0.5646 GB, free: 5.438 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/1.298, allocations: 2.013 MB / 0.5666 GB, free: 3.395 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005327/1.298, allocations: 375.2 kB / 0.567 GB, free: 3.023 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003189/1.299, allocations: 64 kB / 0.567 GB, free: 2.961 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002433/1.299, allocations: 449.7 kB / 0.5675 GB, free: 2.512 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002367/1.301, allocations: 0.951 MB / 0.5684 GB, free: 1.559 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004094/1.305, allocations: 2.912 MB / 0.5712 GB, free: 13.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004395/1.31, allocations: 1.671 MB / 0.5729 GB, free: 11.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.289e-05/1.31, allocations: 20 kB / 0.5729 GB, free: 11.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01073/1.321, allocations: 3.705 MB / 0.5765 GB, free: 8.262 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.999e-05/1.321, allocations: 43.92 kB / 0.5765 GB, free: 8.219 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/1.321, allocations: 68 kB / 0.5766 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000141/1.321, allocations: 107.9 kB / 0.5767 GB, free: 8.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/1.325, allocations: 0.718 MB / 0.5774 GB, free: 7.328 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001591/1.326, allocations: 139.5 kB / 0.5775 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003396/1.329, allocations: 443.3 kB / 0.578 GB, free: 6.754 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007264/1.33, allocations: 204 kB / 0.5782 GB, free: 6.555 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 317 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[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 (395): * Single equations (assignments): 392 * 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 prepare postOptimizeDAE: time 0.003816/1.334, allocations: 1.451 MB / 0.5796 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004102/1.334, allocations: 173.7 kB / 0.5797 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003429/1.337, allocations: 1.236 MB / 0.581 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.204e-05/1.337, allocations: 8 kB / 0.581 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/1.337, allocations: 0 / 0.581 GB, free: 3.668 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/1.338, allocations: 7.984 kB / 0.581 GB, free: 3.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/1.352, allocations: 5.041 MB / 0.5859 GB, free: 14.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.909e-05/1.352, allocations: 8 kB / 0.5859 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/1.353, allocations: 143.8 kB / 0.586 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.271e-05/1.353, allocations: 12 kB / 0.586 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.345e-05/1.354, allocations: 28 kB / 0.5861 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.077e-05/1.354, allocations: 27.81 kB / 0.5861 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.742e-05/1.354, allocations: 15.94 kB / 0.5861 GB, free: 14.19 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/1.357, allocations: 1.566 MB / 0.5876 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000647/1.358, allocations: 270.5 kB / 0.5879 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003799/1.358, allocations: 27.98 kB / 0.5879 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/1.359, allocations: 47.88 kB / 0.588 GB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/1.359, allocations: 79.7 kB / 0.588 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/1.359, allocations: 39.98 kB / 0.5881 GB, free: 12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003304/1.363, allocations: 1.312 MB / 0.5894 GB, free: 10.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.363, allocations: 0 / 0.5894 GB, free: 10.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003999/1.367, allocations: 0.7699 MB / 0.5901 GB, free: 9.887 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.0004755/1.367, allocations: 150.9 kB / 0.5903 GB, free: 9.727 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005817/1.373, allocations: 2.233 MB / 0.5924 GB, free: 7.516 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/1.373, allocations: 0 / 0.5924 GB, free: 7.516 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/1.375, allocations: 0.5633 MB / 0.593 GB, free: 6.949 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/1.376, allocations: 246.2 kB / 0.5932 GB, free: 6.707 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01748/1.394, allocations: 7.281 MB / 0.6003 GB, free: 15.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004909/1.399, allocations: 2.513 MB / 0.6028 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008404/1.4, allocations: 155.4 kB / 0.6029 GB, free: 12.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/1.4, allocations: 0 / 0.6029 GB, free: 12.57 MB / 442.7 MB Notification: Performance of Templates: time 0.0757/1.475, allocations: 32.31 MB / 0.6345 GB, free: 12.25 MB / 474.7 MB