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.006989/0.006989, allocations: 103.8 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.00143/0.00143, allocations: 191.3 kB / 16.67 MB, free: 5.961 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.519/1.519, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.3103/0.3103, allocations: 39.95 MB / 309.8 MB, free: 9.398 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.001495/0.001496, allocations: 71.89 kB / 435.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3235, allocations: 56.87 MB / 492.6 MB, free: 19.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009973/0.3335, allocations: 10.02 MB / 0.4909 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007632/0.3412, allocations: 3.699 MB / 0.4945 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002062/0.3433, allocations: 51.88 kB / 0.4945 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003892/0.3472, allocations: 1.953 MB / 0.4965 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004971/0.3522, allocations: 1.747 MB / 0.4982 GB, free: 7.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00151/0.3537, allocations: 0.5625 MB / 0.4987 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005928/0.3597, allocations: 3.745 MB / 0.5024 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003093/0.3628, allocations: 2.546 MB / 0.5048 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002274/0.3651, allocations: 1.281 MB / 0.5061 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002308/0.3674, allocations: 1.826 MB / 0.5079 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006261/0.3681, allocations: 274.5 kB / 0.5081 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.3702, allocations: 1.145 MB / 0.5093 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001663/0.3718, allocations: 1.708 MB / 0.5109 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.3742, allocations: 1.934 MB / 0.5128 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007789/0.382, allocations: 6.41 MB / 0.5191 GB, free: 9.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3821, allocations: 0 / 0.5191 GB, free: 9.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3821, allocations: 0 / 0.5191 GB, free: 9.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001148/0.3822, allocations: 0 / 0.5191 GB, free: 9.355 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.007315/0.3895, allocations: 4.207 MB / 0.5232 GB, free: 5.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3896, allocations: 15.89 kB / 0.5232 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01659/0.4062, allocations: 2.445 MB / 0.5256 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006167/0.4124, allocations: 2.444 MB / 0.528 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.4126, allocations: 193.3 kB / 0.5282 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007135/0.4133, allocations: 260 kB / 0.5284 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.4265, allocations: 8.764 MB / 0.537 GB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.325e-05/0.4266, allocations: 39.67 kB / 0.537 GB, free: 6.219 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000358/0.4269, allocations: 127.9 kB / 0.5371 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002993/0.43, allocations: 1.836 MB / 0.5389 GB, free: 4.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.4426, allocations: 7.464 MB / 0.5462 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04292/0.4856, allocations: 34.13 MB / 0.5795 GB, free: 9.613 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005322/0.491, allocations: 2.597 MB / 0.5821 GB, free: 6.871 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.4929, allocations: 1.192 MB / 0.5832 GB, free: 5.664 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004689/0.4934, allocations: 319.8 kB / 0.5835 GB, free: 5.293 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.189e-05/0.4935, allocations: 51.05 kB / 0.5836 GB, free: 5.234 MB / 462.1 MB Notification: Performance of pre-optimization done (n=119): time 5.25e-06/0.4935, allocations: 0 / 0.5836 GB, free: 5.234 MB / 462.1 MB Notification: Performance of matching and sorting (n=133): time 0.02519/0.5187, allocations: 9.82 MB / 0.5932 GB, free: 11.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.5188, allocations: 204.6 kB / 0.5934 GB, free: 11.06 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005399/0.5242, allocations: 3.956 MB / 0.5972 GB, free: 7.117 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.5245, allocations: 41.7 kB / 0.5973 GB, free: 7.07 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.5267, allocations: 2.948 MB / 0.6002 GB, free: 4.082 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000692/0.5274, allocations: 0.5442 MB / 0.6007 GB, free: 3.531 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.5289, allocations: 1.205 MB / 0.6019 GB, free: 2.312 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.529, allocations: 301.1 kB / 0.6022 GB, free: 2.016 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.5317, allocations: 1.807 MB / 0.6039 GB, free: 208 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005445/0.5372, allocations: 5.632 MB / 0.6094 GB, free: 8.648 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008845/0.546, allocations: 8.048 MB / 0.6173 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.96e-05/0.5462, allocations: 36 kB / 0.6173 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01438/0.5606, allocations: 7.593 MB / 0.6247 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.748e-05/0.5607, allocations: 64 kB / 0.6248 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/0.5608, allocations: 132 kB / 0.6249 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/0.5625, allocations: 0.6764 MB / 0.6256 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004135/0.5666, allocations: 1.353 MB / 0.6269 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00551/0.5722, allocations: 4.086 MB / 0.6309 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/0.5764, allocations: 319.3 kB / 0.6312 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.2416/0.818, allocations: 370.9 kB / 0.6315 GB, free: 120.5 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.004134/0.8222, allocations: 1.94 MB / 0.6334 GB, free: 120.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009845/0.8232, allocations: 321.2 kB / 0.6337 GB, free: 120.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004707/0.8279, allocations: 2.072 MB / 0.6358 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-05/0.828, allocations: 15.06 kB / 0.6358 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.828, allocations: 3.531 kB / 0.6358 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.159e-05/0.8281, allocations: 6.203 kB / 0.6358 GB, free: 119.8 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01391/0.842, allocations: 5.793 MB / 0.6415 GB, free: 117.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/0.842, allocations: 10.19 kB / 0.6415 GB, free: 117.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.8431, allocations: 185.4 kB / 0.6416 GB, free: 117.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001444/0.8445, allocations: 490.9 kB / 0.6421 GB, free: 117.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.8447, allocations: 25.84 kB / 0.6421 GB, free: 117.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003807/0.8485, allocations: 3.441 MB / 0.6455 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.8485, allocations: 9.031 kB / 0.6455 GB, free: 115.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006358/0.8549, allocations: 3.985 MB / 0.6494 GB, free: 114 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/0.8569, allocations: 0.5492 MB / 0.6499 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005344/0.8574, allocations: 20.12 kB / 0.6499 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.8586, allocations: 67.92 kB / 0.65 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/0.8588, allocations: 73.11 kB / 0.6501 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-05/0.8589, allocations: 44.58 kB / 0.6501 GB, free: 113.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004721/0.8636, allocations: 2.471 MB / 0.6525 GB, free: 112.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.8e-07/0.8637, allocations: 0 / 0.6525 GB, free: 112.9 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005902/0.8696, allocations: 0.8813 MB / 0.6534 GB, free: 112.8 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.0005213/0.8701, allocations: 149.8 kB / 0.6535 GB, free: 112.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008421/0.8786, allocations: 4.319 MB / 0.6578 GB, free: 111.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.8786, allocations: 0 / 0.6578 GB, free: 111.2 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.8802, allocations: 1.07 MB / 0.6588 GB, free: 110.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.8828, allocations: 380.3 kB / 0.6592 GB, free: 110.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.8971, allocations: 7.836 MB / 0.6668 GB, free: 107.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/0.8999, allocations: 2.962 MB / 0.6697 GB, free: 106 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00367/0.9036, allocations: 1.822 MB / 0.6715 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005507/0.9041, allocations: 227.8 kB / 0.6717 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.303e-06/0.9041, allocations: 4 kB / 0.6717 GB, free: 105.2 MB / 0.4981 GB Notification: Performance of Templates: time 0.05644/0.9606, allocations: 27.24 MB / 0.6983 GB, free: 80.52 MB / 0.4981 GB 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)