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.001221/0.001222, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001447/0.001447, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.3431/0.3431, allocations: 38.04 MB / 308.4 MB, free: 10.35 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.0005479/0.0005479, allocations: 20.22 kB / 376.4 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1169, allocations: 57.52 MB / 433.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2396/0.3566, allocations: 28.99 MB / 462.9 MB, free: 33.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.3706, allocations: 7.546 MB / 470.5 MB, free: 32.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005291/0.376, allocations: 138.1 kB / 470.6 MB, free: 32.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004984/0.381, allocations: 1.408 MB / 472 MB, free: 31.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01362/0.3946, allocations: 4.295 MB / 476.3 MB, free: 31.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.3968, allocations: 474.2 kB / 476.8 MB, free: 31.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01797/0.4148, allocations: 13.76 MB / 490.5 MB, free: 28.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004253/0.4191, allocations: 2.643 MB / 493.2 MB, free: 27.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001781/0.4209, allocations: 0.8305 MB / 494 MB, free: 27.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001982/0.4229, allocations: 1.142 MB / 495.1 MB, free: 27.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004758/0.4234, allocations: 112.1 kB / 495.3 MB, free: 27.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.4255, allocations: 0.8819 MB / 496.1 MB, free: 27.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001609/0.4271, allocations: 1.264 MB / 497.4 MB, free: 26.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008862/0.428, allocations: 0.6738 MB / 498.1 MB, free: 26.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007207/0.4352, allocations: 4.529 MB / 0.4908 GB, free: 25.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.4353, allocations: 0 / 0.4908 GB, free: 25.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.4353, allocations: 0 / 0.4908 GB, free: 25.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000236/0.4355, allocations: 7.938 kB / 0.4908 GB, free: 25.31 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.01166/0.4472, allocations: 3.388 MB / 0.4941 GB, free: 23.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.4473, allocations: 9.281 kB / 0.4941 GB, free: 23.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08799/0.5353, allocations: 8.24 MB / 0.5022 GB, free: 20 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007282/0.5426, allocations: 2.444 MB / 0.5046 GB, free: 18.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.5428, allocations: 173.8 kB / 0.5047 GB, free: 18.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001237/0.5441, allocations: 229.1 kB / 0.505 GB, free: 18.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/0.5572, allocations: 7.85 MB / 0.5126 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.5574, allocations: 43.59 kB / 0.5127 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003563/0.5577, allocations: 111.9 kB / 0.5128 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002469/0.5602, allocations: 1.672 MB / 0.5144 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/0.5721, allocations: 6.649 MB / 0.5209 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04204/0.6141, allocations: 31.31 MB / 0.5515 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004983/0.6192, allocations: 2.284 MB / 0.5537 GB, free: 15.56 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004059/0.6196, allocations: 327.8 kB / 0.554 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.6197, allocations: 47.12 kB / 0.5541 GB, free: 15.14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.338e-06/0.6197, allocations: 0 / 0.5541 GB, free: 15.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.0371/0.6568, allocations: 11.69 MB / 0.5655 GB, free: 3.262 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/0.657, allocations: 196.8 kB / 0.5657 GB, free: 3.027 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006663/0.6637, allocations: 3.85 MB / 0.5694 GB, free: 15.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003659/0.6641, allocations: 49.64 kB / 0.5695 GB, free: 15.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002227/0.6663, allocations: 2.686 MB / 0.5721 GB, free: 12.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009907/0.6673, allocations: 0.5594 MB / 0.5726 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/0.6676, allocations: 104 kB / 0.5727 GB, free: 11.73 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003523/0.6679, allocations: 0.5332 MB / 0.5733 GB, free: 11.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.6706, allocations: 1.677 MB / 0.5749 GB, free: 9.512 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/0.6757, allocations: 5.087 MB / 0.5799 GB, free: 2.691 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004471/0.6802, allocations: 2.885 MB / 0.5827 GB, free: 15.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-05/0.6803, allocations: 39.94 kB / 0.5827 GB, free: 15.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01353/0.6938, allocations: 6.755 MB / 0.5893 GB, free: 9.008 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.694, allocations: 56 kB / 0.5894 GB, free: 8.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001493/0.6942, allocations: 120 kB / 0.5895 GB, free: 8.836 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.6952, allocations: 425 kB / 0.5899 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004512/0.6997, allocations: 1.236 MB / 0.5911 GB, free: 7.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003946/0.7037, allocations: 3.134 MB / 0.5942 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005273/0.709, allocations: 299.3 kB / 0.5945 GB, free: 3.609 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/0.7103, allocations: 336 kB / 0.5948 GB, free: 3.281 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 (665): * Single equations (assignments): 661 * 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.004529/0.7149, allocations: 1.78 MB / 0.5965 GB, free: 1.488 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008449/0.7157, allocations: 315.9 kB / 0.5968 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.7197, allocations: 1.853 MB / 0.5986 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.392e-05/0.7197, allocations: 16.11 kB / 0.5986 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.7198, allocations: 11.89 kB / 0.5986 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.7198, allocations: 3.984 kB / 0.5987 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.734, allocations: 5.622 MB / 0.6041 GB, free: 9.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.7341, allocations: 4 kB / 0.6041 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.7352, allocations: 219.7 kB / 0.6044 GB, free: 9.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007097/0.7359, allocations: 232.6 kB / 0.6046 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.7361, allocations: 20.47 kB / 0.6046 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/0.7391, allocations: 2.577 MB / 0.6071 GB, free: 6.391 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.7391, allocations: 7.938 kB / 0.6071 GB, free: 6.383 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005848/0.745, allocations: 3.989 MB / 0.611 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0018/0.7468, allocations: 0.5438 MB / 0.6115 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004515/0.7473, allocations: 31.94 kB / 0.6116 GB, free: 1.738 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.7485, allocations: 67.92 kB / 0.6116 GB, free: 1.672 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/0.7487, allocations: 76.48 kB / 0.6117 GB, free: 1.598 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-05/0.7488, allocations: 39.98 kB / 0.6118 GB, free: 1.559 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004661/0.7535, allocations: 2.432 MB / 0.6141 GB, free: 15.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7535, allocations: 0 / 0.6141 GB, free: 15.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005857/0.7594, allocations: 0.828 MB / 0.6149 GB, free: 14.31 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 (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.0005749/0.76, allocations: 163 kB / 0.6151 GB, free: 14.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008096/0.7681, allocations: 4.075 MB / 0.6191 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.7681, allocations: 3.938 kB / 0.6191 GB, free: 10.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.77, allocations: 1.138 MB / 0.6202 GB, free: 8.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.7722, allocations: 349.2 kB / 0.6205 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2216/0.9938, allocations: 8.612 MB / 0.6289 GB, free: 144.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00401/0.9978, allocations: 2.832 MB / 0.6317 GB, free: 143.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004387/1.002, allocations: 1.732 MB / 0.6334 GB, free: 143.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005521/1.003, allocations: 217.8 kB / 0.6336 GB, free: 143.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.323e-06/1.003, allocations: 3.469 kB / 0.6336 GB, free: 143.5 MB / 494.1 MB Notification: Performance of Templates: time 0.05473/1.058, allocations: 28.14 MB / 0.6611 GB, free: 138.8 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: