Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00409/0.004096, allocations: 348 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.782/3.782, allocations: 341.5 MB / 358.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003542/0.003542, allocations: 230.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4855/0.4855, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006258/0.0006262, allocations: 15.98 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.0887, allocations: 48.71 MB / 0.6067 GB, free: 4.633 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4211/0.5099, allocations: 94.69 MB / 0.6992 GB, free: 17.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.5102, allocations: 84.64 kB / 0.6993 GB, free: 17.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.103/1.613, allocations: 130.7 MB / 0.827 GB, free: 79.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.867e-06/1.613, allocations: 0 / 0.827 GB, free: 79.41 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006014/1.614, allocations: 137.4 kB / 0.8271 GB, free: 79.41 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.03767/1.651, allocations: 6.935 MB / 0.8339 GB, free: 74.81 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.651, allocations: 11.59 kB / 0.8339 GB, free: 74.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04259/1.694, allocations: 5.499 MB / 0.8392 GB, free: 71.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01988/1.714, allocations: 6.217 MB / 0.8453 GB, free: 65.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006605/1.715, allocations: 0.5064 MB / 0.8458 GB, free: 64.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004016/1.719, allocations: 0.6642 MB / 0.8465 GB, free: 64.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04577/1.765, allocations: 16.05 MB / 0.8621 GB, free: 46.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004546/1.765, allocations: 95.12 kB / 0.8622 GB, free: 46.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00317/1.768, allocations: 327.4 kB / 0.8625 GB, free: 46.54 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/1.771, allocations: 1.545 MB / 0.864 GB, free: 44.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03812/1.81, allocations: 12.95 MB / 0.8767 GB, free: 32.01 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5287/2.338, allocations: 72.81 MB / 0.9478 GB, free: 38.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02679/2.365, allocations: 6.372 MB / 0.954 GB, free: 37.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01137/2.377, allocations: 3.714 MB / 0.9576 GB, free: 37.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03317/2.41, allocations: 9.222 MB / 0.9666 GB, free: 35.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.832e-05/2.41, allocations: 63.12 kB / 0.9667 GB, free: 35.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=269): time 9.608e-06/2.41, allocations: 1.344 kB / 0.9667 GB, free: 35.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=311): time 0.1333/2.543, allocations: 30.03 MB / 0.996 GB, free: 27.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/2.544, allocations: 238.2 kB / 0.9963 GB, free: 27.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01644/2.56, allocations: 6.913 MB / 1.003 GB, free: 25.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008342/2.561, allocations: 69.83 kB / 1.003 GB, free: 25.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004756/2.566, allocations: 4.822 MB / 1.008 GB, free: 21.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001951/2.568, allocations: 1.178 MB / 1.009 GB, free: 20.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/2.569, allocations: 184.6 kB / 1.009 GB, free: 20.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009684/2.57, allocations: 0.6836 MB / 1.01 GB, free: 19.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009613/2.58, allocations: 3.574 MB / 1.013 GB, free: 18.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01322/2.593, allocations: 8.883 MB / 1.022 GB, free: 10.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/2.606, allocations: 5.496 MB / 1.027 GB, free: 7.871 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001863/2.606, allocations: 54.53 kB / 1.027 GB, free: 7.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04332/2.65, allocations: 13.88 MB / 1.041 GB, free: 13.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/2.65, allocations: 84 kB / 1.041 GB, free: 13.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004122/2.65, allocations: 191.9 kB / 1.041 GB, free: 13.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007797/2.658, allocations: 1.669 MB / 1.043 GB, free: 11.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01507/2.673, allocations: 2.135 MB / 1.045 GB, free: 9.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0279/2.701, allocations: 11.46 MB / 1.056 GB, free: 0 / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01298/2.714, allocations: 0.5334 MB / 1.057 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002585/2.717, allocations: 0.5397 MB / 1.057 GB, free: 15.05 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1104): * Single equations (assignments): 1099 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01128/2.728, allocations: 3.227 MB / 1.06 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002505/2.731, allocations: 0.5974 MB / 1.061 GB, free: 11.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02367/2.754, allocations: 6.705 MB / 1.067 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.166e-05/2.755, allocations: 33.09 kB / 1.067 GB, free: 4.906 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.004e-05/2.755, allocations: 8 kB / 1.067 GB, free: 4.898 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.468e-05/2.755, allocations: 15.95 kB / 1.067 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05168/2.806, allocations: 15.13 MB / 1.082 GB, free: 5.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.84e-05/2.807, allocations: 8.094 kB / 1.082 GB, free: 5.723 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008517/2.815, allocations: 0.5616 MB / 1.083 GB, free: 5.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01128/2.826, allocations: 1.386 MB / 1.084 GB, free: 3.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001041/2.828, allocations: 59.98 kB / 1.084 GB, free: 3.711 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03813/2.866, allocations: 10.51 MB / 1.094 GB, free: 8.953 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.549e-05/2.866, allocations: 8 kB / 1.094 GB, free: 8.945 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3877/3.253, allocations: 10.93 MB / 1.105 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004845/3.258, allocations: 1.148 MB / 1.106 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002955/3.261, allocations: 60.86 kB / 1.106 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006366/3.268, allocations: 198.5 kB / 1.107 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001349/3.269, allocations: 197.4 kB / 1.107 GB, free: 136.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008709/3.27, allocations: 81.22 kB / 1.107 GB, free: 136.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01443/3.285, allocations: 4.417 MB / 1.111 GB, free: 136.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.042e-06/3.285, allocations: 0 / 1.111 GB, free: 136.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01343/3.298, allocations: 1.659 MB / 1.113 GB, free: 136.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001484/3.3, allocations: 197.9 kB / 1.113 GB, free: 136.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02445/3.324, allocations: 8.802 MB / 1.122 GB, free: 135.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/3.324, allocations: 4.219 kB / 1.122 GB, free: 135.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01034/3.334, allocations: 3.382 MB / 1.125 GB, free: 135.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0101/3.345, allocations: 0.7447 MB / 1.126 GB, free: 135.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04744/3.392, allocations: 18.3 MB / 1.143 GB, free: 129 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01407/3.406, allocations: 5.028 MB / 1.148 GB, free: 127.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01529/3.422, allocations: 2.969 MB / 1.151 GB, free: 127.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003228/3.425, allocations: 409.3 kB / 1.152 GB, free: 127.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.673e-06/3.425, allocations: 0 / 1.152 GB, free: 127.3 MB / 490.7 MB Notification: Performance of Templates: time 0.18/3.605, allocations: 63.6 MB / 1.214 GB, free: 89.78 MB / 490.7 MB