Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00258/0.00258, allocations: 349.9 kB / 15.94 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.598/3.598, allocations: 341.5 MB / 358.2 MB, free: 12.54 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.003726/0.003726, allocations: 222.1 kB / 397.9 MB, free: 4.887 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.5177/0.5177, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000626/0.0006261, allocations: 12 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.127, allocations: 48.7 MB / 0.6067 GB, free: 4.637 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4879/0.6149, allocations: 91.63 MB / 0.6962 GB, free: 21.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003709/0.6154, allocations: 79.97 kB / 0.6963 GB, free: 20.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6893/1.305, allocations: 78.31 MB / 0.7728 GB, free: 86.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.529e-06/1.305, allocations: 0 / 0.7728 GB, free: 86.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002516/1.305, allocations: 74.34 kB / 0.7728 GB, free: 86.96 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: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01642/1.321, allocations: 3.716 MB / 0.7765 GB, free: 85.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/1.322, allocations: 9 kB / 0.7765 GB, free: 85.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02868/1.35, allocations: 3.496 MB / 0.7799 GB, free: 85.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/1.361, allocations: 3.276 MB / 0.7831 GB, free: 84.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004774/1.362, allocations: 278.2 kB / 0.7833 GB, free: 84.47 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00236/1.364, allocations: 365 kB / 0.7837 GB, free: 84.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/1.392, allocations: 9.1 MB / 0.7926 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003431/1.392, allocations: 58.31 kB / 0.7926 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002192/1.394, allocations: 182 kB / 0.7928 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002202/1.397, allocations: 0.9006 MB / 0.7937 GB, free: 81.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02083/1.418, allocations: 7.347 MB / 0.8009 GB, free: 81.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0599/1.478, allocations: 42.63 MB / 0.8425 GB, free: 48.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008013/1.486, allocations: 2.516 MB / 0.845 GB, free: 47.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002439/1.488, allocations: 1.082 MB / 0.846 GB, free: 46.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004773/1.489, allocations: 328.8 kB / 0.8463 GB, free: 46.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/1.489, allocations: 42.16 kB / 0.8464 GB, free: 46.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.019e-06/1.489, allocations: 0 / 0.8464 GB, free: 46.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.03868/1.527, allocations: 8.851 MB / 0.855 GB, free: 42.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.528, allocations: 206.1 kB / 0.8552 GB, free: 42.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01229/1.54, allocations: 3.905 MB / 0.859 GB, free: 40.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003926/1.54, allocations: 45.58 kB / 0.8591 GB, free: 40.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003783/1.544, allocations: 2.961 MB / 0.862 GB, free: 38.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/1.545, allocations: 0.5448 MB / 0.8625 GB, free: 37.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008481/1.546, allocations: 113.4 kB / 0.8626 GB, free: 37.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007217/1.547, allocations: 0.5511 MB / 0.8631 GB, free: 37.47 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005937/1.553, allocations: 1.642 MB / 0.8647 GB, free: 36.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006987/1.56, allocations: 5.439 MB / 0.87 GB, free: 29.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00733/1.567, allocations: 2.938 MB / 0.8729 GB, free: 26.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001418/1.568, allocations: 36 kB / 0.8729 GB, free: 26.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01939/1.587, allocations: 6.93 MB / 0.8797 GB, free: 20.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/1.587, allocations: 64 kB / 0.8798 GB, free: 20.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/1.587, allocations: 136 kB / 0.8799 GB, free: 20.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/1.589, allocations: 376.6 kB / 0.8803 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/1.596, allocations: 1.325 MB / 0.8816 GB, free: 18.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004422/1.601, allocations: 2.741 MB / 0.8842 GB, free: 16.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007617/1.608, allocations: 296.8 kB / 0.8845 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002008/1.611, allocations: 371 kB / 0.8849 GB, free: 15.55 MB / 410.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.007784/1.618, allocations: 1.935 MB / 0.8868 GB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001228/1.62, allocations: 323.8 kB / 0.8871 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007515/1.627, allocations: 1.584 MB / 0.8886 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.23e-05/1.627, allocations: 16.61 kB / 0.8886 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.627, allocations: 3.953 kB / 0.8886 GB, free: 12.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.588e-05/1.627, allocations: 10.98 kB / 0.8886 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0201/1.648, allocations: 5.237 MB / 0.8938 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/1.648, allocations: 0 / 0.8938 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001944/1.65, allocations: 195.7 kB / 0.8939 GB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008885/1.651, allocations: 160.8 kB / 0.8941 GB, free: 7.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002339/1.651, allocations: 20 kB / 0.8941 GB, free: 7.301 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005385/1.656, allocations: 2.164 MB / 0.8962 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/1.656, allocations: 0 / 0.8962 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01042/1.667, allocations: 3.377 MB / 0.8995 GB, free: 1.602 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001789/1.669, allocations: 0.524 MB / 0.9 GB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007399/1.669, allocations: 27.95 kB / 0.9001 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.671, allocations: 54.5 kB / 0.9001 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/1.672, allocations: 76.41 kB / 0.9002 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/1.672, allocations: 36 kB / 0.9002 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006317/1.678, allocations: 2.429 MB / 0.9026 GB, free: 14.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.678, allocations: 0 / 0.9026 GB, free: 14.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007053/1.685, allocations: 0.8486 MB / 0.9034 GB, free: 13.61 MB / 426.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.0006234/1.686, allocations: 159.5 kB / 0.9036 GB, free: 13.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.697, allocations: 3.973 MB / 0.9075 GB, free: 9.488 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.697, allocations: 0 / 0.9075 GB, free: 9.488 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002714/1.699, allocations: 0.9874 MB / 0.9084 GB, free: 8.496 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/1.704, allocations: 374.2 kB / 0.9088 GB, free: 8.137 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3238/2.028, allocations: 9.095 MB / 0.9177 GB, free: 88.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007635/2.035, allocations: 3.016 MB / 0.9206 GB, free: 87.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009147/2.045, allocations: 1.816 MB / 0.9224 GB, free: 87.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/2.046, allocations: 228.7 kB / 0.9226 GB, free: 87.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.423e-06/2.046, allocations: 0 / 0.9226 GB, free: 87.9 MB / 426.7 MB Notification: Performance of Templates: time 0.1049/2.151, allocations: 27.32 MB / 0.9493 GB, free: 87.04 MB / 426.7 MB