Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004007/0.004013, allocations: 363.5 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.994/3.994, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003516/0.003516, allocations: 225.2 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5223/0.5223, allocations: 80.03 MB / 0.5627 GB, free: 19.85 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006309/0.0006312, allocations: 12 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1023, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5453/0.6477, allocations: 102.9 MB / 0.7806 GB, free: 14.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.648, allocations: 86 kB / 0.7807 GB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5293/1.177, allocations: 117.3 MB / 0.8952 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.177, allocations: 0 / 0.8952 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000475/1.178, allocations: 116 kB / 0.8953 GB, free: 0.6758 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.3673/1.545, allocations: 6.205 MB / 0.9014 GB, free: 91.37 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.545, allocations: 9.312 kB / 0.9014 GB, free: 91.37 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0429/1.588, allocations: 5.327 MB / 0.9066 GB, free: 90.96 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02282/1.611, allocations: 6.478 MB / 0.9129 GB, free: 90.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007973/1.612, allocations: 448.6 kB / 0.9133 GB, free: 90.17 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003643/1.616, allocations: 0.5748 MB / 0.9139 GB, free: 90.16 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0429/1.658, allocations: 13.82 MB / 0.9274 GB, free: 86.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005965/1.659, allocations: 86.77 kB / 0.9275 GB, free: 86.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003024/1.662, allocations: 277.9 kB / 0.9277 GB, free: 86.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002889/1.665, allocations: 1.326 MB / 0.929 GB, free: 86.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03449/1.7, allocations: 11.54 MB / 0.9403 GB, free: 86.87 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09622/1.796, allocations: 61.99 MB / 1.001 GB, free: 42.68 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02201/1.818, allocations: 5.609 MB / 1.006 GB, free: 40.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005947/1.824, allocations: 3.323 MB / 1.01 GB, free: 39.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008493/1.825, allocations: 0.6858 MB / 1.01 GB, free: 38.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/1.825, allocations: 63.72 kB / 1.01 GB, free: 38.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 6.392e-06/1.825, allocations: 0 / 1.01 GB, free: 38.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1677/1.993, allocations: 34.17 MB / 1.044 GB, free: 13.29 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.993, allocations: 269.3 kB / 1.044 GB, free: 12.97 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01213/2.005, allocations: 5.247 MB / 1.049 GB, free: 8.59 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000875/2.006, allocations: 73.7 kB / 1.049 GB, free: 8.512 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003793/2.01, allocations: 4.053 MB / 1.053 GB, free: 4.883 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001868/2.012, allocations: 1.183 MB / 1.054 GB, free: 3.832 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00117/2.013, allocations: 159.8 kB / 1.054 GB, free: 3.68 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005624/2.013, allocations: 0.6258 MB / 1.055 GB, free: 3.141 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008434/2.022, allocations: 3.322 MB / 1.058 GB, free: 324 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01661/2.039, allocations: 7.763 MB / 1.066 GB, free: 7.285 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/2.054, allocations: 4.921 MB / 1.071 GB, free: 2.34 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002047/2.054, allocations: 44 kB / 1.071 GB, free: 2.297 MB / 490.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.4026/2.456, allocations: 12.55 MB / 1.083 GB, free: 96.21 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000129/2.457, allocations: 67 kB / 1.083 GB, free: 96.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003539/2.457, allocations: 151.5 kB / 1.083 GB, free: 96.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/2.467, allocations: 2.108 MB / 1.085 GB, free: 96.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01197/2.479, allocations: 1.754 MB / 1.087 GB, free: 96.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02793/2.507, allocations: 14.34 MB / 1.101 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008986/2.516, allocations: 452.5 kB / 1.101 GB, free: 93.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001732/2.518, allocations: 452.1 kB / 1.102 GB, free: 93.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007599/2.526, allocations: 2.814 MB / 1.105 GB, free: 93.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001516/2.527, allocations: 0.4906 MB / 1.105 GB, free: 93.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/2.557, allocations: 7.04 MB / 1.112 GB, free: 92.76 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.673e-05/2.557, allocations: 33.31 kB / 1.112 GB, free: 92.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.153e-05/2.557, allocations: 10.41 kB / 1.112 GB, free: 92.76 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001021/2.557, allocations: 15.62 kB / 1.112 GB, free: 92.76 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05401/2.611, allocations: 16.01 MB / 1.128 GB, free: 87.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.921e-05/2.611, allocations: 6.625 kB / 1.128 GB, free: 87.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004867/2.616, allocations: 0.5084 MB / 1.128 GB, free: 87.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008162/2.624, allocations: 1.845 MB / 1.13 GB, free: 86.74 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000807/2.625, allocations: 64.47 kB / 1.13 GB, free: 86.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02729/2.653, allocations: 12.83 MB / 1.142 GB, free: 80.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/2.653, allocations: 9.062 kB / 1.142 GB, free: 80.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02889/2.682, allocations: 11.25 MB / 1.153 GB, free: 75.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003916/2.685, allocations: 1.053 MB / 1.154 GB, free: 74.82 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001888/2.687, allocations: 65.98 kB / 1.155 GB, free: 74.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005757/2.693, allocations: 206.8 kB / 1.155 GB, free: 74.75 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001254/2.695, allocations: 212.9 kB / 1.155 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004467/2.695, allocations: 88.12 kB / 1.155 GB, free: 74.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00844/2.703, allocations: 3.312 MB / 1.158 GB, free: 73.58 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.704, allocations: 3.625 kB / 1.158 GB, free: 73.58 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009401/2.713, allocations: 1.488 MB / 1.16 GB, free: 73.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.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 (259): * Single equations (assignments): 254 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001149/2.714, allocations: 214.2 kB / 1.16 GB, free: 73.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01921/2.733, allocations: 8.28 MB / 1.168 GB, free: 68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/2.733, allocations: 4 kB / 1.168 GB, free: 68 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01359/2.747, allocations: 3.913 MB / 1.172 GB, free: 64.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00792/2.755, allocations: 0.6742 MB / 1.172 GB, free: 64.11 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03972/2.795, allocations: 16.9 MB / 1.189 GB, free: 48.89 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01062/2.806, allocations: 4.523 MB / 1.193 GB, free: 45.52 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01215/2.818, allocations: 2.494 MB / 1.196 GB, free: 43.92 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002691/2.82, allocations: 356 kB / 1.196 GB, free: 43.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.844e-06/2.821, allocations: 0 / 1.196 GB, free: 43.59 MB / 490.7 MB Notification: Performance of Templates: time 0.547/3.368, allocations: 60.78 MB / 1.256 GB, free: 104.4 MB / 0.4949 GB