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.001556/0.001556, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 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.001591/0.001591, allocations: 156.9 kB / 24.26 MB, free: 168 kB / 18.57 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.516/1.516, allocations: 177 MB / 204.4 MB, free: 5.609 MB / 186.7 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.3718/0.3718, allocations: 34.25 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 179] 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 1.503e-06/1.503e-06, allocations: 0 / 377.2 MB, free: 2.914 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.561e-05/3.711e-05, allocations: 2.312 kB / 377.2 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01189/0.01193, allocations: 8.038 MB / 385.2 MB, free: 10.83 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008147/0.02007, allocations: 3.383 MB / 388.6 MB, free: 7.438 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.02134, allocations: 59.69 kB / 388.7 MB, free: 7.379 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004614/0.02595, allocations: 1.989 MB / 390.7 MB, free: 5.383 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005635/0.03159, allocations: 1.672 MB / 392.3 MB, free: 3.703 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.03321, allocations: 0.6235 MB / 393 MB, free: 3.078 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006167/0.03938, allocations: 4.043 MB / 397 MB, free: 15.03 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003752/0.04313, allocations: 2.311 MB / 399.3 MB, free: 12.66 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003338/0.04647, allocations: 1.777 MB / 401.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003235/0.04971, allocations: 1.804 MB / 402.9 MB, free: 9.066 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005626/0.05027, allocations: 248 kB / 403.1 MB, free: 8.824 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002122/0.05239, allocations: 1.069 MB / 404.2 MB, free: 7.754 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001934/0.05432, allocations: 1.62 MB / 405.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.05578, allocations: 0.9656 MB / 406.8 MB, free: 5.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008131/0.06391, allocations: 5.802 MB / 412.6 MB, free: 15.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.06392, allocations: 3.938 kB / 412.6 MB, free: 15.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.06392, allocations: 0 / 412.6 MB, free: 15.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001524/0.06407, allocations: 0 / 412.6 MB, free: 15.34 MB / 394.7 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.01009/0.07416, allocations: 3.893 MB / 416.5 MB, free: 11.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.07421, allocations: 8.031 kB / 416.5 MB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01601/0.09022, allocations: 2.807 MB / 419.3 MB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00679/0.09701, allocations: 2.204 MB / 421.5 MB, free: 6.328 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.0972, allocations: 176.8 kB / 421.7 MB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006229/0.09782, allocations: 236.2 kB / 421.9 MB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/0.1136, allocations: 7.892 MB / 429.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.1137, allocations: 43.69 kB / 429.9 MB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003884/0.1141, allocations: 115.9 kB / 430 MB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002959/0.1171, allocations: 1.582 MB / 431.5 MB, free: 11.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01446/0.1315, allocations: 6.624 MB / 438.2 MB, free: 4.996 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.214/0.3456, allocations: 30.06 MB / 468.2 MB, free: 74.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004028/0.3496, allocations: 1.883 MB / 470.1 MB, free: 73.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.3508, allocations: 1.051 MB / 471.2 MB, free: 73.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003309/0.3511, allocations: 117.1 kB / 471.3 MB, free: 73.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.3511, allocations: 46.92 kB / 471.3 MB, free: 73.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 3.126e-06/0.3511, allocations: 0 / 471.3 MB, free: 73.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.0256/0.3767, allocations: 10.9 MB / 482.2 MB, free: 69.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.806e-05/0.3768, allocations: 198.2 kB / 482.4 MB, free: 69.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004291/0.3811, allocations: 3.596 MB / 486 MB, free: 68.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002353/0.3813, allocations: 40.48 kB / 486.1 MB, free: 68.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.383, allocations: 2.805 MB / 488.9 MB, free: 66.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000642/0.3836, allocations: 0.5039 MB / 489.4 MB, free: 65.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/0.3851, allocations: 1.113 MB / 490.5 MB, free: 65.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.11e-05/0.3852, allocations: 302.2 kB / 490.8 MB, free: 64.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/0.3879, allocations: 1.758 MB / 492.5 MB, free: 64.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004539/0.3925, allocations: 5.366 MB / 497.9 MB, free: 58.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008193/0.4006, allocations: 7.632 MB / 0.4937 GB, free: 52.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002323/0.4009, allocations: 36.34 kB / 0.4937 GB, free: 52.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01253/0.4134, allocations: 7.509 MB / 0.501 GB, free: 49.37 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.188e-05/0.4135, allocations: 62.56 kB / 0.5011 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001529/0.4136, allocations: 127.6 kB / 0.5012 GB, free: 49.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.4154, allocations: 0.6868 MB / 0.5019 GB, free: 49.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003663/0.4191, allocations: 1.261 MB / 0.5031 GB, free: 49.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004151/0.4233, allocations: 3.938 MB / 0.507 GB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004308/0.4276, allocations: 349.9 kB / 0.5073 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006063/0.4282, allocations: 344.5 kB / 0.5076 GB, free: 45.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * 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 (680): * Single equations (assignments): 676 * 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.0027/0.4309, allocations: 1.778 MB / 0.5094 GB, free: 43.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007209/0.4316, allocations: 314.6 kB / 0.5097 GB, free: 43.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003464/0.4351, allocations: 1.958 MB / 0.5116 GB, free: 41.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.4351, allocations: 12 kB / 0.5116 GB, free: 41.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.4351, allocations: 7.938 kB / 0.5116 GB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.4351, allocations: 5.031 kB / 0.5116 GB, free: 41.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007514/0.4426, allocations: 4.709 MB / 0.5162 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.4426, allocations: 0 / 0.5162 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007925/0.4434, allocations: 179.5 kB / 0.5164 GB, free: 37.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/0.4447, allocations: 0.5035 MB / 0.5169 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.4448, allocations: 20 kB / 0.5169 GB, free: 37.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003147/0.448, allocations: 3.331 MB / 0.5201 GB, free: 34.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.448, allocations: 7.969 kB / 0.5202 GB, free: 34.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.4529, allocations: 4.024 MB / 0.5241 GB, free: 30.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001064/0.454, allocations: 289.8 kB / 0.5244 GB, free: 30.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.4543, allocations: 16 kB / 0.5244 GB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4555, allocations: 107.8 kB / 0.5245 GB, free: 29.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.4557, allocations: 60.38 kB / 0.5245 GB, free: 29.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.153e-05/0.4558, allocations: 32 kB / 0.5246 GB, free: 29.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002449/0.4582, allocations: 2.073 MB / 0.5266 GB, free: 27.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4582, allocations: 0 / 0.5266 GB, free: 27.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004914/0.4631, allocations: 0.8863 MB / 0.5275 GB, free: 26.91 MB / 410.7 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.0004317/0.4636, allocations: 150.9 kB / 0.5276 GB, free: 26.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005893/0.4695, allocations: 4.025 MB / 0.5315 GB, free: 22.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.4695, allocations: 0 / 0.5315 GB, free: 22.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.4707, allocations: 1.015 MB / 0.5325 GB, free: 21.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002154/0.4728, allocations: 332.8 kB / 0.5328 GB, free: 21.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/0.4831, allocations: 7.367 MB / 0.54 GB, free: 13.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/0.4855, allocations: 2.173 MB / 0.5422 GB, free: 11.79 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003998/0.4895, allocations: 1.689 MB / 0.5438 GB, free: 10.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.4901, allocations: 196.5 kB / 0.544 GB, free: 9.902 MB / 410.7 MB Notification: Performance of SimCode: time 2.124e-06/0.4901, allocations: 4 kB / 0.544 GB, free: 9.898 MB / 410.7 MB Notification: Performance of Templates: time 0.04957/0.5396, allocations: 23.65 MB / 0.5671 GB, free: 2.699 MB / 426.7 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.48699728900101]