Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.2_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.006056/0.006056, allocations: 101.2 kB / 15.73 MB, free: 6.039 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.001124/0.001124, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.409/1.409, allocations: 205.1 MB / 222.5 MB, free: 4.391 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3672/0.3672, allocations: 39.95 MB / 309.8 MB, free: 9.656 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.2. 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.001509/0.001509, allocations: 67.91 kB / 435.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3344, allocations: 56.87 MB / 492.6 MB, free: 19.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01094/0.3454, allocations: 10.02 MB / 0.4909 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.3566, allocations: 3.694 MB / 0.4945 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003613/0.3603, allocations: 51.88 kB / 0.4945 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00503/0.3655, allocations: 1.965 MB / 0.4965 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007949/0.3735, allocations: 1.743 MB / 0.4982 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002031/0.3755, allocations: 0.559 MB / 0.4987 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006836/0.3824, allocations: 3.74 MB / 0.5024 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004178/0.3866, allocations: 2.551 MB / 0.5049 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003762/0.3904, allocations: 1.269 MB / 0.5061 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003311/0.3937, allocations: 1.833 MB / 0.5079 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001029/0.3948, allocations: 274.4 kB / 0.5081 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002957/0.3978, allocations: 1.145 MB / 0.5093 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002362/0.4002, allocations: 1.69 MB / 0.5109 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003834/0.404, allocations: 1.93 MB / 0.5128 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009832/0.4138, allocations: 6.414 MB / 0.5191 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.4139, allocations: 0 / 0.5191 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4139, allocations: 4 kB / 0.5191 GB, free: 9.504 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002233/0.4141, allocations: 0 / 0.5191 GB, free: 9.504 MB / 398.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.01118/0.4253, allocations: 4.207 MB / 0.5232 GB, free: 5.23 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/0.4254, allocations: 15.89 kB / 0.5232 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.4423, allocations: 2.441 MB / 0.5256 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006965/0.4493, allocations: 2.448 MB / 0.528 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.4495, allocations: 197.3 kB / 0.5281 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00102/0.4506, allocations: 264 kB / 0.5284 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01455/0.4651, allocations: 8.756 MB / 0.537 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/0.4653, allocations: 43.67 kB / 0.537 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003913/0.4657, allocations: 123.9 kB / 0.5371 GB, free: 6.242 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/0.4688, allocations: 1.84 MB / 0.5389 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.4847, allocations: 7.46 MB / 0.5462 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04929/0.534, allocations: 34.13 MB / 0.5795 GB, free: 9.762 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00559/0.5397, allocations: 2.585 MB / 0.582 GB, free: 7.031 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001677/0.5414, allocations: 1.201 MB / 0.5832 GB, free: 5.816 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004047/0.5418, allocations: 327.8 kB / 0.5835 GB, free: 5.438 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.5419, allocations: 47.06 kB / 0.5836 GB, free: 5.383 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 5.02e-06/0.5419, allocations: 0 / 0.5836 GB, free: 5.383 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.03068/0.5726, allocations: 9.817 MB / 0.5932 GB, free: 11.45 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.5728, allocations: 192.6 kB / 0.5933 GB, free: 11.22 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008251/0.581, allocations: 3.96 MB / 0.5972 GB, free: 7.273 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004244/0.5815, allocations: 49.7 kB / 0.5973 GB, free: 7.219 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003304/0.5848, allocations: 2.948 MB / 0.6001 GB, free: 4.23 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009696/0.5858, allocations: 0.5481 MB / 0.6007 GB, free: 3.676 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/0.5885, allocations: 1.198 MB / 0.6018 GB, free: 2.465 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.5886, allocations: 301.1 kB / 0.6021 GB, free: 2.168 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003142/0.5918, allocations: 1.811 MB / 0.6039 GB, free: 360 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006306/0.5981, allocations: 5.632 MB / 0.6094 GB, free: 8.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009829/0.608, allocations: 8.04 MB / 0.6173 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/0.6082, allocations: 40 kB / 0.6173 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01473/0.6229, allocations: 7.603 MB / 0.6247 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.6231, allocations: 60 kB / 0.6248 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002413/0.6233, allocations: 136 kB / 0.6249 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/0.6251, allocations: 0.6643 MB / 0.6256 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004562/0.6297, allocations: 1.357 MB / 0.6269 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00545/0.6351, allocations: 4.094 MB / 0.6309 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007166/0.6423, allocations: 319.4 kB / 0.6312 GB, free: 444 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001602/0.644, allocations: 376 kB / 0.6315 GB, free: 68 kB / 0.4981 GB 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 (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.3043/0.9483, allocations: 1.938 MB / 0.6334 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008915/0.9492, allocations: 321.6 kB / 0.6337 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00555/0.9547, allocations: 2.072 MB / 0.6358 GB, free: 120.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.135e-05/0.9548, allocations: 15.5 kB / 0.6358 GB, free: 120.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/0.9548, allocations: 3.766 kB / 0.6358 GB, free: 120.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/0.9549, allocations: 6.203 kB / 0.6358 GB, free: 120.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01419/0.9691, allocations: 5.794 MB / 0.6414 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.879e-05/0.9691, allocations: 4.5 kB / 0.6414 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009911/0.9701, allocations: 187.6 kB / 0.6416 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00155/0.9717, allocations: 490.6 kB / 0.6421 GB, free: 118.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.9718, allocations: 26.31 kB / 0.6421 GB, free: 118.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003744/0.9756, allocations: 3.438 MB / 0.6455 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.9756, allocations: 3.344 kB / 0.6455 GB, free: 116.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/0.982, allocations: 3.991 MB / 0.6494 GB, free: 114.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/0.9838, allocations: 0.545 MB / 0.6499 GB, free: 114.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000423/0.9842, allocations: 22.91 kB / 0.6499 GB, free: 114.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.9854, allocations: 66.58 kB / 0.65 GB, free: 114.4 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.9856, allocations: 74.53 kB / 0.6501 GB, free: 114.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.9857, allocations: 37.28 kB / 0.6501 GB, free: 114.4 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00503/0.9908, allocations: 2.473 MB / 0.6525 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.91e-07/0.9908, allocations: 1.125 kB / 0.6525 GB, free: 113.6 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006117/0.9969, allocations: 0.8783 MB / 0.6534 GB, free: 113.4 MB / 0.4981 GB 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 (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.0004649/0.9974, allocations: 158.8 kB / 0.6535 GB, free: 113.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00724/1.005, allocations: 4.316 MB / 0.6577 GB, free: 111.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.954e-06/1.005, allocations: 0 / 0.6577 GB, free: 111.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0015/1.006, allocations: 1.077 MB / 0.6588 GB, free: 111.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002546/1.009, allocations: 375 kB / 0.6592 GB, free: 111.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/1.022, allocations: 7.836 MB / 0.6668 GB, free: 107.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00247/1.025, allocations: 2.965 MB / 0.6697 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003677/1.028, allocations: 1.819 MB / 0.6715 GB, free: 105.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005769/1.029, allocations: 227.6 kB / 0.6717 GB, free: 105.7 MB / 0.4981 GB Notification: Performance of SimCode: time 8.42e-07/1.029, allocations: 3.25 kB / 0.6717 GB, free: 105.7 MB / 0.4981 GB Notification: Performance of Templates: time 0.04537/1.074, allocations: 27.57 MB / 0.6986 GB, free: 80.49 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)