Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.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.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004144/0.004149, allocations: 345.9 kB / 15.93 MB, free: 6.219 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.359/3.359, allocations: 341.5 MB / 358.2 MB, free: 12.62 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.003508/0.003508, allocations: 222.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.4868/0.4868, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.0004562, allocations: 16 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/0.08869, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.457/0.5457, allocations: 92.19 MB / 0.6968 GB, free: 20.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.5461, allocations: 89.55 kB / 0.6968 GB, free: 20.42 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.604/1.15, allocations: 72.41 MB / 0.7676 GB, free: 87.32 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.366e-06/1.15, allocations: 3.281 kB / 0.7676 GB, free: 87.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002408/1.15, allocations: 69.3 kB / 0.7676 GB, free: 87.31 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.0158/1.166, allocations: 3.434 MB / 0.771 GB, free: 85.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/1.166, allocations: 11.69 kB / 0.771 GB, free: 85.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03091/1.197, allocations: 3.423 MB / 0.7743 GB, free: 85.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/1.212, allocations: 3.113 MB / 0.7774 GB, free: 85.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000627/1.213, allocations: 253 kB / 0.7776 GB, free: 85.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002602/1.216, allocations: 329.6 kB / 0.7779 GB, free: 85.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02867/1.244, allocations: 8.265 MB / 0.786 GB, free: 82.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001963/1.245, allocations: 58.81 kB / 0.7861 GB, free: 82.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008039/1.245, allocations: 161.1 kB / 0.7862 GB, free: 82.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001709/1.247, allocations: 0.8137 MB / 0.787 GB, free: 82.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01967/1.267, allocations: 6.658 MB / 0.7935 GB, free: 82.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0488/1.316, allocations: 39.74 MB / 0.8323 GB, free: 52.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007294/1.323, allocations: 2.275 MB / 0.8345 GB, free: 51.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002161/1.325, allocations: 1.079 MB / 0.8356 GB, free: 50.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004599/1.326, allocations: 333.5 kB / 0.8359 GB, free: 50.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/1.326, allocations: 46.12 kB / 0.8359 GB, free: 50.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 5.01e-06/1.326, allocations: 0 / 0.8359 GB, free: 50.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.05708/1.383, allocations: 11.33 MB / 0.847 GB, free: 46.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/1.383, allocations: 197 kB / 0.8472 GB, free: 45.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006667/1.39, allocations: 3.675 MB / 0.8508 GB, free: 44.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/1.39, allocations: 46.67 kB / 0.8508 GB, free: 44.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/1.392, allocations: 2.692 MB / 0.8535 GB, free: 42.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000724/1.393, allocations: 0.556 MB / 0.854 GB, free: 42.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/1.393, allocations: 106.6 kB / 0.8541 GB, free: 41.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003077/1.394, allocations: 0.5335 MB / 0.8546 GB, free: 41.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/1.397, allocations: 1.633 MB / 0.8562 GB, free: 41.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006325/1.404, allocations: 5.077 MB / 0.8612 GB, free: 35.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006242/1.41, allocations: 2.84 MB / 0.864 GB, free: 34.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.519e-05/1.41, allocations: 39.95 kB / 0.864 GB, free: 34.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01752/1.428, allocations: 6.63 MB / 0.8705 GB, free: 28.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.91e-05/1.428, allocations: 56 kB / 0.8705 GB, free: 28.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002129/1.428, allocations: 123.9 kB / 0.8706 GB, free: 28.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/1.429, allocations: 353.9 kB / 0.871 GB, free: 27.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007545/1.437, allocations: 1.232 MB / 0.8722 GB, free: 26.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004166/1.441, allocations: 2.711 MB / 0.8748 GB, free: 24.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005789/1.447, allocations: 296.8 kB / 0.8751 GB, free: 23.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/1.448, allocations: 334.5 kB / 0.8754 GB, free: 23.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (664): * Single equations (assignments): 660 * 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.004333/1.453, allocations: 1.774 MB / 0.8772 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007897/1.453, allocations: 311.9 kB / 0.8775 GB, free: 21.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004857/1.458, allocations: 1.741 MB / 0.8792 GB, free: 20.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.692e-05/1.458, allocations: 16 kB / 0.8792 GB, free: 20.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.458, allocations: 6.812 kB / 0.8792 GB, free: 20.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.119e-05/1.458, allocations: 8.828 kB / 0.8792 GB, free: 20.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/1.473, allocations: 5.392 MB / 0.8845 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/1.473, allocations: 4 kB / 0.8845 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/1.475, allocations: 218.6 kB / 0.8847 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008102/1.476, allocations: 154.9 kB / 0.8848 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002041/1.476, allocations: 27.28 kB / 0.8848 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/1.479, allocations: 2.151 MB / 0.8869 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/1.479, allocations: 4 kB / 0.8869 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008196/1.488, allocations: 3.719 MB / 0.8906 GB, free: 9.988 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.49, allocations: 0.5257 MB / 0.8911 GB, free: 9.477 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008556/1.49, allocations: 25.67 kB / 0.8911 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002332/1.493, allocations: 61.48 kB / 0.8912 GB, free: 9.414 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/1.493, allocations: 80.92 kB / 0.8913 GB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001719/1.493, allocations: 43.14 kB / 0.8913 GB, free: 9.328 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005865/1.499, allocations: 2.295 MB / 0.8935 GB, free: 7.445 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.499, allocations: 0 / 0.8935 GB, free: 7.445 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005805/1.505, allocations: 0.815 MB / 0.8943 GB, free: 6.633 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (112): * Single equations (assignments): 108 * 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.0005321/1.506, allocations: 151.5 kB / 0.8945 GB, free: 6.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009155/1.515, allocations: 3.986 MB / 0.8984 GB, free: 2.855 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/1.515, allocations: 0 / 0.8984 GB, free: 2.855 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002429/1.517, allocations: 1.086 MB / 0.8994 GB, free: 1.758 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/1.521, allocations: 354.9 kB / 0.8998 GB, free: 1.418 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02175/1.543, allocations: 8.569 MB / 0.9081 GB, free: 8.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006241/1.549, allocations: 2.823 MB / 0.9109 GB, free: 5.988 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00852/1.558, allocations: 1.74 MB / 0.9126 GB, free: 4.254 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001338/1.559, allocations: 219.4 kB / 0.9128 GB, free: 4.039 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/1.559, allocations: 0 / 0.9128 GB, free: 4.039 MB / 426.7 MB Notification: Performance of Templates: time 0.4066/1.966, allocations: 26.91 MB / 0.9391 GB, free: 87.47 MB / 426.7 MB