Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008038/0.0008038, allocations: 92 kB / 15.06 MB, free: 1.098 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.0009472/0.0009473, allocations: 172.7 kB / 15.95 MB, free: 208 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.437/1.437, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.3357/0.3357, allocations: 38.04 MB / 308.4 MB, free: 10.42 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.000602/0.0006022, allocations: 20 kB / 376.4 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1285, allocations: 57.53 MB / 434 MB, free: 5.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2473/0.3758, allocations: 37.57 MB / 471.5 MB, free: 32.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01906/0.3949, allocations: 8.486 MB / 480 MB, free: 29.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008556/0.4035, allocations: 166.1 kB / 480.2 MB, free: 29.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005939/0.4095, allocations: 1.927 MB / 482.1 MB, free: 28.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01821/0.4277, allocations: 5.88 MB / 488 MB, free: 25.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002471/0.4302, allocations: 0.505 MB / 488.5 MB, free: 25.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02462/0.4549, allocations: 18.35 MB / 0.495 GB, free: 21.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006908/0.4618, allocations: 3.036 MB / 0.4979 GB, free: 19.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.4648, allocations: 1.085 MB / 0.499 GB, free: 19.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002836/0.4676, allocations: 1.755 MB / 0.5007 GB, free: 19.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005881/0.4682, allocations: 130.4 kB / 0.5008 GB, free: 19.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002691/0.4709, allocations: 0.907 MB / 0.5017 GB, free: 18.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002239/0.4732, allocations: 1.524 MB / 0.5032 GB, free: 17.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009437/0.4742, allocations: 0.7316 MB / 0.5039 GB, free: 17.33 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004846/0.479, allocations: 4.873 MB / 0.5087 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.479, allocations: 0 / 0.5087 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.479, allocations: 3.938 kB / 0.5087 GB, free: 14.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.739e-05/0.4791, allocations: 0 / 0.5087 GB, free: 14.11 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.006338/0.4855, allocations: 3.5 MB / 0.5121 GB, free: 11.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4855, allocations: 9.438 kB / 0.5121 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01327/0.4988, allocations: 2.509 MB / 0.5145 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005654/0.5045, allocations: 2.379 MB / 0.5169 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.5047, allocations: 196.9 kB / 0.5171 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006555/0.5053, allocations: 255.8 kB / 0.5173 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/0.5175, allocations: 8.753 MB / 0.5259 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-05/0.5177, allocations: 43.58 kB / 0.5259 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000331/0.518, allocations: 131.8 kB / 0.526 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002736/0.5208, allocations: 1.825 MB / 0.5278 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.5351, allocations: 7.448 MB / 0.5351 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04774/0.5829, allocations: 34.31 MB / 0.5686 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005141/0.5881, allocations: 2.585 MB / 0.5711 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.5899, allocations: 1.18 MB / 0.5723 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003894/0.5903, allocations: 320 kB / 0.5726 GB, free: 12.51 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.5904, allocations: 55.05 kB / 0.5726 GB, free: 12.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 4.628e-06/0.5904, allocations: 0 / 0.5726 GB, free: 12.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02737/0.6177, allocations: 9.789 MB / 0.5822 GB, free: 2.539 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.6179, allocations: 192.6 kB / 0.5824 GB, free: 2.309 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006116/0.6241, allocations: 3.952 MB / 0.5862 GB, free: 14.37 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000391/0.6245, allocations: 41.7 kB / 0.5863 GB, free: 14.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/0.6269, allocations: 2.948 MB / 0.5891 GB, free: 11.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006705/0.6276, allocations: 0.5442 MB / 0.5897 GB, free: 10.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.6278, allocations: 116 kB / 0.5898 GB, free: 10.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003704/0.6282, allocations: 0.554 MB / 0.5903 GB, free: 10.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002791/0.631, allocations: 1.784 MB / 0.5921 GB, free: 8.32 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005539/0.6365, allocations: 5.613 MB / 0.5975 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004572/0.6411, allocations: 3.088 MB / 0.6006 GB, free: 13.69 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-05/0.6412, allocations: 40 kB / 0.6006 GB, free: 13.65 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01315/0.6544, allocations: 7.535 MB / 0.608 GB, free: 6.109 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.494e-05/0.6545, allocations: 67.12 kB / 0.608 GB, free: 6.047 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001433/0.6546, allocations: 140 kB / 0.6082 GB, free: 5.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001676/0.6563, allocations: 0.6883 MB / 0.6088 GB, free: 5.219 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003881/0.6602, allocations: 1.361 MB / 0.6102 GB, free: 3.855 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00438/0.6646, allocations: 3.797 MB / 0.6139 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/0.6687, allocations: 315.4 kB / 0.6142 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006083/0.6693, allocations: 376 kB / 0.6145 GB, free: 15.25 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (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.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 (735): * Single equations (assignments): 731 * 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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003545/0.6729, allocations: 1.943 MB / 0.6164 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007276/0.6736, allocations: 323.8 kB / 0.6167 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003738/0.6774, allocations: 2.057 MB / 0.6187 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/0.6774, allocations: 20.09 kB / 0.6188 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.6774, allocations: 11.89 kB / 0.6188 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.6774, allocations: 16.28 kB / 0.6188 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009839/0.6873, allocations: 5.795 MB / 0.6244 GB, free: 4.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.6874, allocations: 4 kB / 0.6244 GB, free: 4.977 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000943/0.6883, allocations: 187.7 kB / 0.6246 GB, free: 4.793 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/0.6897, allocations: 492.3 kB / 0.6251 GB, free: 4.309 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.6898, allocations: 24 kB / 0.6251 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003737/0.6935, allocations: 3.213 MB / 0.6283 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.6935, allocations: 4 kB / 0.6283 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2571/0.9507, allocations: 3.98 MB / 0.6321 GB, free: 140.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/0.9524, allocations: 0.5454 MB / 0.6327 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/0.9527, allocations: 18.06 kB / 0.6327 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.9539, allocations: 70.11 kB / 0.6328 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.9541, allocations: 76.55 kB / 0.6328 GB, free: 140.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.904e-05/0.9542, allocations: 38.97 kB / 0.6329 GB, free: 140.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003923/0.9581, allocations: 2.452 MB / 0.6353 GB, free: 140.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.9581, allocations: 1.312 kB / 0.6353 GB, free: 140.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005428/0.9636, allocations: 0.8737 MB / 0.6361 GB, free: 140.2 MB / 494.1 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.0004067/0.964, allocations: 149.8 kB / 0.6363 GB, free: 140.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006488/0.9705, allocations: 4.274 MB / 0.6404 GB, free: 139.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.9705, allocations: 6.188 kB / 0.6404 GB, free: 139.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.9718, allocations: 1.068 MB / 0.6415 GB, free: 139 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.9743, allocations: 363.7 kB / 0.6418 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/0.9889, allocations: 9.32 MB / 0.6509 GB, free: 134.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003183/0.9921, allocations: 2.959 MB / 0.6538 GB, free: 133 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004161/0.9963, allocations: 1.82 MB / 0.6556 GB, free: 132.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005506/0.9969, allocations: 228.3 kB / 0.6558 GB, free: 132.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.442e-06/0.9969, allocations: 4 kB / 0.6558 GB, free: 132.8 MB / 494.1 MB Notification: Performance of Templates: time 0.06546/1.062, allocations: 28.79 MB / 0.6839 GB, free: 127.2 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) Environment - environmentSimulation: