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.0009682/0.0009682, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.007256/0.007256, allocations: 167.3 kB / 24.99 MB, free: 8.746 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 0.9553/0.9553, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2494/0.2494, allocations: 32.8 MB / 294.6 MB, free: 1.215 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 1.923e-06/1.923e-06, allocations: 0 / 376 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.695e-05, allocations: 6.312 kB / 376 MB, free: 4.98 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007942/0.007969, allocations: 8.675 MB / 384.7 MB, free: 12.26 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005967/0.01394, allocations: 3.465 MB / 388.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.015, allocations: 55.75 kB / 388.2 MB, free: 8.73 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002605/0.01761, allocations: 1.783 MB / 390 MB, free: 6.941 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002935/0.02054, allocations: 1.645 MB / 391.6 MB, free: 5.289 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.02158, allocations: 0.6157 MB / 392.2 MB, free: 4.672 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004183/0.02576, allocations: 3.957 MB / 396.2 MB, free: 0.707 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/0.02813, allocations: 2.141 MB / 398.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002213/0.03034, allocations: 1.684 MB / 400 MB, free: 12.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002063/0.03241, allocations: 1.73 MB / 401.7 MB, free: 11.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003902/0.0328, allocations: 228 kB / 402 MB, free: 10.86 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.03423, allocations: 1.045 MB / 403 MB, free: 9.816 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.03548, allocations: 1.515 MB / 404.5 MB, free: 8.297 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009813/0.03646, allocations: 0.9149 MB / 405.4 MB, free: 7.379 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003661/0.04012, allocations: 3.698 MB / 409.1 MB, free: 3.668 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.04013, allocations: 0 / 409.1 MB, free: 3.668 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.04013, allocations: 0 / 409.1 MB, free: 3.668 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.699e-05/0.04017, allocations: 0 / 409.1 MB, free: 3.668 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.005354/0.04553, allocations: 4.021 MB / 413.2 MB, free: 15.58 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.04557, allocations: 8.031 kB / 413.2 MB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/0.05599, allocations: 2.721 MB / 415.9 MB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.05907, allocations: 1.961 MB / 417.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.05918, allocations: 160.5 kB / 418 MB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.05952, allocations: 224.1 kB / 418.2 MB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00586/0.06538, allocations: 4.605 MB / 422.8 MB, free: 5.016 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.117e-05/0.06545, allocations: 39.69 kB / 422.9 MB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002581/0.06571, allocations: 111.9 kB / 423 MB, free: 4.867 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001969/0.06768, allocations: 1.538 MB / 424.5 MB, free: 3.328 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004964/0.07264, allocations: 2.346 MB / 426.9 MB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1828/0.2555, allocations: 34.85 MB / 461.7 MB, free: 71.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001937/0.2574, allocations: 0.943 MB / 462.7 MB, free: 71.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/0.2578, allocations: 365.2 kB / 463 MB, free: 71.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.258, allocations: 90.8 kB / 463.1 MB, free: 71.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.258, allocations: 49.52 kB / 463.1 MB, free: 71.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 2.986e-06/0.258, allocations: 0 / 463.1 MB, free: 71.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.01473/0.2727, allocations: 8.46 MB / 471.6 MB, free: 69.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.2728, allocations: 193.3 kB / 471.8 MB, free: 68.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/0.275, allocations: 3.105 MB / 474.9 MB, free: 67.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.08e-05/0.2751, allocations: 47.62 kB / 474.9 MB, free: 67.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008874/0.2759, allocations: 2.805 MB / 477.7 MB, free: 65.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002965/0.2762, allocations: 0.5647 MB / 478.3 MB, free: 65.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008052/0.2771, allocations: 1.167 MB / 479.5 MB, free: 64.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.115e-05/0.2771, allocations: 480.2 kB / 480 MB, free: 64.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000856/0.2779, allocations: 0.5741 MB / 480.5 MB, free: 63.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.2801, allocations: 5.595 MB / 486.1 MB, free: 57.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003592/0.2837, allocations: 6.734 MB / 492.9 MB, free: 49.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.38e-05/0.2837, allocations: 39.78 kB / 492.9 MB, free: 49.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.005438/0.2891, allocations: 4.881 MB / 497.8 MB, free: 47.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.62e-05/0.2892, allocations: 54.97 kB / 497.8 MB, free: 47.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.2893, allocations: 120 kB / 497.9 MB, free: 47.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009609/0.2903, allocations: 459 kB / 498.4 MB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002276/0.2926, allocations: 1.211 MB / 499.6 MB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.2948, allocations: 2.91 MB / 0.4907 GB, free: 45.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/0.2967, allocations: 324.2 kB / 0.491 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003424/0.297, allocations: 336.4 kB / 0.4914 GB, free: 45.19 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * 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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007851/0.2978, allocations: 0.5969 MB / 0.4919 GB, free: 44.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.2981, allocations: 310.8 kB / 0.4922 GB, free: 44.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.2998, allocations: 1.129 MB / 0.4933 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.002e-05/0.2998, allocations: 15.38 kB / 0.4934 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.2998, allocations: 6.5 kB / 0.4934 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2998, allocations: 5.344 kB / 0.4934 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004693/0.3045, allocations: 3.99 MB / 0.4973 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3045, allocations: 2.188 kB / 0.4973 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.305, allocations: 196.8 kB / 0.4975 GB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006445/0.3056, allocations: 285.4 kB / 0.4977 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.673e-05/0.3057, allocations: 27.12 kB / 0.4978 GB, free: 42.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.307, allocations: 2.291 MB / 0.5 GB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.307, allocations: 3.938 kB / 0.5 GB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/0.3091, allocations: 2.133 MB / 0.5021 GB, free: 39.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.3093, allocations: 275.5 kB / 0.5023 GB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.3095, allocations: 19.44 kB / 0.5024 GB, free: 39.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.3101, allocations: 100.5 kB / 0.5025 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.3103, allocations: 73.17 kB / 0.5025 GB, free: 39.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.023e-05/0.3103, allocations: 35.69 kB / 0.5026 GB, free: 39.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001164/0.3115, allocations: 1.327 MB / 0.5039 GB, free: 38.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3115, allocations: 0 / 0.5039 GB, free: 38.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00228/0.3137, allocations: 0.8641 MB / 0.5047 GB, free: 38.59 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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.000282/0.314, allocations: 172.8 kB / 0.5049 GB, free: 38.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002964/0.317, allocations: 2.62 MB / 0.5074 GB, free: 37.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.317, allocations: 3.938 kB / 0.5074 GB, free: 37.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.3176, allocations: 0.618 MB / 0.508 GB, free: 36.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.3187, allocations: 317.7 kB / 0.5083 GB, free: 36.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.3244, allocations: 5.693 MB / 0.5139 GB, free: 31.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008187/0.3253, allocations: 0.9463 MB / 0.5148 GB, free: 30.36 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002158/0.3274, allocations: 1.433 MB / 0.5162 GB, free: 29.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.3278, allocations: 194.3 kB / 0.5164 GB, free: 29.37 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3278, allocations: 0 / 0.5164 GB, free: 29.37 MB / 410.7 MB Notification: Performance of Templates: time 0.03075/0.3585, allocations: 23.95 MB / 0.5398 GB, free: 7.828 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.130295316921547]