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.005998/0.005998, allocations: 99.92 kB / 15.73 MB, free: 6.047 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.001216/0.001216, allocations: 186.8 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.43/1.43, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.3402/0.3402, allocations: 38 MB / 307.9 MB, free: 10.09 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.001622/0.001622, allocations: 67.84 kB / 433 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.293, allocations: 56.46 MB / 489.4 MB, free: 20 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009837/0.3029, allocations: 10.02 MB / 499.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007806/0.3108, allocations: 3.702 MB / 0.4914 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002179/0.313, allocations: 52.91 kB / 0.4914 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004002/0.317, allocations: 1.957 MB / 0.4933 GB, free: 9.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005694/0.3228, allocations: 1.74 MB / 0.495 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.3243, allocations: 0.5684 MB / 0.4956 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.3303, allocations: 3.747 MB / 0.4993 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.3331, allocations: 2.542 MB / 0.5017 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001926/0.3351, allocations: 1.281 MB / 0.503 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.3371, allocations: 1.832 MB / 0.5048 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005151/0.3376, allocations: 274.3 kB / 0.505 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.3395, allocations: 1.144 MB / 0.5062 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.3409, allocations: 1.705 MB / 0.5078 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001693/0.3426, allocations: 1.926 MB / 0.5097 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008037/0.3506, allocations: 6.413 MB / 0.516 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.3507, allocations: 0 / 0.516 GB, free: 12.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3507, allocations: 0 / 0.516 GB, free: 12.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002155/0.3509, allocations: 0 / 0.516 GB, free: 12.18 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.0102/0.3611, allocations: 4.201 MB / 0.5201 GB, free: 8.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3612, allocations: 11.89 kB / 0.5201 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01782/0.379, allocations: 2.445 MB / 0.5225 GB, free: 5.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007371/0.3864, allocations: 2.451 MB / 0.5249 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.3866, allocations: 197.3 kB / 0.525 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000957/0.3876, allocations: 263.9 kB / 0.5253 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01403/0.4016, allocations: 8.756 MB / 0.5338 GB, free: 9.445 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.704e-05/0.4017, allocations: 39.66 kB / 0.5339 GB, free: 9.406 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003827/0.4021, allocations: 127.9 kB / 0.534 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002943/0.4051, allocations: 1.833 MB / 0.5358 GB, free: 7.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.4195, allocations: 7.476 MB / 0.5431 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04633/0.4659, allocations: 34.13 MB / 0.5764 GB, free: 12.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005012/0.4709, allocations: 2.592 MB / 0.579 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001578/0.4725, allocations: 1.188 MB / 0.5801 GB, free: 8.859 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000403/0.473, allocations: 327.8 kB / 0.5804 GB, free: 8.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.473, allocations: 51.06 kB / 0.5805 GB, free: 8.422 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 2.925e-06/0.473, allocations: 0 / 0.5805 GB, free: 8.422 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02465/0.4977, allocations: 9.812 MB / 0.5901 GB, free: 14.49 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.4979, allocations: 192.6 kB / 0.5902 GB, free: 14.26 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006268/0.5041, allocations: 3.968 MB / 0.5941 GB, free: 10.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003088/0.5045, allocations: 41.7 kB / 0.5942 GB, free: 10.26 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002174/0.5067, allocations: 2.952 MB / 0.597 GB, free: 7.266 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000753/0.5074, allocations: 0.5404 MB / 0.5976 GB, free: 6.719 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001614/0.509, allocations: 1.209 MB / 0.5988 GB, free: 5.496 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5092, allocations: 301.1 kB / 0.599 GB, free: 5.199 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002712/0.5119, allocations: 1.803 MB / 0.6008 GB, free: 3.391 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005402/0.5173, allocations: 5.628 MB / 0.6063 GB, free: 11.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009497/0.5268, allocations: 8.048 MB / 0.6142 GB, free: 1.891 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/0.527, allocations: 44 kB / 0.6142 GB, free: 1.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0136/0.5406, allocations: 7.586 MB / 0.6216 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.189e-05/0.5407, allocations: 64.22 kB / 0.6217 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001277/0.5408, allocations: 140 kB / 0.6218 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/0.5424, allocations: 0.668 MB / 0.6225 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003966/0.5464, allocations: 1.353 MB / 0.6238 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.551, allocations: 4.086 MB / 0.6278 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.5553, allocations: 327.4 kB / 0.6281 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006197/0.5559, allocations: 372 kB / 0.6284 GB, free: 3.109 MB / 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.002908/0.5589, allocations: 1.935 MB / 0.6303 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005164/0.5594, allocations: 323.9 kB / 0.6306 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3071/0.8665, allocations: 2.075 MB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.32e-05/0.8666, allocations: 16.25 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/0.8667, allocations: 3.672 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-05/0.8667, allocations: 7.781 kB / 0.6327 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/0.8823, allocations: 5.78 MB / 0.6383 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.8824, allocations: 3.812 kB / 0.6383 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009794/0.8834, allocations: 187.1 kB / 0.6385 GB, free: 123.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.8849, allocations: 491.9 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.885, allocations: 21.92 kB / 0.639 GB, free: 123.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004131/0.8892, allocations: 3.445 MB / 0.6424 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.8892, allocations: 2.562 kB / 0.6424 GB, free: 121.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006883/0.8961, allocations: 4.004 MB / 0.6463 GB, free: 119.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002087/0.8982, allocations: 0.5384 MB / 0.6468 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004436/0.8986, allocations: 20.25 kB / 0.6468 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.8998, allocations: 63.17 kB / 0.6469 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.9001, allocations: 81.06 kB / 0.647 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.9002, allocations: 34.2 kB / 0.647 GB, free: 119.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004998/0.9052, allocations: 2.472 MB / 0.6494 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9052, allocations: 0 / 0.6494 GB, free: 118.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006651/0.9119, allocations: 0.8876 MB / 0.6503 GB, free: 118.6 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.0005394/0.9125, allocations: 152.1 kB / 0.6504 GB, free: 118.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009194/0.9217, allocations: 4.311 MB / 0.6546 GB, free: 117 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/0.9217, allocations: 1.125 kB / 0.6546 GB, free: 117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002019/0.9238, allocations: 1.079 MB / 0.6557 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004025/0.9278, allocations: 376 kB / 0.656 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02032/0.9481, allocations: 7.84 MB / 0.6637 GB, free: 113 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003146/0.9513, allocations: 2.955 MB / 0.6666 GB, free: 111.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003827/0.9552, allocations: 1.829 MB / 0.6684 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005756/0.9558, allocations: 222.9 kB / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of SimCode: time 1.353e-06/0.9558, allocations: 0 / 0.6686 GB, free: 111.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.05125/1.007, allocations: 27.24 MB / 0.6952 GB, free: 88.09 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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)