Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 82.64 kB / 21.44 MB, free: 3.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 166.8 kB / 24.84 MB, free: 9.297 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9043/0.9043, allocations: 158.6 MB / 186.7 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1345/0.1345, allocations: 32.37 MB / 271.5 MB, free: 14.53 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 348.9 MB, free: 9.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.19e-05/1.306e-05, allocations: 4.281 kB / 348.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.005992/0.006005, allocations: 9.487 MB / 358.4 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005524/0.01153, allocations: 3.61 MB / 362 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007585/0.01229, allocations: 59.75 kB / 362.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002134/0.01442, allocations: 2.067 MB / 364.1 MB, free: 9.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002468/0.01689, allocations: 1.866 MB / 366 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.01799, allocations: 0.6197 MB / 366.6 MB, free: 7.398 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002853/0.02084, allocations: 4.111 MB / 370.7 MB, free: 3.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.02257, allocations: 2.487 MB / 373.2 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.02466, allocations: 2.284 MB / 375.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.02621, allocations: 1.995 MB / 377.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.02647, allocations: 284 kB / 377.8 MB, free: 12.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001076/0.02754, allocations: 1.108 MB / 378.9 MB, free: 11.06 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009807/0.02853, allocations: 1.812 MB / 380.7 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.02956, allocations: 1.102 MB / 381.8 MB, free: 8.137 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.03253, allocations: 4.324 MB / 386.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.03253, allocations: 0 / 386.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.03253, allocations: 0 / 386.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.822e-05/0.03256, allocations: 4 kB / 386.1 MB, free: 3.793 MB / 314.7 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.004441/0.037, allocations: 4.481 MB / 390.6 MB, free: 15.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.03703, allocations: 8.031 kB / 390.6 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006791/0.04383, allocations: 1.953 MB / 392.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/0.04576, allocations: 1.781 MB / 394.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.04586, allocations: 193.3 kB / 394.5 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000296/0.04616, allocations: 256.2 kB / 394.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004729/0.05089, allocations: 4.865 MB / 399.6 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-05/0.05096, allocations: 47.61 kB / 399.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002335/0.05119, allocations: 127.9 kB / 399.8 MB, free: 5.094 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001364/0.05256, allocations: 1.61 MB / 401.4 MB, free: 3.484 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003265/0.05582, allocations: 2.134 MB / 403.6 MB, free: 1.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02336/0.07918, allocations: 38.6 MB / 442.2 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.08088, allocations: 0.806 MB / 443 MB, free: 8.551 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002738/0.08116, allocations: 256 kB / 443.2 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002949/0.08411, allocations: 2.546 MB / 445.8 MB, free: 5.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.08414, allocations: 53.27 kB / 445.8 MB, free: 5.648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=91): time 4.468e-06/0.08414, allocations: 4 kB / 445.8 MB, free: 5.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=100): time 0.005982/0.09012, allocations: 2.899 MB / 448.7 MB, free: 2.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.09019, allocations: 195.9 kB / 448.9 MB, free: 2.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1578/0.2479, allocations: 3.519 MB / 452.4 MB, free: 98.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001841/0.2481, allocations: 40.27 kB / 452.5 MB, free: 98.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00156/0.2497, allocations: 3.368 MB / 455.8 MB, free: 97.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004496/0.2501, allocations: 483.2 kB / 456.3 MB, free: 96.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/0.2514, allocations: 1.327 MB / 457.6 MB, free: 96.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.671e-05/0.2515, allocations: 478.8 kB / 458.1 MB, free: 96.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.2525, allocations: 496.4 kB / 458.6 MB, free: 96.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002977/0.2555, allocations: 6.465 MB / 465 MB, free: 88.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004731/0.2602, allocations: 7.576 MB / 472.6 MB, free: 80.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/0.2604, allocations: 40.47 kB / 472.7 MB, free: 80.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.006618/0.267, allocations: 4.713 MB / 477.4 MB, free: 79.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.734e-05/0.2671, allocations: 65.12 kB / 477.4 MB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001549/0.2672, allocations: 143.1 kB / 477.6 MB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00042/0.2676, allocations: 229.4 kB / 477.8 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.2698, allocations: 1.333 MB / 479.1 MB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009562/0.2708, allocations: 1.997 MB / 481.1 MB, free: 77.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00328/0.2741, allocations: 276.3 kB / 481.4 MB, free: 77.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/0.2744, allocations: 330 kB / 481.7 MB, free: 76.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * 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 (741): * Single equations (assignments): 737 * 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.00118/0.2756, allocations: 0.6628 MB / 482.4 MB, free: 76.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004302/0.276, allocations: 327.5 kB / 482.7 MB, free: 75.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00078/0.2768, allocations: 0.5544 MB / 483.3 MB, free: 75.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.077e-05/0.2768, allocations: 12 kB / 483.3 MB, free: 75.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.2768, allocations: 0 / 483.3 MB, free: 75.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.2768, allocations: 7.875 kB / 483.3 MB, free: 75.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/0.281, allocations: 3.336 MB / 486.6 MB, free: 72.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.281, allocations: 7.828 kB / 486.6 MB, free: 72.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.2814, allocations: 130.3 kB / 486.8 MB, free: 72.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001445/0.2815, allocations: 43.42 kB / 486.8 MB, free: 72.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.2816, allocations: 20 kB / 486.8 MB, free: 72.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005432/0.2821, allocations: 1.735 MB / 488.6 MB, free: 70.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2821, allocations: 12.06 kB / 488.6 MB, free: 70.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.2834, allocations: 1.516 MB / 490.1 MB, free: 69.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006578/0.284, allocations: 364.5 kB / 490.4 MB, free: 68.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.2842, allocations: 16 kB / 490.5 MB, free: 68.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00054/0.2848, allocations: 27.55 kB / 490.5 MB, free: 68.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-05/0.2848, allocations: 62.23 kB / 490.5 MB, free: 68.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.2849, allocations: 34.69 kB / 490.6 MB, free: 68.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001116/0.286, allocations: 1.383 MB / 492 MB, free: 67.76 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.286, allocations: 0 / 492 MB, free: 67.76 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003907/0.2899, allocations: 0.8706 MB / 492.8 MB, free: 66.89 MB / 378.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 (79): * Single equations (assignments): 75 * 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.0003112/0.2902, allocations: 158.6 kB / 493 MB, free: 66.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003183/0.2934, allocations: 2.497 MB / 495.5 MB, free: 64.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.2934, allocations: 4 kB / 495.5 MB, free: 64.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003917/0.2938, allocations: 434.2 kB / 495.9 MB, free: 64.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.2953, allocations: 321.8 kB / 496.2 MB, free: 63.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008324/0.3037, allocations: 6.277 MB / 0.4907 GB, free: 57.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001025/0.3047, allocations: 1.074 MB / 0.4918 GB, free: 56.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001493/0.3062, allocations: 472.4 kB / 0.4922 GB, free: 56.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006617/0.3069, allocations: 0.502 MB / 0.4927 GB, free: 55.73 MB / 378.7 MB Notification: Performance of SimCode: time 2.053e-06/0.3069, allocations: 0 / 0.4927 GB, free: 55.73 MB / 378.7 MB Notification: Performance of Templates: time 0.0404/0.3473, allocations: 22.43 MB / 0.5146 GB, free: 33.45 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.112663856241852]