Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00124/0.00124, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001495/0.001495, allocations: 215.5 kB / 24.48 MB, free: 3.938 MB / 14.72 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.44/1.44, allocations: 230.6 MB / 258.2 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2239/0.2239, allocations: 46.97 MB / 361.6 MB, free: 4.004 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 71.91 kB / 0.4973 GB, free: 7.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3014, allocations: 66.03 MB / 0.5618 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01054/0.312, allocations: 7.924 MB / 0.5696 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007687/0.3197, allocations: 3.361 MB / 0.5728 GB, free: 8.809 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.3208, allocations: 55.75 kB / 0.5729 GB, free: 8.754 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003321/0.3241, allocations: 1.623 MB / 0.5745 GB, free: 7.125 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003831/0.328, allocations: 1.592 MB / 0.576 GB, free: 5.527 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.3292, allocations: 0.5614 MB / 0.5766 GB, free: 4.965 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004894/0.3341, allocations: 3.576 MB / 0.5801 GB, free: 1.383 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002297/0.3364, allocations: 1.831 MB / 0.5819 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001575/0.338, allocations: 1.113 MB / 0.5829 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002163/0.3402, allocations: 1.67 MB / 0.5846 GB, free: 12.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004086/0.3406, allocations: 219.9 kB / 0.5848 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001759/0.3423, allocations: 1.01 MB / 0.5858 GB, free: 11.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.3437, allocations: 1.445 MB / 0.5872 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.345, allocations: 1.18 MB / 0.5883 GB, free: 8.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006556/0.3516, allocations: 5.428 MB / 0.5936 GB, free: 3.391 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.3516, allocations: 0 / 0.5936 GB, free: 3.391 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3516, allocations: 0 / 0.5936 GB, free: 3.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001255/0.3517, allocations: 0 / 0.5936 GB, free: 3.391 MB / 430.1 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.008122/0.3598, allocations: 3.681 MB / 0.5972 GB, free: 15.65 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.3599, allocations: 12.03 kB / 0.5972 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01559/0.3755, allocations: 2.343 MB / 0.5995 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005936/0.3814, allocations: 2.134 MB / 0.6016 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.3816, allocations: 160.5 kB / 0.6018 GB, free: 10.96 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007537/0.3823, allocations: 223.9 kB / 0.602 GB, free: 10.74 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/0.3956, allocations: 7.448 MB / 0.6093 GB, free: 2.656 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.3957, allocations: 35.7 kB / 0.6093 GB, free: 2.621 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003289/0.396, allocations: 107.9 kB / 0.6094 GB, free: 2.516 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002753/0.3988, allocations: 1.546 MB / 0.6109 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01212/0.4109, allocations: 6.295 MB / 0.617 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03622/0.4471, allocations: 28.4 MB / 0.6448 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004543/0.4516, allocations: 1.688 MB / 0.6464 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.4533, allocations: 1.055 MB / 0.6475 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/0.4536, allocations: 88.25 kB / 0.6475 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.4536, allocations: 43 kB / 0.6476 GB, free: 10.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.477e-06/0.4536, allocations: 4 kB / 0.6476 GB, free: 10.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03825/0.4919, allocations: 11.79 MB / 0.6591 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.492, allocations: 200.5 kB / 0.6593 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004851/0.4969, allocations: 3.359 MB / 0.6626 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002329/0.4971, allocations: 49.69 kB / 0.6626 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00246/0.4995, allocations: 2.673 MB / 0.6652 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006543/0.5002, allocations: 0.5506 MB / 0.6658 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001527/0.5017, allocations: 1.095 MB / 0.6668 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5019, allocations: 309.1 kB / 0.6671 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003036/0.5049, allocations: 1.736 MB / 0.6688 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006092/0.511, allocations: 5.138 MB / 0.6738 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009851/0.5208, allocations: 7.356 MB / 0.681 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.819e-05/0.5209, allocations: 36 kB / 0.6811 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01349/0.5344, allocations: 7.028 MB / 0.6879 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.745e-05/0.5345, allocations: 60.06 kB / 0.688 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/0.5347, allocations: 119.9 kB / 0.6881 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.5363, allocations: 0.6369 MB / 0.6887 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/0.5401, allocations: 1.22 MB / 0.6899 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005265/0.5454, allocations: 3.898 MB / 0.6937 GB, free: 7.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.549, allocations: 299.5 kB / 0.694 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005676/0.5496, allocations: 332 kB / 0.6943 GB, free: 6.895 MB / 0.5294 GB 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.002636/0.5522, allocations: 1.701 MB / 0.696 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005588/0.5528, allocations: 282.5 kB / 0.6962 GB, free: 4.902 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004168/0.5569, allocations: 2.049 MB / 0.6983 GB, free: 2.836 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.093e-05/0.557, allocations: 16 kB / 0.6983 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.557, allocations: 4 kB / 0.6983 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.557, allocations: 15.91 kB / 0.6983 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.5673, allocations: 4.779 MB / 0.703 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.5673, allocations: 0 / 0.703 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.5684, allocations: 199.7 kB / 0.7031 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00146/0.5699, allocations: 484.2 kB / 0.7036 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.57, allocations: 28.06 kB / 0.7036 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/0.5745, allocations: 3.291 MB / 0.7068 GB, free: 9.875 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.5745, allocations: 4.031 kB / 0.7068 GB, free: 9.871 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006805/0.5813, allocations: 4.144 MB / 0.7109 GB, free: 5.695 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007751/0.5821, allocations: 250 kB / 0.7111 GB, free: 5.449 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.5824, allocations: 24.41 kB / 0.7112 GB, free: 5.426 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.5835, allocations: 75.89 kB / 0.7112 GB, free: 5.352 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/0.5837, allocations: 80.39 kB / 0.7113 GB, free: 5.273 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5838, allocations: 35.94 kB / 0.7113 GB, free: 5.238 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003081/0.5869, allocations: 1.937 MB / 0.7132 GB, free: 3.301 MB / 0.545 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5869, allocations: 0 / 0.7132 GB, free: 3.301 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003981/0.5909, allocations: 0.7812 MB / 0.714 GB, free: 2.52 MB / 0.545 GB 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.0004114/0.5913, allocations: 147 kB / 0.7141 GB, free: 2.363 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006895/0.5982, allocations: 3.976 MB / 0.718 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.5982, allocations: 0 / 0.718 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.5999, allocations: 1.054 MB / 0.719 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.6018, allocations: 316.1 kB / 0.7193 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.6142, allocations: 7.194 MB / 0.7264 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002918/0.6171, allocations: 2.08 MB / 0.7284 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003831/0.6209, allocations: 1.661 MB / 0.73 GB, free: 2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005685/0.6215, allocations: 191.4 kB / 0.7302 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of SimCode: time 1.603e-06/0.6215, allocations: 0 / 0.7302 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of Templates: time 0.2701/0.8916, allocations: 28.14 MB / 0.7577 GB, free: 138.8 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.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.394568806004827]