Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.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.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002801/0.002805, allocations: 363.1 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 4.126/4.126, allocations: 388.9 MB / 405.6 MB, free: 9.582 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.003573/0.003573, allocations: 249.6 kB / 451 MB, free: 145 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.5079/0.5079, allocations: 80.02 MB / 0.5627 GB, free: 19.75 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005122/0.0005124, allocations: 15.98 kB / 0.6265 GB, free: 96.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1028, allocations: 54.86 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.5935, allocations: 98.44 MB / 0.7762 GB, free: 3.152 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5939, allocations: 89.77 kB / 0.7763 GB, free: 3.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.39/0.984, allocations: 78.38 MB / 0.8528 GB, free: 12.27 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.984, allocations: 0 / 0.8528 GB, free: 12.27 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003028/0.9843, allocations: 68 kB / 0.8529 GB, free: 12.2 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01588/1, allocations: 3.716 MB / 0.8565 GB, free: 8.418 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1, allocations: 11.97 kB / 0.8566 GB, free: 8.406 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02821/1.029, allocations: 3.497 MB / 0.86 GB, free: 4.898 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01111/1.04, allocations: 3.269 MB / 0.8632 GB, free: 1.566 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004344/1.04, allocations: 279.3 kB / 0.8634 GB, free: 1.293 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/1.042, allocations: 371.8 kB / 0.8638 GB, free: 0.9297 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02683/1.069, allocations: 9.109 MB / 0.8727 GB, free: 6.84 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002375/1.07, allocations: 55.47 kB / 0.8727 GB, free: 6.785 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001467/1.071, allocations: 183.9 kB / 0.8729 GB, free: 6.605 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002268/1.073, allocations: 0.8923 MB / 0.8738 GB, free: 5.703 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02452/1.098, allocations: 7.349 MB / 0.881 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4024/1.5, allocations: 42.63 MB / 0.9226 GB, free: 81.43 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008717/1.509, allocations: 2.513 MB / 0.925 GB, free: 80.77 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002662/1.512, allocations: 1.08 MB / 0.9261 GB, free: 80.74 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005816/1.512, allocations: 327.9 kB / 0.9264 GB, free: 80.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/1.513, allocations: 55.44 kB / 0.9265 GB, free: 80.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=119): time 5.189e-06/1.513, allocations: 0 / 0.9265 GB, free: 80.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=133): time 0.03823/1.551, allocations: 8.862 MB / 0.9351 GB, free: 77.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.106e-05/1.551, allocations: 196.8 kB / 0.9353 GB, free: 77.73 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008222/1.559, allocations: 3.912 MB / 0.9391 GB, free: 77.39 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/1.56, allocations: 47.06 kB / 0.9392 GB, free: 77.36 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002685/1.562, allocations: 2.964 MB / 0.9421 GB, free: 75.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008642/1.563, allocations: 0.5468 MB / 0.9426 GB, free: 75.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005873/1.564, allocations: 112.6 kB / 0.9427 GB, free: 75.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003631/1.564, allocations: 0.5511 MB / 0.9432 GB, free: 75.31 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004054/1.568, allocations: 1.635 MB / 0.9448 GB, free: 75.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006691/1.575, allocations: 5.451 MB / 0.9502 GB, free: 70.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006843/1.582, allocations: 2.935 MB / 0.953 GB, free: 70.33 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/1.582, allocations: 39.75 kB / 0.9531 GB, free: 70.33 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01855/1.601, allocations: 6.925 MB / 0.9598 GB, free: 69.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/1.601, allocations: 63.66 kB / 0.9599 GB, free: 69.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/1.601, allocations: 141.9 kB / 0.96 GB, free: 69.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/1.602, allocations: 364.3 kB / 0.9604 GB, free: 69.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.61, allocations: 1.329 MB / 0.9617 GB, free: 69.04 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004235/1.614, allocations: 2.73 MB / 0.9643 GB, free: 67.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006234/1.62, allocations: 304.9 kB / 0.9646 GB, free: 67.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00115/1.621, allocations: 366.7 kB / 0.965 GB, free: 66.99 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (715): * Single equations (assignments): 711 * 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 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00477/1.626, allocations: 1.939 MB / 0.9669 GB, free: 66.05 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008547/1.627, allocations: 322.5 kB / 0.9672 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/1.631, allocations: 1.585 MB / 0.9687 GB, free: 65.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-05/1.631, allocations: 17.45 kB / 0.9687 GB, free: 65.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/1.631, allocations: 3.656 kB / 0.9687 GB, free: 65.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/1.631, allocations: 7.406 kB / 0.9687 GB, free: 65.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/1.645, allocations: 5.242 MB / 0.9739 GB, free: 63.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.646, allocations: 0 / 0.9739 GB, free: 63.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001756/1.647, allocations: 195.8 kB / 0.9741 GB, free: 63.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007461/1.648, allocations: 157.6 kB / 0.9742 GB, free: 63.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/1.648, allocations: 22.7 kB / 0.9742 GB, free: 63.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003139/1.651, allocations: 2.159 MB / 0.9763 GB, free: 61.47 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/1.651, allocations: 3.125 kB / 0.9763 GB, free: 61.47 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007875/1.659, allocations: 3.366 MB / 0.9796 GB, free: 59.92 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.661, allocations: 0.5177 MB / 0.9801 GB, free: 59.58 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009423/1.662, allocations: 26.48 kB / 0.9802 GB, free: 59.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/1.665, allocations: 61.56 kB / 0.9802 GB, free: 59.55 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/1.665, allocations: 75.23 kB / 0.9803 GB, free: 59.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.665, allocations: 37.09 kB / 0.9803 GB, free: 59.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006563/1.672, allocations: 2.433 MB / 0.9827 GB, free: 58.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.672, allocations: 0 / 0.9827 GB, free: 58.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006869/1.679, allocations: 0.8478 MB / 0.9835 GB, free: 58.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005421/1.679, allocations: 153.4 kB / 0.9837 GB, free: 58.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009547/1.689, allocations: 3.981 MB / 0.9876 GB, free: 57.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.689, allocations: 4.625 kB / 0.9876 GB, free: 57.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002283/1.691, allocations: 0.9804 MB / 0.9885 GB, free: 56.66 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003808/1.695, allocations: 369.5 kB / 0.9889 GB, free: 56.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/1.72, allocations: 9.11 MB / 0.9978 GB, free: 51.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004331/1.724, allocations: 3.018 MB / 1.001 GB, free: 48.91 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00767/1.732, allocations: 1.816 MB / 1.002 GB, free: 47.77 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001059/1.733, allocations: 227.3 kB / 1.003 GB, free: 47.55 MB / 474.7 MB Notification: Performance of SimCode: time 1.694e-06/1.733, allocations: 0 / 1.003 GB, free: 47.55 MB / 474.7 MB Notification: Performance of Templates: time 0.08445/1.818, allocations: 27.33 MB / 1.029 GB, free: 27.36 MB / 474.7 MB