Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_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.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.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.008054/0.008054, allocations: 101 kB / 15.73 MB, free: 6.043 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.001359/0.001359, allocations: 188.3 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.53/1.53, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.3104/0.3104, allocations: 39.95 MB / 309.8 MB, free: 9.457 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.001439/0.001439, allocations: 79.88 kB / 435.8 MB, free: 2.453 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.308, allocations: 56.87 MB / 492.6 MB, free: 19.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01165/0.3197, allocations: 9.43 MB / 0.4903 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009515/0.3292, allocations: 3.596 MB / 0.4938 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002588/0.3319, allocations: 53.06 kB / 0.4939 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004892/0.3368, allocations: 1.691 MB / 0.4955 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005561/0.3424, allocations: 1.643 MB / 0.4971 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001646/0.3441, allocations: 0.5598 MB / 0.4977 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005695/0.3498, allocations: 3.516 MB / 0.5011 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003286/0.3531, allocations: 2.259 MB / 0.5033 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.3554, allocations: 1.151 MB / 0.5044 GB, free: 4.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002311/0.3577, allocations: 1.637 MB / 0.506 GB, free: 3.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005593/0.3583, allocations: 245.6 kB / 0.5063 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002/0.3603, allocations: 1.109 MB / 0.5074 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.3615, allocations: 1.509 MB / 0.5088 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.3631, allocations: 1.73 MB / 0.5105 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00744/0.3706, allocations: 5.769 MB / 0.5162 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3706, allocations: 0 / 0.5162 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3706, allocations: 0 / 0.5162 GB, free: 12.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001705/0.3708, allocations: 0 / 0.5162 GB, free: 12.38 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.008892/0.3797, allocations: 3.861 MB / 0.5199 GB, free: 8.453 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3798, allocations: 15.89 kB / 0.5199 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01636/0.3961, allocations: 2.367 MB / 0.5222 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006069/0.4023, allocations: 2.326 MB / 0.5245 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.4024, allocations: 168.7 kB / 0.5247 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006745/0.4031, allocations: 243.9 kB / 0.5249 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.4165, allocations: 7.891 MB / 0.5326 GB, free: 10.75 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.4166, allocations: 39.59 kB / 0.5327 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.417, allocations: 115.9 kB / 0.5328 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/0.4199, allocations: 1.672 MB / 0.5344 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01319/0.4331, allocations: 6.746 MB / 0.541 GB, free: 2.168 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04448/0.4776, allocations: 31.39 MB / 0.5716 GB, free: 1.816 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004894/0.4825, allocations: 2.347 MB / 0.5739 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.4841, allocations: 1.188 MB / 0.5751 GB, free: 14.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003823/0.4845, allocations: 315.9 kB / 0.5754 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.4846, allocations: 51.06 kB / 0.5754 GB, free: 13.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 3.437e-06/0.4846, allocations: 0 / 0.5754 GB, free: 13.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03893/0.5235, allocations: 12.3 MB / 0.5875 GB, free: 1.258 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/0.5237, allocations: 196.6 kB / 0.5876 GB, free: 1.023 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006115/0.5298, allocations: 3.742 MB / 0.5913 GB, free: 13.29 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004568/0.5303, allocations: 45.7 kB / 0.5913 GB, free: 13.23 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002477/0.5328, allocations: 2.666 MB / 0.5939 GB, free: 10.53 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008755/0.5337, allocations: 0.5594 MB / 0.5945 GB, free: 9.965 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001597/0.5353, allocations: 1.118 MB / 0.5956 GB, free: 8.836 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.5354, allocations: 301.3 kB / 0.5959 GB, free: 8.539 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002971/0.5384, allocations: 1.81 MB / 0.5976 GB, free: 6.723 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005509/0.5439, allocations: 5.252 MB / 0.6028 GB, free: 15.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01014/0.5541, allocations: 7.612 MB / 0.6102 GB, free: 6.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/0.5543, allocations: 35.98 kB / 0.6102 GB, free: 6.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01609/0.5704, allocations: 7.292 MB / 0.6174 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.33e-05/0.5705, allocations: 60 kB / 0.6174 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001679/0.5707, allocations: 124 kB / 0.6175 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/0.5725, allocations: 0.6526 MB / 0.6182 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004612/0.5771, allocations: 1.267 MB / 0.6194 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005223/0.5824, allocations: 4.063 MB / 0.6234 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004902/0.5873, allocations: 299.4 kB / 0.6237 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/0.5886, allocations: 343.9 kB / 0.624 GB, free: 8.137 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.004154/0.5928, allocations: 1.778 MB / 0.6257 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008647/0.5936, allocations: 311.9 kB / 0.626 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004697/0.5983, allocations: 2.219 MB / 0.6282 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.064e-05/0.5984, allocations: 16 kB / 0.6282 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.5984, allocations: 11.92 kB / 0.6282 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.5985, allocations: 3.984 kB / 0.6282 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3893/0.9878, allocations: 5.94 MB / 0.634 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/0.9878, allocations: 4.812 kB / 0.634 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.9891, allocations: 215.5 kB / 0.6342 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.9907, allocations: 483.6 kB / 0.6347 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001795/0.9909, allocations: 26.67 kB / 0.6347 GB, free: 123.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004267/0.9952, allocations: 3.426 MB / 0.6381 GB, free: 121.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.9952, allocations: 5.531 kB / 0.6381 GB, free: 121.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007796/1.003, allocations: 4.36 MB / 0.6423 GB, free: 119.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/1.005, allocations: 0.5465 MB / 0.6429 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000617/1.006, allocations: 18 kB / 0.6429 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/1.007, allocations: 87.2 kB / 0.643 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/1.007, allocations: 78.14 kB / 0.643 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/1.007, allocations: 39.39 kB / 0.6431 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005553/1.013, allocations: 2.336 MB / 0.6454 GB, free: 118.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.81e-07/1.013, allocations: 0 / 0.6454 GB, free: 118.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006883/1.02, allocations: 0.8348 MB / 0.6462 GB, free: 118.8 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.0006236/1.021, allocations: 156.5 kB / 0.6463 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008399/1.029, allocations: 4.307 MB / 0.6505 GB, free: 117.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.029, allocations: 5.094 kB / 0.6505 GB, free: 117.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001863/1.031, allocations: 1.188 MB / 0.6517 GB, free: 116.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002844/1.034, allocations: 354.4 kB / 0.652 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/1.049, allocations: 7.451 MB / 0.6593 GB, free: 113.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003928/1.053, allocations: 2.758 MB / 0.662 GB, free: 112.3 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00368/1.057, allocations: 1.753 MB / 0.6637 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006646/1.058, allocations: 211.5 kB / 0.6639 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of SimCode: time 8.21e-07/1.058, allocations: 3.719 kB / 0.6639 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of Templates: time 0.04649/1.104, allocations: 26.98 MB / 0.6903 GB, free: 90.48 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)