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.001323/0.001323, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001241/0.001241, allocations: 201 kB / 16.14 MB, free: 6.762 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.682/1.682, allocations: 205.1 MB / 222 MB, free: 4.758 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.3006/0.3006, allocations: 37.98 MB / 307.3 MB, free: 10.02 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.001337/0.001337, allocations: 72.52 kB / 374.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1264, allocations: 56.47 MB / 431 MB, free: 7.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2426/0.3691, allocations: 41.49 MB / 472.5 MB, free: 31.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01812/0.3872, allocations: 8.96 MB / 481.5 MB, free: 26.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.3975, allocations: 173.3 kB / 481.6 MB, free: 26.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003442/0.4011, allocations: 1.938 MB / 483.6 MB, free: 25.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003787/0.4049, allocations: 1.619 MB / 485.2 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001142/0.406, allocations: 0.5226 MB / 485.7 MB, free: 24.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005176/0.4112, allocations: 5.381 MB / 491.1 MB, free: 23.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002512/0.4138, allocations: 2.545 MB / 493.6 MB, free: 22.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001654/0.4154, allocations: 1.121 MB / 494.8 MB, free: 21.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.4176, allocations: 1.955 MB / 496.7 MB, free: 21.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005844/0.4182, allocations: 192.3 kB / 496.9 MB, free: 21.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.4203, allocations: 1.125 MB / 498 MB, free: 20.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.4221, allocations: 1.64 MB / 499.7 MB, free: 20.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.4241, allocations: 1.866 MB / 0.4898 GB, free: 19.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007181/0.4312, allocations: 6.107 MB / 0.4957 GB, free: 16.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4313, allocations: 0 / 0.4957 GB, free: 16.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4313, allocations: 0.6562 kB / 0.4957 GB, free: 16.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000183/0.4315, allocations: 7.938 kB / 0.4958 GB, free: 16.87 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.0101/0.4416, allocations: 4.204 MB / 0.4999 GB, free: 14.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.4417, allocations: 9.969 kB / 0.4999 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01532/0.457, allocations: 2.44 MB / 0.5023 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006699/0.4637, allocations: 2.419 MB / 0.5046 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.464, allocations: 196 kB / 0.5048 GB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/0.4653, allocations: 260.3 kB / 0.5051 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01684/0.4821, allocations: 8.765 MB / 0.5136 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.4823, allocations: 37.62 kB / 0.5136 GB, free: 6.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004208/0.4827, allocations: 128.4 kB / 0.5138 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002693/0.4854, allocations: 1.832 MB / 0.5156 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.4984, allocations: 7.465 MB / 0.5228 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04579/0.5443, allocations: 34.3 MB / 0.5563 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005516/0.5498, allocations: 2.587 MB / 0.5589 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/0.5517, allocations: 1.188 MB / 0.56 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003855/0.5521, allocations: 328 kB / 0.5603 GB, free: 6.879 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.231e-05/0.5522, allocations: 43.12 kB / 0.5604 GB, free: 6.828 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.528e-06/0.5522, allocations: 3.938 kB / 0.5604 GB, free: 6.824 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02653/0.5787, allocations: 9.82 MB / 0.57 GB, free: 12.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.5789, allocations: 192.6 kB / 0.5702 GB, free: 12.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006357/0.5853, allocations: 3.964 MB / 0.574 GB, free: 8.707 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003174/0.5856, allocations: 45.7 kB / 0.5741 GB, free: 8.656 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00225/0.5879, allocations: 2.956 MB / 0.577 GB, free: 5.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007792/0.5886, allocations: 0.5325 MB / 0.5775 GB, free: 5.121 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/0.5904, allocations: 1.217 MB / 0.5787 GB, free: 3.891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5905, allocations: 305.1 kB / 0.579 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002804/0.5933, allocations: 1.803 MB / 0.5807 GB, free: 1.781 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005308/0.5986, allocations: 5.632 MB / 0.5862 GB, free: 10.23 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009224/0.6079, allocations: 8.047 MB / 0.5941 GB, free: 276 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.608, allocations: 40 kB / 0.5941 GB, free: 236 kB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01543/0.6235, allocations: 7.59 MB / 0.6015 GB, free: 8.629 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-05/0.6236, allocations: 64 kB / 0.6016 GB, free: 8.566 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/0.6237, allocations: 136 kB / 0.6017 GB, free: 8.434 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.6254, allocations: 0.6604 MB / 0.6024 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004311/0.6297, allocations: 1.349 MB / 0.6037 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00444/0.6341, allocations: 3.812 MB / 0.6074 GB, free: 2.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/0.6387, allocations: 331.4 kB / 0.6077 GB, free: 2.156 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001/0.6397, allocations: 368 kB / 0.6081 GB, free: 1.797 MB / 478.1 MB 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.004632/0.6444, allocations: 1.943 MB / 0.61 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.6455, allocations: 327.8 kB / 0.6103 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004244/0.6497, allocations: 2.069 MB / 0.6123 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.6498, allocations: 16 kB / 0.6123 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.6498, allocations: 0 / 0.6123 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/0.6498, allocations: 11.97 kB / 0.6123 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.6606, allocations: 5.813 MB / 0.618 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.6606, allocations: 0 / 0.618 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008771/0.6615, allocations: 191.7 kB / 0.6182 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/0.6628, allocations: 488.4 kB / 0.6187 GB, free: 6.832 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.63e-05/0.6629, allocations: 24 kB / 0.6187 GB, free: 6.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003579/0.6665, allocations: 3.221 MB / 0.6218 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.6665, allocations: 4 kB / 0.6218 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2303/0.8969, allocations: 3.997 MB / 0.6257 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/0.8984, allocations: 0.5358 MB / 0.6263 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004575/0.8989, allocations: 23.16 kB / 0.6263 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.9001, allocations: 63.75 kB / 0.6263 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.9003, allocations: 77.23 kB / 0.6264 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.24e-05/0.9004, allocations: 39.8 kB / 0.6265 GB, free: 147.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003319/0.9037, allocations: 2.467 MB / 0.6289 GB, free: 147 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9037, allocations: 0 / 0.6289 GB, free: 147 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004431/0.9082, allocations: 0.8817 MB / 0.6297 GB, free: 147 MB / 494.1 MB 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.000353/0.9086, allocations: 153.1 kB / 0.6299 GB, free: 146.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005671/0.9142, allocations: 4.301 MB / 0.6341 GB, free: 145.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.9143, allocations: 3.094 kB / 0.6341 GB, free: 145.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.9155, allocations: 1.066 MB / 0.6351 GB, free: 145.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.9179, allocations: 367.8 kB / 0.6355 GB, free: 145.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.9322, allocations: 9.648 MB / 0.6449 GB, free: 140.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/0.9352, allocations: 2.957 MB / 0.6478 GB, free: 139 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004866/0.9401, allocations: 1.818 MB / 0.6496 GB, free: 138.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007373/0.9408, allocations: 223.9 kB / 0.6498 GB, free: 138.8 MB / 494.1 MB Notification: Performance of SimCode: time 2.424e-06/0.9408, allocations: 0 / 0.6498 GB, free: 138.8 MB / 494.1 MB Notification: Performance of Templates: time 0.0616/1.002, allocations: 29.75 MB / 0.6788 GB, free: 131.2 MB / 494.1 MB 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)