Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 166.1 kB / 24.82 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9852/0.9852, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2903/0.2903, allocations: 34.87 MB / 296.6 MB, free: 0.4922 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 379.2 MB, free: 1.855 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.848e-05/3.025e-05, allocations: 4.703 kB / 379.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007727/0.007757, allocations: 8.495 MB / 387.7 MB, free: 9.312 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005932/0.01369, allocations: 3.453 MB / 391.2 MB, free: 5.848 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001077/0.01477, allocations: 59.69 kB / 391.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.01685, allocations: 1.756 MB / 393 MB, free: 4.027 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002975/0.01983, allocations: 1.641 MB / 394.6 MB, free: 2.379 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009372/0.02076, allocations: 0.6273 MB / 395.3 MB, free: 1.75 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003708/0.02447, allocations: 3.969 MB / 399.2 MB, free: 13.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002497/0.02697, allocations: 2.138 MB / 401.4 MB, free: 11.58 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003096/0.03006, allocations: 2.183 MB / 403.5 MB, free: 9.395 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.03222, allocations: 1.711 MB / 405.3 MB, free: 7.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003904/0.03261, allocations: 228 kB / 405.5 MB, free: 7.457 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001344/0.03395, allocations: 1.045 MB / 406.5 MB, free: 6.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001086/0.03504, allocations: 1.511 MB / 408 MB, free: 4.895 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009598/0.036, allocations: 0.9072 MB / 408.9 MB, free: 3.984 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003795/0.03979, allocations: 3.702 MB / 412.6 MB, free: 276 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.0398, allocations: 4 kB / 412.6 MB, free: 272 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.0398, allocations: 0 / 412.6 MB, free: 272 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.915e-05/0.03988, allocations: 0 / 412.6 MB, free: 272 kB / 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.00507/0.04495, allocations: 3.911 MB / 416.6 MB, free: 12.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.04499, allocations: 11.97 kB / 416.6 MB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006392/0.05138, allocations: 1.782 MB / 418.3 MB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.05388, allocations: 1.582 MB / 419.9 MB, free: 8.875 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.469e-05/0.05396, allocations: 168.5 kB / 420.1 MB, free: 8.707 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000285/0.05425, allocations: 216.2 kB / 420.3 MB, free: 8.496 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004535/0.05878, allocations: 4.26 MB / 424.6 MB, free: 3.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.427e-05/0.05884, allocations: 43.62 kB / 424.6 MB, free: 3.336 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000178/0.05902, allocations: 107.9 kB / 424.7 MB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001062/0.06008, allocations: 1.34 MB / 426.1 MB, free: 1.891 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003573/0.06366, allocations: 1.812 MB / 427.9 MB, free: 60 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1967/0.2604, allocations: 34.81 MB / 462.7 MB, free: 63.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.262, allocations: 0.769 MB / 463.4 MB, free: 63.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.2623, allocations: 231.2 kB / 463.7 MB, free: 63.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002797/0.2651, allocations: 2.367 MB / 466 MB, free: 62.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.2651, allocations: 42.27 kB / 466.1 MB, free: 62.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.194e-06/0.2651, allocations: 2.75 kB / 466.1 MB, free: 62.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=101): time 0.008083/0.2732, allocations: 3.783 MB / 469.9 MB, free: 61.44 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.2732, allocations: 202.8 kB / 470.1 MB, free: 61.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002358/0.2756, allocations: 3.157 MB / 473.2 MB, free: 60.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.792e-05/0.2756, allocations: 36.36 kB / 473.3 MB, free: 60.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009505/0.2766, allocations: 2.903 MB / 476.2 MB, free: 59.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002689/0.2769, allocations: 474.1 kB / 476.6 MB, free: 58.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008012/0.2777, allocations: 1.179 MB / 477.8 MB, free: 58.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.2777, allocations: 476.8 kB / 478.3 MB, free: 57.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006136/0.2783, allocations: 458.5 kB / 478.7 MB, free: 57.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001913/0.2802, allocations: 5.657 MB / 484.4 MB, free: 50.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003204/0.2834, allocations: 6.626 MB / 491 MB, free: 43.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.871e-05/0.2835, allocations: 33.97 kB / 491 MB, free: 43.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=681) (initialization): time 0.00381/0.2873, allocations: 4.183 MB / 495.2 MB, free: 41.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.2873, allocations: 57.59 kB / 495.3 MB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-05/0.2874, allocations: 128 kB / 495.4 MB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002722/0.2877, allocations: 195 kB / 495.6 MB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.2893, allocations: 1.177 MB / 496.8 MB, free: 41.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006964/0.29, allocations: 1.962 MB / 498.7 MB, free: 39.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.2919, allocations: 244.2 kB / 499 MB, free: 39.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/0.2922, allocations: 291.3 kB / 499.2 MB, free: 39.77 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.0007692/0.2929, allocations: 0.6014 MB / 499.8 MB, free: 39.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002981/0.2932, allocations: 297.2 kB / 0.4884 GB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006571/0.2939, allocations: 0.5535 MB / 0.489 GB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.2939, allocations: 16.2 kB / 0.489 GB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.2939, allocations: 0.9688 kB / 0.489 GB, free: 38.88 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2939, allocations: 8.297 kB / 0.489 GB, free: 38.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004067/0.298, allocations: 3.084 MB / 0.492 GB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.298, allocations: 3.312 kB / 0.492 GB, free: 37.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.2983, allocations: 125.3 kB / 0.4921 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001363/0.2985, allocations: 48.81 kB / 0.4922 GB, free: 37.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.096e-05/0.2985, allocations: 21.5 kB / 0.4922 GB, free: 37.26 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005054/0.299, allocations: 1.734 MB / 0.4939 GB, free: 35.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.299, allocations: 7.75 kB / 0.4939 GB, free: 35.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.3004, allocations: 1.525 MB / 0.4954 GB, free: 34.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003399/0.3008, allocations: 263.8 kB / 0.4956 GB, free: 34.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.3009, allocations: 20.02 kB / 0.4956 GB, free: 34.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.3014, allocations: 22.78 kB / 0.4957 GB, free: 34.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.02e-05/0.3015, allocations: 60.28 kB / 0.4957 GB, free: 34.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.738e-05/0.3015, allocations: 30.62 kB / 0.4957 GB, free: 34.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00122/0.3027, allocations: 1.251 MB / 0.497 GB, free: 33.86 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3027, allocations: 0 / 0.497 GB, free: 33.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002973/0.3057, allocations: 0.7603 MB / 0.4977 GB, free: 33.76 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.0003121/0.306, allocations: 160.6 kB / 0.4979 GB, free: 33.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002887/0.3089, allocations: 2.259 MB / 0.5001 GB, free: 32.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.3089, allocations: 1.094 kB / 0.5001 GB, free: 32.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003938/0.3093, allocations: 445 kB / 0.5005 GB, free: 32.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.3105, allocations: 310.2 kB / 0.5008 GB, free: 32.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006502/0.317, allocations: 5.514 MB / 0.5062 GB, free: 29.58 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006529/0.3176, allocations: 0.9276 MB / 0.5071 GB, free: 29.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009261/0.3186, allocations: 414.8 kB / 0.5075 GB, free: 29.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005236/0.3191, allocations: 482.4 kB / 0.5079 GB, free: 29.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.3191, allocations: 1.125 kB / 0.5079 GB, free: 29.07 MB / 410.7 MB Notification: Performance of Templates: time 0.03194/0.351, allocations: 21.26 MB / 0.5287 GB, free: 15.18 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.1021648538298905]