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.001104/0.001104, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001414/0.001414, allocations: 194 kB / 16.25 MB, free: 6.625 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.419/1.419, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.3146/0.3146, allocations: 37.98 MB / 307.4 MB, free: 10.06 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.001414/0.001414, allocations: 67.91 kB / 374.7 MB, free: 15.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 56.47 MB / 431.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2357/0.3617, allocations: 41.48 MB / 472.7 MB, free: 31.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.378, allocations: 8.878 MB / 481.6 MB, free: 26.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007098/0.3851, allocations: 174.9 kB / 481.7 MB, free: 26.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003526/0.3887, allocations: 1.851 MB / 483.6 MB, free: 25.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00417/0.3929, allocations: 1.626 MB / 485.2 MB, free: 25.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.3941, allocations: 0.5361 MB / 485.7 MB, free: 24.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004325/0.3985, allocations: 3.889 MB / 489.6 MB, free: 23.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003732/0.4022, allocations: 2.705 MB / 492.3 MB, free: 22.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002335/0.4046, allocations: 1.297 MB / 493.6 MB, free: 21.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003188/0.4078, allocations: 2.043 MB / 495.7 MB, free: 21.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009782/0.4088, allocations: 279.2 kB / 496 MB, free: 21.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002737/0.4116, allocations: 1.157 MB / 497.1 MB, free: 20.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002835/0.4144, allocations: 1.722 MB / 498.8 MB, free: 20.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004897/0.4193, allocations: 1.961 MB / 0.4891 GB, free: 18.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.4327, allocations: 6.22 MB / 0.4951 GB, free: 16.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4327, allocations: 0 / 0.4951 GB, free: 16.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4328, allocations: 0 / 0.4951 GB, free: 16.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003178/0.4331, allocations: 0 / 0.4951 GB, free: 16.69 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.01545/0.4485, allocations: 4.211 MB / 0.4992 GB, free: 14.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.4486, allocations: 16.17 kB / 0.4993 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/0.4661, allocations: 2.443 MB / 0.5016 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00797/0.4741, allocations: 2.416 MB / 0.504 GB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002954/0.4745, allocations: 194.7 kB / 0.5042 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001623/0.4761, allocations: 257 kB / 0.5044 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01962/0.4958, allocations: 8.754 MB / 0.513 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001781/0.496, allocations: 41.66 kB / 0.513 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006713/0.4967, allocations: 130.2 kB / 0.5131 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004136/0.5008, allocations: 1.837 MB / 0.5149 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01832/0.5192, allocations: 7.463 MB / 0.5222 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05912/0.5783, allocations: 34.31 MB / 0.5557 GB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005357/0.5837, allocations: 2.583 MB / 0.5583 GB, free: 9.172 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001705/0.5855, allocations: 1.184 MB / 0.5594 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003987/0.5859, allocations: 323.8 kB / 0.5597 GB, free: 7.605 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.586, allocations: 47.06 kB / 0.5598 GB, free: 7.551 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.028e-06/0.586, allocations: 3.938 kB / 0.5598 GB, free: 7.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02557/0.6116, allocations: 9.822 MB / 0.5694 GB, free: 13.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.852e-05/0.6117, allocations: 192.6 kB / 0.5695 GB, free: 13.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/0.6177, allocations: 3.971 MB / 0.5734 GB, free: 9.422 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003454/0.6181, allocations: 41.7 kB / 0.5735 GB, free: 9.375 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002258/0.6204, allocations: 2.94 MB / 0.5763 GB, free: 6.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/0.6216, allocations: 0.5443 MB / 0.5769 GB, free: 5.844 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002242/0.6239, allocations: 1.209 MB / 0.5781 GB, free: 4.621 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.6241, allocations: 301.1 kB / 0.5783 GB, free: 4.324 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003223/0.6273, allocations: 1.807 MB / 0.5801 GB, free: 2.512 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006808/0.6341, allocations: 5.64 MB / 0.5856 GB, free: 10.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/0.6457, allocations: 8.044 MB / 0.5935 GB, free: 1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001355/0.6459, allocations: 40 kB / 0.5935 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01832/0.6642, allocations: 7.586 MB / 0.6009 GB, free: 9.359 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000195/0.6645, allocations: 65 kB / 0.601 GB, free: 9.297 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002808/0.6648, allocations: 136 kB / 0.6011 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.6668, allocations: 0.6682 MB / 0.6018 GB, free: 8.492 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004966/0.6718, allocations: 1.353 MB / 0.6031 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/0.6772, allocations: 4.097 MB / 0.6071 GB, free: 2.902 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005189/0.6824, allocations: 323.3 kB / 0.6074 GB, free: 2.586 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/0.6839, allocations: 371.9 kB / 0.6077 GB, free: 2.227 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.00541/0.6893, allocations: 1.943 MB / 0.6096 GB, free: 276 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/0.6904, allocations: 328 kB / 0.61 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005411/0.6959, allocations: 2.065 MB / 0.612 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/0.6959, allocations: 20 kB / 0.612 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.6959, allocations: 4 kB / 0.612 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.696, allocations: 7.969 kB / 0.612 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/0.7115, allocations: 5.806 MB / 0.6177 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/0.7116, allocations: 4 kB / 0.6177 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.7127, allocations: 191.9 kB / 0.6179 GB, free: 7.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001401/0.7141, allocations: 496.4 kB / 0.6183 GB, free: 7.258 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001698/0.7143, allocations: 20 kB / 0.6183 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004215/0.7185, allocations: 3.433 MB / 0.6217 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.7185, allocations: 8.062 kB / 0.6217 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2471/0.9656, allocations: 3.997 MB / 0.6256 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001892/0.9675, allocations: 0.5316 MB / 0.6261 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004716/0.968, allocations: 27.41 kB / 0.6262 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.9694, allocations: 70.7 kB / 0.6262 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.9696, allocations: 73.27 kB / 0.6263 GB, free: 147.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.9697, allocations: 33.56 kB / 0.6263 GB, free: 147.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004549/0.9743, allocations: 2.477 MB / 0.6287 GB, free: 147.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9743, allocations: 0 / 0.6287 GB, free: 147.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005448/0.9798, allocations: 0.8775 MB / 0.6296 GB, free: 147.1 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.0004219/0.9802, allocations: 154.5 kB / 0.6297 GB, free: 147 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007196/0.9874, allocations: 4.666 MB / 0.6343 GB, free: 146 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.9874, allocations: 0 / 0.6343 GB, free: 146 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.9888, allocations: 1.08 MB / 0.6354 GB, free: 145.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.9914, allocations: 377.1 kB / 0.6357 GB, free: 145.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/1.006, allocations: 9.655 MB / 0.6451 GB, free: 140.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002894/1.009, allocations: 2.945 MB / 0.648 GB, free: 139.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004174/1.013, allocations: 1.818 MB / 0.6498 GB, free: 139 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000625/1.014, allocations: 225.2 kB / 0.65 GB, free: 139 MB / 494.1 MB Notification: Performance of SimCode: time 9.51e-07/1.014, allocations: 0 / 0.65 GB, free: 139 MB / 494.1 MB Notification: Performance of Templates: time 0.07948/1.093, allocations: 30.88 MB / 0.6802 GB, free: 129.8 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)