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.001999/0.002, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002948/0.002947, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.749/1.749, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.3218/0.3218, allocations: 39.94 MB / 309.7 MB, free: 9.297 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.001696/0.001697, allocations: 66.41 kB / 377.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1276, allocations: 56.87 MB / 434.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01291/0.1405, allocations: 9.427 MB / 443.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00911/0.1497, allocations: 3.598 MB / 447.5 MB, free: 6.605 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.1519, allocations: 51.88 kB / 447.6 MB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.1558, allocations: 1.693 MB / 449.3 MB, free: 4.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005477/0.1613, allocations: 1.634 MB / 450.9 MB, free: 3.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1631, allocations: 0.5574 MB / 451.4 MB, free: 2.656 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.235/0.398, allocations: 3.516 MB / 455 MB, free: 36.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003385/0.4015, allocations: 2.26 MB / 457.2 MB, free: 36.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.4038, allocations: 1.151 MB / 458.4 MB, free: 36.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.4061, allocations: 1.64 MB / 460 MB, free: 36.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000938/0.4071, allocations: 235.1 kB / 460.2 MB, free: 36.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003116/0.4102, allocations: 1.115 MB / 461.4 MB, free: 36.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.4123, allocations: 1.508 MB / 462.9 MB, free: 36.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002148/0.4144, allocations: 1.736 MB / 464.6 MB, free: 35.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005647/0.4201, allocations: 5.56 MB / 470.2 MB, free: 34.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4201, allocations: 0 / 470.2 MB, free: 34.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4201, allocations: 4 kB / 470.2 MB, free: 34.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.4202, allocations: 0 / 470.2 MB, free: 34.3 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.007558/0.4278, allocations: 3.854 MB / 474 MB, free: 32.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4279, allocations: 12.61 kB / 474 MB, free: 32.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/0.4439, allocations: 2.38 MB / 476.4 MB, free: 31.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006146/0.4501, allocations: 2.292 MB / 478.7 MB, free: 30.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/0.4504, allocations: 169.1 kB / 478.9 MB, free: 30.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001202/0.4516, allocations: 230.7 kB / 479.1 MB, free: 30.72 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01523/0.4668, allocations: 7.891 MB / 487 MB, free: 26.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/0.467, allocations: 36 kB / 487 MB, free: 26.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003826/0.4674, allocations: 113.7 kB / 487.1 MB, free: 26.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003115/0.4705, allocations: 1.672 MB / 488.8 MB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/0.4851, allocations: 6.749 MB / 495.6 MB, free: 24.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.5232, allocations: 31.54 MB / 0.5147 GB, free: 17.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004795/0.5281, allocations: 2.343 MB / 0.517 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.5298, allocations: 1.183 MB / 0.5182 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004044/0.5302, allocations: 327 kB / 0.5185 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.135e-05/0.5303, allocations: 50.88 kB / 0.5185 GB, free: 14.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=117): time 3.506e-06/0.5303, allocations: 0 / 0.5185 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=141): time 0.04254/0.5729, allocations: 12.29 MB / 0.5306 GB, free: 2.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.573, allocations: 194.9 kB / 0.5307 GB, free: 2.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006424/0.5795, allocations: 3.738 MB / 0.5344 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002976/0.5798, allocations: 45.7 kB / 0.5344 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.5818, allocations: 2.674 MB / 0.537 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007785/0.5826, allocations: 0.5579 MB / 0.5376 GB, free: 11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/0.5842, allocations: 1.118 MB / 0.5387 GB, free: 9.871 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5843, allocations: 309.1 kB / 0.539 GB, free: 9.566 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002711/0.5871, allocations: 1.795 MB / 0.5407 GB, free: 7.766 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005189/0.5923, allocations: 5.26 MB / 0.5459 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/0.6026, allocations: 7.615 MB / 0.5533 GB, free: 7.898 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001453/0.6028, allocations: 39.75 kB / 0.5533 GB, free: 7.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01763/0.6204, allocations: 7.295 MB / 0.5605 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.6206, allocations: 56.22 kB / 0.5605 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002269/0.6208, allocations: 124 kB / 0.5606 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001854/0.6227, allocations: 0.6525 MB / 0.5613 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/0.6274, allocations: 1.271 MB / 0.5625 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005632/0.6331, allocations: 4.06 MB / 0.5665 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005087/0.6382, allocations: 307.4 kB / 0.5668 GB, free: 9.953 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/0.6393, allocations: 344 kB / 0.5671 GB, free: 9.617 MB / 446.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 (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.00435/0.6437, allocations: 1.778 MB / 0.5688 GB, free: 7.824 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009039/0.6446, allocations: 311.9 kB / 0.5691 GB, free: 7.516 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004923/0.6496, allocations: 2.219 MB / 0.5713 GB, free: 5.285 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.783e-05/0.6496, allocations: 20.11 kB / 0.5713 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.6496, allocations: 7.938 kB / 0.5713 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.493e-05/0.6497, allocations: 15.91 kB / 0.5713 GB, free: 5.242 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.664, allocations: 5.971 MB / 0.5772 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.596e-05/0.6641, allocations: 0 / 0.5772 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.6652, allocations: 219.7 kB / 0.5774 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.6667, allocations: 484.3 kB / 0.5778 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.6669, allocations: 27.98 kB / 0.5779 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004347/0.6713, allocations: 3.429 MB / 0.5812 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.6713, allocations: 10.14 kB / 0.5812 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007171/0.6785, allocations: 4.339 MB / 0.5855 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/0.6806, allocations: 0.5515 MB / 0.586 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001133/0.6817, allocations: 31.12 kB / 0.586 GB, free: 5.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/0.6837, allocations: 79.89 kB / 0.5861 GB, free: 5.871 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.6839, allocations: 76.48 kB / 0.5862 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.6841, allocations: 36 kB / 0.5862 GB, free: 5.762 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005796/0.6899, allocations: 2.337 MB / 0.5885 GB, free: 3.438 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6899, allocations: 0 / 0.5885 GB, free: 3.438 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005873/0.6958, allocations: 0.8398 MB / 0.5893 GB, free: 2.598 MB / 462.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 (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.0006202/0.6964, allocations: 158 kB / 0.5895 GB, free: 2.438 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009824/0.7062, allocations: 4.739 MB / 0.5941 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.7063, allocations: 11.94 kB / 0.5941 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.7083, allocations: 1.188 MB / 0.5953 GB, free: 12.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003602/0.712, allocations: 364.6 kB / 0.5956 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/0.7291, allocations: 7.536 MB / 0.603 GB, free: 4.586 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004493/0.7336, allocations: 2.761 MB / 0.6057 GB, free: 1.801 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005146/0.7388, allocations: 1.719 MB / 0.6074 GB, free: 80 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009562/0.7398, allocations: 219.4 kB / 0.6076 GB, free: 15.86 MB / 494.1 MB Notification: Performance of SimCode: time 1.463e-06/0.7398, allocations: 0 / 0.6076 GB, free: 15.86 MB / 494.1 MB Notification: Performance of Templates: time 0.3171/1.057, allocations: 30.46 MB / 0.6373 GB, free: 138.4 MB / 494.1 MB 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)