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.001414/0.001414, allocations: 84.73 kB / 21.5 MB, free: 2.992 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.00147/0.00147, allocations: 161.1 kB / 24.91 MB, free: 9.211 MB / 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 0.891/0.891, allocations: 177 MB / 205.2 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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.2419/0.2419, allocations: 34.86 MB / 296.6 MB, free: 0.5273 MB / 266.7 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 2.204e-06/2.204e-06, allocations: 0 / 325.9 MB, free: 7.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.893e-05/2.113e-05, allocations: 3.016 kB / 325.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01033/0.01036, allocations: 8.62 MB / 334.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007216/0.01757, allocations: 3.59 MB / 338.1 MB, free: 10.94 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006722/0.01824, allocations: 55.75 kB / 338.2 MB, free: 10.88 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002829/0.02107, allocations: 2.048 MB / 340.2 MB, free: 8.828 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.02357, allocations: 1.692 MB / 341.9 MB, free: 7.129 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007517/0.02432, allocations: 0.6352 MB / 342.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003565/0.02788, allocations: 4.053 MB / 346.6 MB, free: 2.441 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002233/0.03012, allocations: 2.393 MB / 349 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.032, allocations: 2.265 MB / 351.3 MB, free: 13.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001662/0.03366, allocations: 1.707 MB / 353 MB, free: 12 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002264/0.03388, allocations: 244 kB / 353.2 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.03493, allocations: 1.069 MB / 354.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008812/0.03581, allocations: 1.617 MB / 355.9 MB, free: 9.066 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006717/0.03649, allocations: 0.9695 MB / 356.9 MB, free: 8.094 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00312/0.03961, allocations: 3.877 MB / 360.7 MB, free: 4.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.03961, allocations: 0 / 360.7 MB, free: 4.203 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.03961, allocations: 4 kB / 360.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.294e-05/0.03964, allocations: 3.938 kB / 360.7 MB, free: 4.195 MB / 330.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.003457/0.04309, allocations: 3.579 MB / 364.3 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.04313, allocations: 12.02 kB / 364.3 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002675/0.0458, allocations: 1.004 MB / 365.3 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001874/0.04768, allocations: 1.528 MB / 366.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.309e-05/0.04776, allocations: 176.8 kB / 367 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002696/0.04803, allocations: 236.2 kB / 367.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003293/0.05132, allocations: 3.988 MB / 371.2 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.76e-05/0.05138, allocations: 43.62 kB / 371.3 MB, free: 8.883 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.05157, allocations: 115.9 kB / 371.4 MB, free: 8.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001112/0.05268, allocations: 1.379 MB / 372.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002648/0.05533, allocations: 1.935 MB / 374.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.0702, allocations: 25.89 MB / 400.6 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.07164, allocations: 0.7891 MB / 401.4 MB, free: 9.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.07185, allocations: 183.9 kB / 401.6 MB, free: 9.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002506/0.07436, allocations: 2.239 MB / 403.8 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.07439, allocations: 46.73 kB / 403.9 MB, free: 7.164 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 1.984e-06/0.07439, allocations: 0 / 403.9 MB, free: 7.164 MB / 378.7 MB Notification: Performance of matching and sorting (n=91): time 0.004777/0.07917, allocations: 2.495 MB / 406.4 MB, free: 4.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.07922, allocations: 187.9 kB / 406.5 MB, free: 4.406 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.08133, allocations: 2.975 MB / 409.5 MB, free: 1.414 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.08137, allocations: 41.69 kB / 409.6 MB, free: 1.367 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009997/0.08237, allocations: 2.746 MB / 412.3 MB, free: 14.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.08257, allocations: 417.1 kB / 412.7 MB, free: 14.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007294/0.0833, allocations: 1.06 MB / 413.8 MB, free: 13.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.625e-05/0.08337, allocations: 305.1 kB / 414.1 MB, free: 12.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008104/0.08418, allocations: 0.6314 MB / 414.7 MB, free: 12.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/0.08678, allocations: 4.258 MB / 419 MB, free: 6.016 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003485/0.09026, allocations: 5.342 MB / 424.3 MB, free: 14.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.222e-05/0.0903, allocations: 36 kB / 424.3 MB, free: 14.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.003676/0.09397, allocations: 3.754 MB / 428.1 MB, free: 11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.09402, allocations: 60 kB / 428.1 MB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.171e-05/0.09409, allocations: 136 kB / 428.3 MB, free: 10.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000241/0.09433, allocations: 207.6 kB / 428.5 MB, free: 10.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.09608, allocations: 1.236 MB / 429.7 MB, free: 9.363 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007485/0.09683, allocations: 1.447 MB / 431.2 MB, free: 7.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.09831, allocations: 259.7 kB / 431.4 MB, free: 7.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002224/0.09853, allocations: 312.1 kB / 431.7 MB, free: 7.262 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006541/0.09918, allocations: 0.5873 MB / 432.3 MB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.09938, allocations: 159.8 kB / 432.5 MB, free: 6.504 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004587/0.09984, allocations: 447.4 kB / 432.9 MB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.09985, allocations: 12 kB / 432.9 MB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.09985, allocations: 3.984 kB / 432.9 MB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.09986, allocations: 4 kB / 432.9 MB, free: 6.027 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002809/0.1027, allocations: 2.507 MB / 435.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.1027, allocations: 4.344 kB / 435.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002697/0.1029, allocations: 111.8 kB / 435.5 MB, free: 3.316 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002619/0.1032, allocations: 212.9 kB / 435.7 MB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1032, allocations: 12 kB / 435.8 MB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005202/0.1038, allocations: 1.214 MB / 437 MB, free: 1.777 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1038, allocations: 4 kB / 437 MB, free: 1.773 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.1046, allocations: 1.215 MB / 438.2 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.1048, allocations: 250 kB / 438.4 MB, free: 252 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.105, allocations: 23.94 kB / 438.5 MB, free: 228 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/0.1054, allocations: 23.98 kB / 438.5 MB, free: 204 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.859e-05/0.1054, allocations: 55.89 kB / 438.5 MB, free: 148 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/0.1055, allocations: 27.98 kB / 438.6 MB, free: 120 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007735/0.1063, allocations: 1.053 MB / 439.6 MB, free: 15.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1063, allocations: 0 / 439.6 MB, free: 15.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001886/0.1081, allocations: 0.7773 MB / 440.4 MB, free: 14.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000221/0.1084, allocations: 144 kB / 440.5 MB, free: 14.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.1103, allocations: 2.122 MB / 442.7 MB, free: 12.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001318/0.1104, allocations: 96.97 kB / 442.8 MB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.1107, allocations: 309.1 kB / 443.1 MB, free: 11.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.1117, allocations: 476.4 kB / 443.5 MB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.1171, allocations: 5.625 MB / 449.1 MB, free: 5.406 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.1178, allocations: 0.9587 MB / 450.1 MB, free: 4.422 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008163/0.1186, allocations: 431.2 kB / 450.5 MB, free: 3.996 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004948/0.1191, allocations: 453.2 kB / 451 MB, free: 3.555 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1191, allocations: 4 kB / 451 MB, free: 3.551 MB / 426.7 MB Notification: Performance of Templates: time 0.1457/0.2648, allocations: 20.48 MB / 471.5 MB, free: 116.9 MB / 426.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.65847001131624]