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.004891/0.004891, allocations: 101.1 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: 190.4 kB / 16.67 MB, free: 5.977 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.452/1.452, allocations: 205.1 MB / 222.5 MB, free: 4.371 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.2935/0.2935, allocations: 37.99 MB / 307.9 MB, free: 10.38 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.001446/0.001446, allocations: 67.91 kB / 433 MB, free: 5.426 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3142, allocations: 56.47 MB / 489.5 MB, free: 19.85 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009538/0.3238, allocations: 9.413 MB / 498.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008872/0.3327, allocations: 3.611 MB / 0.4907 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001903/0.3347, allocations: 49.53 kB / 0.4908 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003201/0.3379, allocations: 1.688 MB / 0.4924 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004814/0.3428, allocations: 1.672 MB / 0.494 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.3441, allocations: 0.5616 MB / 0.4946 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005189/0.3493, allocations: 3.521 MB / 0.498 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.3519, allocations: 2.258 MB / 0.5002 GB, free: 6.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/0.354, allocations: 1.168 MB / 0.5014 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.3559, allocations: 1.63 MB / 0.503 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004866/0.3565, allocations: 237.5 kB / 0.5032 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.3583, allocations: 1.117 MB / 0.5043 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.3595, allocations: 1.519 MB / 0.5058 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.3611, allocations: 1.733 MB / 0.5075 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008205/0.3693, allocations: 5.767 MB / 0.5131 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3693, allocations: 3.938 kB / 0.5131 GB, free: 14.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3693, allocations: 0 / 0.5131 GB, free: 14.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001946/0.3695, allocations: 0 / 0.5131 GB, free: 14.05 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01121/0.3808, allocations: 3.855 MB / 0.5169 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.3808, allocations: 13.23 kB / 0.5169 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01454/0.3954, allocations: 2.38 MB / 0.5192 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006248/0.4017, allocations: 2.319 MB / 0.5215 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.4018, allocations: 168.7 kB / 0.5216 GB, free: 6.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008797/0.4027, allocations: 232 kB / 0.5218 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/0.4172, allocations: 7.902 MB / 0.5296 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001079/0.4174, allocations: 35.75 kB / 0.5296 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003687/0.4177, allocations: 111.9 kB / 0.5297 GB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002758/0.4205, allocations: 1.668 MB / 0.5313 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.4336, allocations: 6.754 MB / 0.5379 GB, free: 5.281 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.4756, allocations: 31.4 MB / 0.5686 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004835/0.4805, allocations: 2.339 MB / 0.5709 GB, free: 2.441 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.4822, allocations: 1.18 MB / 0.572 GB, free: 1.25 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004009/0.4826, allocations: 327.8 kB / 0.5723 GB, free: 0.875 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.4827, allocations: 47.06 kB / 0.5724 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of pre-optimization done (n=117): time 3.596e-06/0.4827, allocations: 0 / 0.5724 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of matching and sorting (n=141): time 0.03835/0.521, allocations: 12.3 MB / 0.5844 GB, free: 4.371 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.5212, allocations: 192.6 kB / 0.5846 GB, free: 4.141 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006727/0.5279, allocations: 3.738 MB / 0.5882 GB, free: 416 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002281/0.5282, allocations: 45.7 kB / 0.5883 GB, free: 364 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.5302, allocations: 2.67 MB / 0.5909 GB, free: 13.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006883/0.5309, allocations: 0.5556 MB / 0.5914 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001909/0.5329, allocations: 1.126 MB / 0.5925 GB, free: 11.95 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.533, allocations: 301.1 kB / 0.5928 GB, free: 11.65 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.5359, allocations: 1.81 MB / 0.5946 GB, free: 9.836 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005128/0.541, allocations: 5.248 MB / 0.5997 GB, free: 2.855 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008606/0.5496, allocations: 7.62 MB / 0.6071 GB, free: 9.523 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001028/0.5498, allocations: 36 kB / 0.6072 GB, free: 9.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01167/0.5614, allocations: 7.287 MB / 0.6143 GB, free: 2.191 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.509e-05/0.5615, allocations: 63.58 kB / 0.6144 GB, free: 2.133 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/0.5617, allocations: 124 kB / 0.6145 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.5634, allocations: 0.6493 MB / 0.6151 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003924/0.5673, allocations: 1.271 MB / 0.6163 GB, free: 88 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00511/0.5725, allocations: 4.055 MB / 0.6203 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004301/0.5768, allocations: 307.5 kB / 0.6206 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008618/0.5777, allocations: 344 kB / 0.6209 GB, free: 11.25 MB / 0.4981 GB 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.004417/0.5821, allocations: 1.778 MB / 0.6227 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009023/0.583, allocations: 315.9 kB / 0.623 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004699/0.5877, allocations: 2.219 MB / 0.6251 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/0.5878, allocations: 16 kB / 0.6251 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.5878, allocations: 7.938 kB / 0.6252 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.861e-05/0.5878, allocations: 7.984 kB / 0.6252 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/0.6025, allocations: 5.926 MB / 0.6309 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.6026, allocations: 4 kB / 0.631 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.6037, allocations: 215.7 kB / 0.6312 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.605, allocations: 484.3 kB / 0.6316 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.6052, allocations: 27.98 kB / 0.6316 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2642/0.8694, allocations: 3.43 MB / 0.635 GB, free: 125 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.8694, allocations: 2.688 kB / 0.635 GB, free: 125 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007444/0.8769, allocations: 4.354 MB / 0.6392 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/0.8785, allocations: 0.5458 MB / 0.6398 GB, free: 123.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000383/0.8789, allocations: 27.28 kB / 0.6398 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.8802, allocations: 79.36 kB / 0.6399 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.8804, allocations: 77.61 kB / 0.64 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.8806, allocations: 34.52 kB / 0.64 GB, free: 123.1 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004118/0.8847, allocations: 2.34 MB / 0.6423 GB, free: 122.3 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.1e-07/0.8847, allocations: 1.094 kB / 0.6423 GB, free: 122.3 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004799/0.8895, allocations: 0.8361 MB / 0.6431 GB, free: 122.2 MB / 0.4981 GB 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.0003997/0.8899, allocations: 160.7 kB / 0.6432 GB, free: 122.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007889/0.8978, allocations: 4.309 MB / 0.6475 GB, free: 120.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.8978, allocations: 1.406 kB / 0.6475 GB, free: 120.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001979/0.8998, allocations: 1.185 MB / 0.6486 GB, free: 120.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.9025, allocations: 357.2 kB / 0.649 GB, free: 120 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/0.9163, allocations: 7.452 MB / 0.6562 GB, free: 116.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00291/0.9192, allocations: 2.759 MB / 0.6589 GB, free: 115.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004283/0.9235, allocations: 1.754 MB / 0.6606 GB, free: 115.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006174/0.9241, allocations: 213.8 kB / 0.6608 GB, free: 115.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/0.9242, allocations: 4 kB / 0.6608 GB, free: 115.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.04678/0.9709, allocations: 26.98 MB / 0.6872 GB, free: 97.41 MB / 0.4981 GB 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)