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.Forces.Torque3.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.Forces.Torque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadModel(ModelicaTest): time 1.916/1.916, allocations: 209.2 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004393/0.0004396, allocations: 15.98 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2864, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.4324, allocations: 97.17 MB / 428.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.4327, allocations: 79.95 kB / 428.5 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.683, allocations: 223 MB / 0.6363 GB, free: 31.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.517e-06/1.683, allocations: 0 / 0.6363 GB, free: 31.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007785/1.684, allocations: 232.7 kB / 0.6365 GB, free: 31.1 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: 4176 * Number of variables: 4176 Notification: Performance of Generate backend data structure: time 0.04271/1.726, allocations: 12.26 MB / 0.6485 GB, free: 26.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/1.726, allocations: 10.19 kB / 0.6485 GB, free: 26.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06644/1.793, allocations: 12.63 MB / 0.6608 GB, free: 25.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03518/1.828, allocations: 12.59 MB / 0.6731 GB, free: 24.49 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001029/1.829, allocations: 0.9014 MB / 0.674 GB, free: 24.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005072/1.834, allocations: 1.198 MB / 0.6752 GB, free: 24.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07447/1.909, allocations: 28.35 MB / 0.7028 GB, free: 18.97 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007327/1.909, allocations: 137.2 kB / 0.703 GB, free: 18.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004681/1.914, allocations: 0.5554 MB / 0.7035 GB, free: 18.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005024/1.919, allocations: 2.673 MB / 0.7061 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06188/1.981, allocations: 23.55 MB / 0.7291 GB, free: 16.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5131/2.494, allocations: 116.9 MB / 0.8433 GB, free: 26.61 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0452/2.54, allocations: 13.72 MB / 0.8567 GB, free: 25.87 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002995/2.543, allocations: 2.35 MB / 0.859 GB, free: 23.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/2.543, allocations: 102.6 kB / 0.8591 GB, free: 23.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=559): time 1.29e-05/2.543, allocations: 0 / 0.8591 GB, free: 23.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=643): time 0.2123/2.755, allocations: 62.11 MB / 0.9197 GB, free: 13.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002217/2.755, allocations: 323.2 kB / 0.92 GB, free: 13.63 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02112/2.776, allocations: 9.069 MB / 0.9289 GB, free: 12.96 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001472/2.778, allocations: 126.4 kB / 0.929 GB, free: 12.93 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006114/2.784, allocations: 7.296 MB / 0.9361 GB, free: 9.227 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003849/2.788, allocations: 2.346 MB / 0.9384 GB, free: 7.828 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002229/2.79, allocations: 295.1 kB / 0.9387 GB, free: 7.625 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001391/2.792, allocations: 0.9117 MB / 0.9396 GB, free: 7.055 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01593/2.808, allocations: 6.525 MB / 0.946 GB, free: 2.707 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04388/2.851, allocations: 15.22 MB / 0.9608 GB, free: 5.305 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.023/2.875, allocations: 9.509 MB / 0.9701 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002772/2.875, allocations: 74.75 kB / 0.9702 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.06288/2.938, allocations: 23.1 MB / 0.9927 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002633/2.938, allocations: 116.9 kB / 0.9929 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005054/2.939, allocations: 264 kB / 0.9931 GB, free: 10.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01156/2.95, allocations: 3.277 MB / 0.9963 GB, free: 7.871 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01723/2.967, allocations: 3.494 MB / 0.9997 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3506/3.318, allocations: 23.32 MB / 1.022 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01504/3.333, allocations: 0.8738 MB / 1.023 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003239/3.336, allocations: 0.8072 MB / 1.024 GB, free: 113.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1741): * Single equations (assignments): 1734 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01385/3.35, allocations: 5.333 MB / 1.029 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002475/3.353, allocations: 0.9479 MB / 1.03 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03657/3.389, allocations: 14.6 MB / 1.045 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-05/3.39, allocations: 69.09 kB / 1.045 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.375e-05/3.39, allocations: 20.88 kB / 1.045 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/3.39, allocations: 29.77 kB / 1.045 GB, free: 113.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08205/3.472, allocations: 31.28 MB / 1.075 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.152e-05/3.472, allocations: 3.625 kB / 1.075 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00879/3.481, allocations: 1.218 MB / 1.076 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01013/3.491, allocations: 2.837 MB / 1.079 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001596/3.493, allocations: 118.3 kB / 1.079 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03607/3.529, allocations: 21.71 MB / 1.1 GB, free: 97.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/3.529, allocations: 13.88 kB / 1.1 GB, free: 97.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.048/3.577, allocations: 24.01 MB / 1.124 GB, free: 86.93 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00709/3.584, allocations: 2.04 MB / 1.126 GB, free: 85.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003864/3.588, allocations: 111.3 kB / 1.126 GB, free: 85.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008412/3.596, allocations: 490.6 kB / 1.127 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002088/3.598, allocations: 396.7 kB / 1.127 GB, free: 85.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001377/3.6, allocations: 161.7 kB / 1.127 GB, free: 85.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01561/3.615, allocations: 6.514 MB / 1.133 GB, free: 83.37 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.291e-06/3.615, allocations: 3.281 kB / 1.133 GB, free: 83.37 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01797/3.633, allocations: 2.933 MB / 1.136 GB, free: 80.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (554): * Single equations (assignments): 547 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001859/3.635, allocations: 294.8 kB / 1.137 GB, free: 80.22 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.03132/3.667, allocations: 16.28 MB / 1.152 GB, free: 66.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.281e-05/3.667, allocations: 3.859 kB / 1.152 GB, free: 66.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01602/3.683, allocations: 7.17 MB / 1.159 GB, free: 60.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008796/3.692, allocations: 1.198 MB / 1.161 GB, free: 59.59 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3815/4.073, allocations: 34.37 MB / 1.194 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02282/4.096, allocations: 8.301 MB / 1.202 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006032/4.102, allocations: 0.7687 MB / 1.203 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of SimCode: time 3.079e-06/4.102, allocations: 0 / 1.203 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.8191/4.921, allocations: 346.5 MB / 1.541 GB, free: 11.67 MB / 0.5261 GB