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.0008466/0.0008465, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.00547/0.00547, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.442/1.442, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.3271/0.3271, allocations: 38.04 MB / 308.8 MB, free: 10.38 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.0005396/0.0005395, allocations: 19.98 kB / 377.1 MB, free: 14.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1111, allocations: 57.52 MB / 434.6 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2341/0.3452, allocations: 40.36 MB / 474.9 MB, free: 30.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02104/0.3662, allocations: 8.908 MB / 483.8 MB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00796/0.3742, allocations: 174.1 kB / 484 MB, free: 26.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.3756, allocations: 377.1 kB / 484.4 MB, free: 26.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003764/0.3793, allocations: 1.638 MB / 486 MB, free: 25.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.3804, allocations: 0.5229 MB / 486.5 MB, free: 25.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006262/0.3867, allocations: 5.38 MB / 491.9 MB, free: 23.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004406/0.3912, allocations: 3.391 MB / 495.3 MB, free: 22.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.3925, allocations: 0.9765 MB / 496.3 MB, free: 22.19 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.3943, allocations: 1.766 MB / 498 MB, free: 21.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002469/0.3946, allocations: 129.1 kB / 498.2 MB, free: 21.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001804/0.3964, allocations: 1.069 MB / 499.2 MB, free: 21.39 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.3979, allocations: 1.559 MB / 0.4891 GB, free: 20.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001539/0.3994, allocations: 1.783 MB / 0.4908 GB, free: 19.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009399/0.4088, allocations: 5.959 MB / 0.4966 GB, free: 18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4089, allocations: 0 / 0.4966 GB, free: 18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4089, allocations: 0 / 0.4966 GB, free: 18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002516/0.4091, allocations: 1.281 kB / 0.4966 GB, free: 18 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.01221/0.4214, allocations: 3.444 MB / 0.5 GB, free: 16.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.4214, allocations: 9.469 kB / 0.5 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01801/0.4395, allocations: 2.51 MB / 0.5024 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006892/0.4464, allocations: 2.415 MB / 0.5048 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002476/0.4467, allocations: 198.5 kB / 0.505 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001609/0.4483, allocations: 260 kB / 0.5052 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01672/0.465, allocations: 8.767 MB / 0.5138 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001356/0.4652, allocations: 36.84 kB / 0.5138 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004211/0.4657, allocations: 135 kB / 0.514 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003306/0.469, allocations: 1.845 MB / 0.5158 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01478/0.4838, allocations: 7.479 MB / 0.5231 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04672/0.5305, allocations: 34.33 MB / 0.5566 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005119/0.5357, allocations: 2.585 MB / 0.5591 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.5374, allocations: 1.184 MB / 0.5603 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003738/0.5378, allocations: 332 kB / 0.5606 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/0.5379, allocations: 51.05 kB / 0.5606 GB, free: 8.992 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 3.918e-06/0.5379, allocations: 0 / 0.5606 GB, free: 8.992 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02654/0.5645, allocations: 9.801 MB / 0.5702 GB, free: 15.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.5646, allocations: 196.6 kB / 0.5704 GB, free: 14.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006207/0.5709, allocations: 3.964 MB / 0.5743 GB, free: 10.89 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002886/0.5712, allocations: 45.7 kB / 0.5743 GB, free: 10.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002197/0.5734, allocations: 2.948 MB / 0.5772 GB, free: 7.852 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007276/0.5741, allocations: 0.5403 MB / 0.5777 GB, free: 7.305 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005912/0.5747, allocations: 0.5029 MB / 0.5782 GB, free: 6.793 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.5748, allocations: 305.1 kB / 0.5785 GB, free: 6.492 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/0.5777, allocations: 1.803 MB / 0.5803 GB, free: 4.684 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005007/0.5827, allocations: 5.636 MB / 0.5858 GB, free: 13.12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009554/0.5923, allocations: 8.045 MB / 0.5936 GB, free: 3.172 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/0.5924, allocations: 40 kB / 0.5937 GB, free: 3.133 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01637/0.6088, allocations: 7.594 MB / 0.6011 GB, free: 11.53 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.609, allocations: 60.28 kB / 0.6011 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002035/0.6092, allocations: 136 kB / 0.6013 GB, free: 11.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001775/0.611, allocations: 0.6705 MB / 0.6019 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004816/0.6158, allocations: 1.361 MB / 0.6033 GB, free: 9.305 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.6204, allocations: 3.8 MB / 0.607 GB, free: 5.375 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005287/0.6257, allocations: 319.5 kB / 0.6073 GB, free: 5.062 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/0.6272, allocations: 371.9 kB / 0.6076 GB, free: 4.699 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.005798/0.633, allocations: 1.955 MB / 0.6095 GB, free: 2.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.634, allocations: 323.8 kB / 0.6098 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004878/0.6389, allocations: 2.065 MB / 0.6119 GB, free: 324 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.913e-05/0.639, allocations: 16 kB / 0.6119 GB, free: 308 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.639, allocations: 4 kB / 0.6119 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/0.639, allocations: 7.984 kB / 0.6119 GB, free: 296 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/0.6542, allocations: 5.813 MB / 0.6176 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.673e-05/0.6543, allocations: 4 kB / 0.6176 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.6554, allocations: 191.8 kB / 0.6178 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/0.6569, allocations: 488.2 kB / 0.6182 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001997/0.6571, allocations: 20 kB / 0.6182 GB, free: 9.711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004232/0.6614, allocations: 3.225 MB / 0.6214 GB, free: 6.352 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.6614, allocations: 7.938 kB / 0.6214 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006794/0.6682, allocations: 3.997 MB / 0.6253 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/0.6698, allocations: 0.5474 MB / 0.6258 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008897/0.6707, allocations: 28.05 kB / 0.6259 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.6725, allocations: 63.92 kB / 0.6259 GB, free: 1.637 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/0.6727, allocations: 72.41 kB / 0.626 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.6729, allocations: 39.98 kB / 0.626 GB, free: 1.527 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.2702/0.943, allocations: 2.472 MB / 0.6284 GB, free: 144.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.22e-07/0.9431, allocations: 0 / 0.6284 GB, free: 144.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006054/0.9491, allocations: 0.8747 MB / 0.6293 GB, free: 144.3 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.000391/0.9495, allocations: 155.7 kB / 0.6294 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006959/0.9565, allocations: 4.292 MB / 0.6336 GB, free: 143.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.9566, allocations: 0 / 0.6336 GB, free: 143.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001442/0.958, allocations: 1.076 MB / 0.6347 GB, free: 143.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003426/0.9614, allocations: 363.3 kB / 0.635 GB, free: 143.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.975, allocations: 9.717 MB / 0.6445 GB, free: 139.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/0.9777, allocations: 2.96 MB / 0.6474 GB, free: 138 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004238/0.9819, allocations: 1.807 MB / 0.6492 GB, free: 137.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006753/0.9826, allocations: 227.2 kB / 0.6494 GB, free: 137.8 MB / 494.1 MB Notification: Performance of SimCode: time 9.72e-07/0.9826, allocations: 3.938 kB / 0.6494 GB, free: 137.8 MB / 494.1 MB Notification: Performance of Templates: time 0.06387/1.047, allocations: 29.38 MB / 0.6781 GB, free: 130.7 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: