Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00191/0.00191, allocations: 117 kB / 19.13 MB, free: 3.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 214.6 kB / 22.08 MB, free: 0.9727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 252.3 MB, free: 272 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.17 MB / 351.8 MB, free: 14.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002329, allocations: 81.16 kB / 490.9 MB, free: 27.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.118, allocations: 62.45 MB / 0.5403 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01174/0.1298, allocations: 9.042 MB / 0.5492 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008315/0.1382, allocations: 3.578 MB / 0.5527 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001483/0.1397, allocations: 51.88 kB / 0.5527 GB, free: 7.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004289/0.144, allocations: 1.9 MB / 0.5546 GB, free: 5.523 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004499/0.1486, allocations: 1.576 MB / 0.5561 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00173/0.1504, allocations: 0.5692 MB / 0.5567 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006484/0.1569, allocations: 3.657 MB / 0.5602 GB, free: 15.71 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00423/0.1611, allocations: 2.425 MB / 0.5626 GB, free: 13.23 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002363/0.1635, allocations: 1.152 MB / 0.5637 GB, free: 12.07 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.1665, allocations: 1.647 MB / 0.5653 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009947/0.1676, allocations: 240 kB / 0.5656 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002814/0.1704, allocations: 1.104 MB / 0.5667 GB, free: 9.078 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002458/0.1729, allocations: 1.508 MB / 0.5681 GB, free: 7.566 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002819/0.1757, allocations: 1.716 MB / 0.5698 GB, free: 5.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008581/0.1843, allocations: 5.716 MB / 0.5754 GB, free: 104 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.1844, allocations: 0 / 0.5754 GB, free: 104 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1844, allocations: 0 / 0.5754 GB, free: 104 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001918/0.1846, allocations: 4 kB / 0.5754 GB, free: 100 kB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.009287/0.1939, allocations: 3.922 MB / 0.5792 GB, free: 12.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.194, allocations: 8.031 kB / 0.5792 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01661/0.2106, allocations: 2.37 MB / 0.5815 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005522/0.2161, allocations: 2.265 MB / 0.5837 GB, free: 7.398 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.2163, allocations: 176.8 kB / 0.5839 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007765/0.2171, allocations: 244 kB / 0.5842 GB, free: 6.984 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.2314, allocations: 7.783 MB / 0.5918 GB, free: 14.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.2316, allocations: 39.69 kB / 0.5918 GB, free: 14.51 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003963/0.232, allocations: 119.9 kB / 0.5919 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002707/0.2347, allocations: 1.578 MB / 0.5934 GB, free: 12.81 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.2478, allocations: 6.595 MB / 0.5999 GB, free: 6.211 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2927/0.5405, allocations: 31.66 MB / 0.6308 GB, free: 33.11 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004818/0.5454, allocations: 2.478 MB / 0.6332 GB, free: 31.9 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.5469, allocations: 1.124 MB / 0.6343 GB, free: 31.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.5472, allocations: 323.2 kB / 0.6346 GB, free: 31.14 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.5473, allocations: 45.78 kB / 0.6347 GB, free: 31.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.506e-06/0.5473, allocations: 0 / 0.6347 GB, free: 31.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02244/0.5697, allocations: 9.335 MB / 0.6438 GB, free: 27.29 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.5698, allocations: 202.5 kB / 0.644 GB, free: 27.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005638/0.5755, allocations: 3.759 MB / 0.6477 GB, free: 25.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003928/0.5759, allocations: 41.67 kB / 0.6477 GB, free: 25.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002179/0.5781, allocations: 2.81 MB / 0.6504 GB, free: 23.54 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000937/0.5791, allocations: 0.5047 MB / 0.6509 GB, free: 23.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/0.5809, allocations: 1.131 MB / 0.652 GB, free: 22.48 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5811, allocations: 305.1 kB / 0.6523 GB, free: 22.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00247/0.5835, allocations: 1.696 MB / 0.654 GB, free: 21.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002972/0.5865, allocations: 5.255 MB / 0.6591 GB, free: 15.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005816/0.5923, allocations: 7.511 MB / 0.6665 GB, free: 8.355 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.27e-05/0.5924, allocations: 34.88 kB / 0.6665 GB, free: 8.355 MB / 462.1 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.0105/0.6029, allocations: 7.141 MB / 0.6735 GB, free: 1.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.588e-05/0.603, allocations: 60 kB / 0.6735 GB, free: 1.352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/0.6032, allocations: 128 kB / 0.6736 GB, free: 1.227 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.6046, allocations: 0.6569 MB / 0.6743 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003791/0.6084, allocations: 1.248 MB / 0.6755 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005911/0.6143, allocations: 4.074 MB / 0.6795 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005474/0.6199, allocations: 299.5 kB / 0.6798 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/0.621, allocations: 344.1 kB / 0.6801 GB, free: 10.48 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (682): * Single equations (assignments): 678 * 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.004024/0.625, allocations: 1.78 MB / 0.6818 GB, free: 8.684 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/0.6261, allocations: 321.8 kB / 0.6821 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00449/0.6306, allocations: 1.834 MB / 0.6839 GB, free: 6.527 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-05/0.6307, allocations: 19.98 kB / 0.6839 GB, free: 6.508 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.6307, allocations: 0 / 0.6839 GB, free: 6.508 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6308, allocations: 7.984 kB / 0.684 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.644, allocations: 5.213 MB / 0.689 GB, free: 1.246 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.644, allocations: 0 / 0.689 GB, free: 1.246 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008503/0.6449, allocations: 155.8 kB / 0.6892 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.6464, allocations: 492.2 kB / 0.6897 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.6466, allocations: 20 kB / 0.6897 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004863/0.6514, allocations: 3.437 MB / 0.693 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.6515, allocations: 0 / 0.693 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006961/0.6584, allocations: 3.749 MB / 0.6967 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.6598, allocations: 374.8 kB / 0.6971 GB, free: 8.855 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008529/0.6607, allocations: 27.61 kB / 0.6971 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.6622, allocations: 55.92 kB / 0.6971 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.6625, allocations: 64.55 kB / 0.6972 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.6626, allocations: 35.98 kB / 0.6972 GB, free: 8.68 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005001/0.6676, allocations: 2.33 MB / 0.6995 GB, free: 6.363 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6676, allocations: 0 / 0.6995 GB, free: 6.363 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005412/0.6731, allocations: 0.7967 MB / 0.7003 GB, free: 5.566 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.000589/0.6737, allocations: 157.7 kB / 0.7004 GB, free: 5.414 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007889/0.6816, allocations: 4.022 MB / 0.7044 GB, free: 1.406 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.562e-06/0.6816, allocations: 1.188 kB / 0.7044 GB, free: 1.406 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.6835, allocations: 1.003 MB / 0.7053 GB, free: 400 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/0.6866, allocations: 353.9 kB / 0.7057 GB, free: 60 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.7021, allocations: 7.574 MB / 0.7131 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003343/0.7055, allocations: 2.708 MB / 0.7157 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008959/0.7064, allocations: 255.3 kB / 0.716 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of SimCode: time 1.373e-06/0.7064, allocations: 4 kB / 0.716 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of Templates: time 0.1007/0.8071, allocations: 62.02 MB / 0.7765 GB, free: 7.465 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.621873185038567]