Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 187.2 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3046/0.3046, allocations: 37.98 MB / 307.4 MB, free: 10.13 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 70.41 kB / 374.7 MB, free: 15.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1276, allocations: 56.47 MB / 431.2 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2493/0.377, allocations: 33.89 MB / 465.1 MB, free: 34.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.3925, allocations: 7.631 MB / 472.7 MB, free: 32.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006617/0.3992, allocations: 136.8 kB / 472.9 MB, free: 32.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003448/0.4027, allocations: 1.609 MB / 474.5 MB, free: 32.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003887/0.4066, allocations: 1.535 MB / 476 MB, free: 31.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.4079, allocations: 0.5162 MB / 476.5 MB, free: 31.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004586/0.4125, allocations: 3.643 MB / 480.2 MB, free: 30.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002614/0.4151, allocations: 2.397 MB / 482.6 MB, free: 29.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.4165, allocations: 1.178 MB / 483.7 MB, free: 28.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.4181, allocations: 1.83 MB / 485.6 MB, free: 27.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004165/0.4185, allocations: 235.9 kB / 485.8 MB, free: 27.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00177/0.4203, allocations: 1.136 MB / 486.9 MB, free: 27.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001053/0.4214, allocations: 1.543 MB / 488.5 MB, free: 27.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.4227, allocations: 1.76 MB / 490.2 MB, free: 25.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007237/0.43, allocations: 5.597 MB / 495.8 MB, free: 23.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.43, allocations: 0 / 495.8 MB, free: 23.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4301, allocations: 1.031 kB / 495.8 MB, free: 23.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002362/0.4303, allocations: 0 / 495.8 MB, free: 23.98 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01298/0.4433, allocations: 3.861 MB / 499.7 MB, free: 21.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4433, allocations: 13.48 kB / 499.7 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.459, allocations: 2.379 MB / 0.4903 GB, free: 21.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006556/0.4656, allocations: 2.285 MB / 0.4925 GB, free: 20.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.4659, allocations: 170.1 kB / 0.4927 GB, free: 20.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.467, allocations: 234.4 kB / 0.4929 GB, free: 20.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0175/0.4845, allocations: 7.892 MB / 0.5006 GB, free: 16.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001231/0.4847, allocations: 39.28 kB / 0.5007 GB, free: 16.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/0.4851, allocations: 121 kB / 0.5008 GB, free: 16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003046/0.4881, allocations: 1.664 MB / 0.5024 GB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01309/0.5012, allocations: 6.755 MB / 0.509 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04013/0.5414, allocations: 31.55 MB / 0.5398 GB, free: 12.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004741/0.5462, allocations: 2.346 MB / 0.5421 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001535/0.5477, allocations: 1.176 MB / 0.5433 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000381/0.5481, allocations: 327.7 kB / 0.5436 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/0.5482, allocations: 43.06 kB / 0.5436 GB, free: 8.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.777e-06/0.5482, allocations: 4 kB / 0.5436 GB, free: 8.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03553/0.5837, allocations: 12.29 MB / 0.5556 GB, free: 11.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.5839, allocations: 196.6 kB / 0.5558 GB, free: 11.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005154/0.589, allocations: 3.742 MB / 0.5595 GB, free: 7.805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002694/0.5893, allocations: 45.7 kB / 0.5595 GB, free: 7.754 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001777/0.5911, allocations: 2.67 MB / 0.5621 GB, free: 5.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006224/0.5917, allocations: 0.5517 MB / 0.5627 GB, free: 4.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/0.5931, allocations: 1.126 MB / 0.5638 GB, free: 3.352 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.192e-05/0.5932, allocations: 301.1 kB / 0.564 GB, free: 3.055 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002463/0.5956, allocations: 1.81 MB / 0.5658 GB, free: 1.238 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004229/0.5999, allocations: 5.252 MB / 0.5709 GB, free: 10.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008178/0.6081, allocations: 7.619 MB / 0.5784 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.526e-05/0.6082, allocations: 32 kB / 0.5784 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01447/0.6227, allocations: 7.289 MB / 0.5855 GB, free: 9.594 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/0.6228, allocations: 60 kB / 0.5856 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001098/0.6229, allocations: 127.9 kB / 0.5857 GB, free: 9.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.6244, allocations: 0.6535 MB / 0.5863 GB, free: 8.754 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003676/0.6281, allocations: 1.263 MB / 0.5876 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004366/0.6325, allocations: 4.062 MB / 0.5915 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003885/0.6364, allocations: 307.5 kB / 0.5918 GB, free: 2.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005728/0.637, allocations: 344 kB / 0.5922 GB, free: 2.652 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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.groundColor[3],world.groundColor[2],world.groundColor[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 (684): * Single equations (assignments): 680 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002922/0.6399, allocations: 1.782 MB / 0.5939 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006484/0.6406, allocations: 312 kB / 0.5942 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/0.6447, allocations: 2.227 MB / 0.5964 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.62e-05/0.6447, allocations: 16 kB / 0.5964 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.6447, allocations: 7.938 kB / 0.5964 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.6447, allocations: 3.984 kB / 0.5964 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.6558, allocations: 5.976 MB / 0.6022 GB, free: 8.219 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.6558, allocations: 4 kB / 0.6022 GB, free: 8.215 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.657, allocations: 215.7 kB / 0.6025 GB, free: 8.004 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/0.6583, allocations: 488.3 kB / 0.6029 GB, free: 7.523 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.6585, allocations: 27.94 kB / 0.6029 GB, free: 7.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003947/0.6624, allocations: 3.433 MB / 0.6063 GB, free: 3.914 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.6625, allocations: 11.92 kB / 0.6063 GB, free: 3.902 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006368/0.6688, allocations: 4.339 MB / 0.6105 GB, free: 15.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/0.6704, allocations: 0.5516 MB / 0.6111 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005013/0.6709, allocations: 20 kB / 0.6111 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.6721, allocations: 79.89 kB / 0.6112 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.6724, allocations: 76.53 kB / 0.6113 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.6725, allocations: 36 kB / 0.6113 GB, free: 14.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004313/0.6768, allocations: 2.345 MB / 0.6136 GB, free: 12.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6768, allocations: 0 / 0.6136 GB, free: 12.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005769/0.6826, allocations: 0.832 MB / 0.6144 GB, free: 11.58 MB / 494.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004722/0.6831, allocations: 158.9 kB / 0.6145 GB, free: 11.42 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008116/0.6912, allocations: 4.744 MB / 0.6192 GB, free: 6.688 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.6913, allocations: 0 / 0.6192 GB, free: 6.688 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.6929, allocations: 1.191 MB / 0.6203 GB, free: 5.484 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/0.6952, allocations: 354.3 kB / 0.6207 GB, free: 5.137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2158/0.911, allocations: 9.086 MB / 0.6295 GB, free: 148.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002447/0.9135, allocations: 2.755 MB / 0.6322 GB, free: 147.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003854/0.9173, allocations: 1.729 MB / 0.6339 GB, free: 147.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000598/0.9179, allocations: 220.7 kB / 0.6341 GB, free: 147.8 MB / 494.1 MB Notification: Performance of SimCode: time 8.41e-07/0.9179, allocations: 0 / 0.6341 GB, free: 147.8 MB / 494.1 MB Notification: Performance of Templates: time 0.06307/0.981, allocations: 30.46 MB / 0.6639 GB, free: 140.7 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)