Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.001471/0.001471, allocations: 81.88 kB / 21.42 MB, free: 3.07 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.001505/0.001505, allocations: 169.2 kB / 24.82 MB, free: 8.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.063/1.063, allocations: 177.2 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3262/0.3262, allocations: 32.81 MB / 294.6 MB, free: 1.145 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.705e-06/2.705e-06, allocations: 3.938 kB / 376.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.581e-05/2.851e-05, allocations: 2.312 kB / 376.5 MB, free: 4.367 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009878/0.009907, allocations: 8.497 MB / 385 MB, free: 11.83 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005387/0.01529, allocations: 3.457 MB / 388.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007716/0.01607, allocations: 55.75 kB / 388.5 MB, free: 8.309 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002153/0.01822, allocations: 1.759 MB / 390.2 MB, free: 6.543 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002398/0.02062, allocations: 1.649 MB / 391.9 MB, free: 4.887 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009448/0.02156, allocations: 0.6157 MB / 392.5 MB, free: 4.27 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003069/0.02463, allocations: 3.969 MB / 396.5 MB, free: 296 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001789/0.02642, allocations: 2.142 MB / 398.6 MB, free: 14.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.02824, allocations: 2.179 MB / 400.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.02971, allocations: 1.715 MB / 402.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002847/0.03, allocations: 224 kB / 402.7 MB, free: 9.965 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.03146, allocations: 1.045 MB / 403.8 MB, free: 8.918 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008798/0.03234, allocations: 1.512 MB / 405.3 MB, free: 7.402 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006691/0.03301, allocations: 0.9149 MB / 406.2 MB, free: 6.484 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003059/0.03607, allocations: 3.698 MB / 409.9 MB, free: 2.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.03608, allocations: 0 / 409.9 MB, free: 2.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.03608, allocations: 0 / 409.9 MB, free: 2.773 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.286e-05/0.03614, allocations: 0 / 409.9 MB, free: 2.773 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.004659/0.0408, allocations: 3.907 MB / 413.8 MB, free: 14.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/0.04087, allocations: 8.031 kB / 413.8 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006265/0.04713, allocations: 1.782 MB / 415.6 MB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/0.04923, allocations: 1.59 MB / 417.2 MB, free: 11.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004693/0.0497, allocations: 164.5 kB / 417.3 MB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002774/0.04998, allocations: 220.2 kB / 417.6 MB, free: 11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00402/0.054, allocations: 4.26 MB / 421.8 MB, free: 5.891 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.672e-05/0.05405, allocations: 35.7 kB / 421.9 MB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001812/0.05423, allocations: 111.9 kB / 422 MB, free: 5.746 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001096/0.05533, allocations: 1.34 MB / 423.3 MB, free: 4.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002856/0.05819, allocations: 1.804 MB / 425.1 MB, free: 2.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1922/0.2503, allocations: 34.82 MB / 459.9 MB, free: 65.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.2524, allocations: 0.7675 MB / 460.7 MB, free: 65.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.2528, allocations: 229.6 kB / 460.9 MB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003244/0.256, allocations: 2.369 MB / 463.3 MB, free: 64.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.256, allocations: 42.14 kB / 463.3 MB, free: 64.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.665e-06/0.256, allocations: 3.969 kB / 463.3 MB, free: 64.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.01076/0.2668, allocations: 3.778 MB / 467.1 MB, free: 64.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.2669, allocations: 197 kB / 467.3 MB, free: 63.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003087/0.2699, allocations: 3.164 MB / 470.5 MB, free: 63.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.896e-05/0.27, allocations: 42.14 kB / 470.5 MB, free: 63.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.2713, allocations: 2.902 MB / 473.4 MB, free: 61.66 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.2717, allocations: 470.8 kB / 473.9 MB, free: 61.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.2727, allocations: 1.183 MB / 475.1 MB, free: 61.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.388e-05/0.2728, allocations: 476.8 kB / 475.5 MB, free: 60.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007933/0.2736, allocations: 455.2 kB / 476 MB, free: 60.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/0.276, allocations: 5.652 MB / 481.6 MB, free: 53.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.2797, allocations: 6.627 MB / 488.2 MB, free: 46.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.484e-05/0.2797, allocations: 36.03 kB / 488.3 MB, free: 46.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.004962/0.2847, allocations: 4.186 MB / 492.5 MB, free: 44.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.837e-05/0.2848, allocations: 57.06 kB / 492.5 MB, free: 44.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.2849, allocations: 123 kB / 492.6 MB, free: 44.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.2852, allocations: 198.2 kB / 492.8 MB, free: 44.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.2874, allocations: 1.178 MB / 494 MB, free: 44.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008637/0.2883, allocations: 1.972 MB / 496 MB, free: 42.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.2903, allocations: 247.9 kB / 496.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/0.2905, allocations: 287.8 kB / 496.5 MB, free: 42.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 560 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (656): * Single equations (assignments): 652 * 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.0008781/0.2914, allocations: 0.5933 MB / 497.1 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.2917, allocations: 297.7 kB / 497.4 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006207/0.2923, allocations: 0.5611 MB / 497.9 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.2923, allocations: 11.25 kB / 498 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.2923, allocations: 6.375 kB / 498 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.2923, allocations: 4.266 kB / 498 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003695/0.296, allocations: 3.081 MB / 0.4893 GB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.296, allocations: 3.719 kB / 0.4893 GB, free: 40.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.2964, allocations: 134.7 kB / 0.4894 GB, free: 40.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001449/0.2965, allocations: 45.45 kB / 0.4895 GB, free: 40 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.2966, allocations: 20.66 kB / 0.4895 GB, free: 39.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005861/0.2971, allocations: 1.734 MB / 0.4912 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.2971, allocations: 3.688 kB / 0.4912 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.2984, allocations: 1.51 MB / 0.4927 GB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002583/0.2986, allocations: 260.9 kB / 0.4929 GB, free: 37.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.2988, allocations: 19.12 kB / 0.4929 GB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004315/0.2992, allocations: 18.47 kB / 0.493 GB, free: 37.06 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-05/0.2993, allocations: 66.94 kB / 0.493 GB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.2993, allocations: 31.2 kB / 0.4931 GB, free: 37.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001086/0.3004, allocations: 1.253 MB / 0.4943 GB, free: 36.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3004, allocations: 0 / 0.4943 GB, free: 36.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002489/0.3029, allocations: 0.7628 MB / 0.495 GB, free: 36.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (rev.w,damper.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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.0002511/0.3032, allocations: 157.7 kB / 0.4952 GB, free: 36.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.3058, allocations: 2.266 MB / 0.4974 GB, free: 35.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3058, allocations: 0 / 0.4974 GB, free: 35.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.3062, allocations: 443.1 kB / 0.4978 GB, free: 35.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3072, allocations: 326.5 kB / 0.4981 GB, free: 35.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007747/0.3149, allocations: 5.511 MB / 0.5035 GB, free: 32.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000812/0.3157, allocations: 0.9297 MB / 0.5044 GB, free: 32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001088/0.3168, allocations: 413.8 kB / 0.5048 GB, free: 31.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.3174, allocations: 485.9 kB / 0.5053 GB, free: 31.8 MB / 410.7 MB Notification: Performance of SimCode: time 2.073e-06/0.3174, allocations: 0 / 0.5053 GB, free: 31.8 MB / 410.7 MB Notification: Performance of Templates: time 0.03394/0.3513, allocations: 21.26 MB / 0.526 GB, free: 17.94 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.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.2710498459637165]