Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.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.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.001394/0.001395, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001925/0.001926, allocations: 192.6 kB / 16.14 MB, free: 6.703 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.47/1.47, allocations: 205.1 MB / 222 MB, free: 4.773 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.3402/0.3402, allocations: 39.93 MB / 309.3 MB, free: 9.672 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.00138/0.00138, allocations: 71.89 kB / 376.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1447, allocations: 56.89 MB / 433.8 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2625/0.4072, allocations: 41.49 MB / 475.3 MB, free: 29.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02225/0.4295, allocations: 8.968 MB / 484.3 MB, free: 24.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01125/0.4409, allocations: 169.3 kB / 484.4 MB, free: 24.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004054/0.445, allocations: 1.929 MB / 486.4 MB, free: 23.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004664/0.4497, allocations: 1.633 MB / 488 MB, free: 22.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.4512, allocations: 0.5211 MB / 488.5 MB, free: 22.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006413/0.4576, allocations: 5.38 MB / 493.9 MB, free: 20.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003825/0.4615, allocations: 2.54 MB / 496.4 MB, free: 19.9 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002559/0.4641, allocations: 1.116 MB / 497.5 MB, free: 19.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003586/0.4677, allocations: 1.968 MB / 499.5 MB, free: 18.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001111/0.4688, allocations: 188.7 kB / 499.7 MB, free: 18.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003695/0.4726, allocations: 1.127 MB / 0.4891 GB, free: 18.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003169/0.4758, allocations: 1.639 MB / 0.4907 GB, free: 18.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003899/0.4797, allocations: 1.867 MB / 0.4925 GB, free: 16.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01252/0.4922, allocations: 6.103 MB / 0.4985 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.4923, allocations: 4.75 kB / 0.4985 GB, free: 14.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4923, allocations: 0 / 0.4985 GB, free: 14.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003287/0.4926, allocations: 0 / 0.4985 GB, free: 14.59 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.01737/0.51, allocations: 4.209 MB / 0.5026 GB, free: 12.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.745e-05/0.5101, allocations: 10.89 kB / 0.5026 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02394/0.5341, allocations: 2.445 MB / 0.505 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.5459, allocations: 2.409 MB / 0.5073 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000363/0.5463, allocations: 194.6 kB / 0.5075 GB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002087/0.5484, allocations: 265.3 kB / 0.5078 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02719/0.5756, allocations: 8.76 MB / 0.5163 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000152/0.5759, allocations: 42.19 kB / 0.5164 GB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006909/0.5766, allocations: 127.5 kB / 0.5165 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003814/0.5804, allocations: 1.838 MB / 0.5183 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/0.5974, allocations: 7.468 MB / 0.5256 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04982/0.6472, allocations: 34.3 MB / 0.5591 GB, free: 7.176 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005496/0.6528, allocations: 2.589 MB / 0.5616 GB, free: 4.438 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.6546, allocations: 1.192 MB / 0.5628 GB, free: 3.234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003728/0.655, allocations: 328 kB / 0.5631 GB, free: 2.859 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.655, allocations: 47.06 kB / 0.5631 GB, free: 2.805 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.907e-06/0.655, allocations: 0 / 0.5631 GB, free: 2.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02717/0.6822, allocations: 9.815 MB / 0.5727 GB, free: 8.875 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.6824, allocations: 196.6 kB / 0.5729 GB, free: 8.641 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006584/0.689, allocations: 3.964 MB / 0.5768 GB, free: 4.691 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003946/0.6894, allocations: 41.7 kB / 0.5768 GB, free: 4.645 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002409/0.6918, allocations: 2.944 MB / 0.5797 GB, free: 1.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008501/0.6927, allocations: 0.5481 MB / 0.5802 GB, free: 1.105 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001788/0.6945, allocations: 1.202 MB / 0.5814 GB, free: 15.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.6946, allocations: 305.1 kB / 0.5817 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003188/0.6978, allocations: 1.807 MB / 0.5834 GB, free: 13.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006219/0.704, allocations: 5.636 MB / 0.5889 GB, free: 6.215 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/0.7151, allocations: 8.043 MB / 0.5968 GB, free: 12.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001912/0.7154, allocations: 40 kB / 0.5968 GB, free: 12.22 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01928/0.7347, allocations: 7.59 MB / 0.6043 GB, free: 4.625 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.363e-05/0.7348, allocations: 64 kB / 0.6043 GB, free: 4.562 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001621/0.735, allocations: 140 kB / 0.6044 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.7367, allocations: 0.6643 MB / 0.6051 GB, free: 3.758 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/0.7414, allocations: 1.357 MB / 0.6064 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004898/0.7463, allocations: 3.803 MB / 0.6101 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005305/0.7516, allocations: 323.4 kB / 0.6104 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001256/0.7529, allocations: 368 kB / 0.6108 GB, free: 13.79 MB / 494.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.004297/0.7572, allocations: 1.947 MB / 0.6127 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000689/0.7579, allocations: 323.8 kB / 0.613 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004082/0.762, allocations: 2.077 MB / 0.615 GB, free: 9.406 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.7621, allocations: 12 kB / 0.615 GB, free: 9.395 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.7621, allocations: 4 kB / 0.615 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.7621, allocations: 3.984 kB / 0.6151 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/0.7747, allocations: 5.814 MB / 0.6207 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/0.7748, allocations: 3.938 kB / 0.6207 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009268/0.7757, allocations: 195.7 kB / 0.6209 GB, free: 3.297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.7771, allocations: 488.3 kB / 0.6214 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.7772, allocations: 24 kB / 0.6214 GB, free: 2.793 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3309/1.108, allocations: 3.216 MB / 0.6245 GB, free: 144.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.108, allocations: 3.906 kB / 0.6246 GB, free: 144.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006515/1.115, allocations: 4 MB / 0.6285 GB, free: 144.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.116, allocations: 0.5384 MB / 0.629 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004041/1.117, allocations: 20.28 kB / 0.629 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/1.118, allocations: 66.39 kB / 0.6291 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/1.118, allocations: 77.64 kB / 0.6291 GB, free: 144 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.989e-05/1.118, allocations: 37.53 kB / 0.6292 GB, free: 144 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00384/1.122, allocations: 2.474 MB / 0.6316 GB, free: 143.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.122, allocations: 0 / 0.6316 GB, free: 143.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004539/1.126, allocations: 0.877 MB / 0.6324 GB, free: 143.2 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.0003506/1.127, allocations: 149.7 kB / 0.6326 GB, free: 143.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006543/1.133, allocations: 4.299 MB / 0.6368 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.133, allocations: 0 / 0.6368 GB, free: 141.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/1.135, allocations: 1.075 MB / 0.6378 GB, free: 141.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/1.137, allocations: 357.1 kB / 0.6382 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/1.152, allocations: 9.664 MB / 0.6476 GB, free: 136.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003412/1.156, allocations: 2.963 MB / 0.6505 GB, free: 134.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005304/1.161, allocations: 1.81 MB / 0.6523 GB, free: 134.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008062/1.162, allocations: 228.2 kB / 0.6525 GB, free: 134.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.212e-06/1.162, allocations: 0 / 0.6525 GB, free: 134.8 MB / 494.1 MB Notification: Performance of Templates: time 0.074/1.236, allocations: 29.74 MB / 0.6815 GB, free: 124.7 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)