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.0009435/0.0009435, 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.0009222/0.0009222, allocations: 163.6 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.9906/0.9906, allocations: 177.1 MB / 205.3 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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.2762/0.2762, allocations: 34.26 MB / 296 MB, free: 0.7734 MB / 266.7 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 1.232e-06/1.232e-06, allocations: 0 / 378 MB, free: 2.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.649e-05/1.772e-05, allocations: 2.312 kB / 378 MB, free: 2.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007401/0.007419, allocations: 8.666 MB / 386.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005085/0.0125, allocations: 3.477 MB / 390.1 MB, free: 6.781 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005403/0.01304, allocations: 55.75 kB / 390.2 MB, free: 6.727 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.01492, allocations: 1.783 MB / 392 MB, free: 4.938 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001992/0.01691, allocations: 1.633 MB / 393.6 MB, free: 3.297 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007297/0.01764, allocations: 0.6274 MB / 394.2 MB, free: 2.668 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002862/0.0205, allocations: 3.957 MB / 398.2 MB, free: 14.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.02192, allocations: 2.141 MB / 400.3 MB, free: 12.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001207/0.02312, allocations: 1.688 MB / 402 MB, free: 10.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.02445, allocations: 1.726 MB / 403.8 MB, free: 9.082 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.02466, allocations: 224 kB / 404 MB, free: 8.863 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.02593, allocations: 1.049 MB / 405 MB, free: 7.812 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008237/0.02676, allocations: 1.511 MB / 406.5 MB, free: 6.297 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000646/0.0274, allocations: 0.9149 MB / 407.5 MB, free: 5.379 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002676/0.03008, allocations: 3.694 MB / 411.1 MB, free: 1.672 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.03008, allocations: 4 kB / 411.2 MB, free: 1.668 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.03008, allocations: 0 / 411.2 MB, free: 1.668 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.03011, allocations: 0 / 411.2 MB, free: 1.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.004406/0.03452, allocations: 4.016 MB / 415.2 MB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.03455, allocations: 12.03 kB / 415.2 MB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007712/0.04226, allocations: 2.733 MB / 417.9 MB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002531/0.04479, allocations: 1.949 MB / 419.9 MB, free: 8.852 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.833e-05/0.04487, allocations: 164.5 kB / 420 MB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002657/0.04514, allocations: 216.2 kB / 420.2 MB, free: 8.477 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004507/0.04964, allocations: 4.613 MB / 424.8 MB, free: 3.012 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.651e-05/0.04971, allocations: 35.7 kB / 424.9 MB, free: 2.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003932/0.0501, allocations: 107.8 kB / 425 MB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001446/0.05155, allocations: 1.546 MB / 426.5 MB, free: 1.324 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003971/0.05552, allocations: 2.346 MB / 428.9 MB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.177/0.2325, allocations: 34.85 MB / 463.7 MB, free: 69.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002431/0.2349, allocations: 0.9388 MB / 464.7 MB, free: 69.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00051/0.2355, allocations: 366.6 kB / 465 MB, free: 69.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000211/0.2357, allocations: 95.48 kB / 465.1 MB, free: 69.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.2357, allocations: 51.56 kB / 465.2 MB, free: 69.54 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 3.737e-06/0.2357, allocations: 0 / 465.2 MB, free: 69.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=132): time 0.01556/0.2513, allocations: 8.456 MB / 473.6 MB, free: 67.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.2513, allocations: 190.3 kB / 473.8 MB, free: 66.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.2538, allocations: 3.105 MB / 476.9 MB, free: 65.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.2539, allocations: 41.05 kB / 477 MB, free: 65.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009783/0.2549, allocations: 2.817 MB / 479.8 MB, free: 63.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.2552, allocations: 0.5682 MB / 480.3 MB, free: 63.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008312/0.256, allocations: 1.172 MB / 481.5 MB, free: 62.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.055e-05/0.2561, allocations: 480.7 kB / 482 MB, free: 61.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008751/0.257, allocations: 0.578 MB / 482.6 MB, free: 61.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.2594, allocations: 5.589 MB / 488.1 MB, free: 55.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004064/0.2634, allocations: 6.741 MB / 494.9 MB, free: 47.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.78e-05/0.2635, allocations: 33.28 kB / 494.9 MB, free: 47.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.006202/0.2697, allocations: 4.872 MB / 499.8 MB, free: 45.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.036e-05/0.2698, allocations: 59.59 kB / 499.9 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001478/0.2699, allocations: 117.9 kB / 500 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.271, allocations: 454.6 kB / 0.4887 GB, free: 45.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/0.2734, allocations: 1.216 MB / 0.4899 GB, free: 45.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.2758, allocations: 2.903 MB / 0.4927 GB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002422/0.2782, allocations: 332.8 kB / 0.493 GB, free: 43.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004224/0.2786, allocations: 328.1 kB / 0.4933 GB, free: 43.05 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.001152/0.2798, allocations: 0.5968 MB / 0.4939 GB, free: 42.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.2802, allocations: 306.4 kB / 0.4942 GB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.282, allocations: 1.133 MB / 0.4953 GB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/0.282, allocations: 19.02 kB / 0.4953 GB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.282, allocations: 2.75 kB / 0.4953 GB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.2821, allocations: 7.891 kB / 0.4953 GB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005543/0.2876, allocations: 3.987 MB / 0.4992 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.2876, allocations: 3.125 kB / 0.4992 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.2881, allocations: 195.6 kB / 0.4994 GB, free: 40.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007065/0.2888, allocations: 289.5 kB / 0.4997 GB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-05/0.2889, allocations: 26.19 kB / 0.4997 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.2904, allocations: 2.293 MB / 0.502 GB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2904, allocations: 0 / 0.502 GB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00228/0.2926, allocations: 2.14 MB / 0.5041 GB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.2929, allocations: 266.2 kB / 0.5043 GB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/0.2931, allocations: 21.92 kB / 0.5043 GB, free: 37.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006035/0.2937, allocations: 100.9 kB / 0.5044 GB, free: 37.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.2939, allocations: 80.94 kB / 0.5045 GB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.2939, allocations: 33.19 kB / 0.5045 GB, free: 37.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00123/0.2951, allocations: 1.323 MB / 0.5058 GB, free: 36.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2951, allocations: 0 / 0.5058 GB, free: 36.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002722/0.2979, allocations: 0.8609 MB / 0.5067 GB, free: 36.46 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.0003012/0.2982, allocations: 166.5 kB / 0.5068 GB, free: 36.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00307/0.3012, allocations: 2.615 MB / 0.5094 GB, free: 34.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3012, allocations: 4.188 kB / 0.5094 GB, free: 34.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005894/0.3018, allocations: 0.6232 MB / 0.51 GB, free: 34.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.3029, allocations: 324.7 kB / 0.5103 GB, free: 33.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006099/0.309, allocations: 5.687 MB / 0.5159 GB, free: 28.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008855/0.3098, allocations: 0.9469 MB / 0.5168 GB, free: 27.88 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002129/0.312, allocations: 1.437 MB / 0.5182 GB, free: 27.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.3123, allocations: 198.3 kB / 0.5184 GB, free: 26.88 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3123, allocations: 0 / 0.5184 GB, free: 26.88 MB / 410.7 MB Notification: Performance of Templates: time 0.03113/0.3435, allocations: 23.96 MB / 0.5418 GB, free: 5.203 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.130883637117222]