Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.000854/0.000854, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.004928/0.004928, allocations: 156.7 kB / 24.7 MB, free: 9.418 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.8687/0.8687, allocations: 177 MB / 204.9 MB, free: 5.746 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.2324/0.2324, allocations: 34.24 MB / 295.6 MB, free: 0.668 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 443.4 MB, free: 1.062 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.874e-05/3.019e-05, allocations: 6.219 kB / 443.4 MB, free: 1.055 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2043/0.2044, allocations: 8.026 MB / 451.4 MB, free: 39.93 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004065/0.2084, allocations: 3.39 MB / 454.8 MB, free: 37.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.2091, allocations: 56.75 kB / 454.9 MB, free: 37.82 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.2109, allocations: 1.958 MB / 456.8 MB, free: 37 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002232/0.2131, allocations: 1.669 MB / 458.5 MB, free: 36.24 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008452/0.214, allocations: 0.6246 MB / 459.1 MB, free: 35.99 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002705/0.2167, allocations: 4.045 MB / 463.2 MB, free: 34.45 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001615/0.2183, allocations: 2.255 MB / 465.4 MB, free: 33.44 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.2201, allocations: 1.779 MB / 467.2 MB, free: 32.68 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001709/0.2219, allocations: 1.791 MB / 469 MB, free: 32.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000401/0.2223, allocations: 245.6 kB / 469.2 MB, free: 32.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.2236, allocations: 1.065 MB / 470.3 MB, free: 32.01 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008643/0.2244, allocations: 1.606 MB / 471.9 MB, free: 31.34 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007519/0.2252, allocations: 0.9698 MB / 472.9 MB, free: 30.87 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003767/0.229, allocations: 5.771 MB / 478.7 MB, free: 28.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.229, allocations: 3.219 kB / 478.7 MB, free: 28.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.229, allocations: 0 / 478.7 MB, free: 28.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.756e-05/0.229, allocations: 0 / 478.7 MB, free: 28.89 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.005334/0.2344, allocations: 3.877 MB / 482.5 MB, free: 26.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.85e-05/0.2344, allocations: 9.156 kB / 482.5 MB, free: 26.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008165/0.2426, allocations: 2.425 MB / 485 MB, free: 26.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003359/0.2459, allocations: 2.184 MB / 487.2 MB, free: 25.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.246, allocations: 176.8 kB / 487.3 MB, free: 25.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003503/0.2464, allocations: 240.2 kB / 487.6 MB, free: 25.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008553/0.2549, allocations: 7.839 MB / 495.4 MB, free: 21.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.039e-05/0.255, allocations: 45.75 kB / 495.4 MB, free: 21.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.2553, allocations: 116.6 kB / 495.6 MB, free: 21.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001909/0.2572, allocations: 1.585 MB / 497.1 MB, free: 20.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009603/0.2668, allocations: 6.57 MB / 0.4919 GB, free: 18.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02061/0.2874, allocations: 29.94 MB / 0.5211 GB, free: 4.582 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.2904, allocations: 1.999 MB / 0.5231 GB, free: 2.547 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009059/0.2913, allocations: 1.038 MB / 0.5241 GB, free: 1.496 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/0.2915, allocations: 87.94 kB / 0.5242 GB, free: 1.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.432e-05/0.2915, allocations: 42.56 kB / 0.5242 GB, free: 1.359 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 4.488e-06/0.2915, allocations: 0 / 0.5242 GB, free: 1.359 MB / 426.7 MB Notification: Performance of matching and sorting (n=118): time 0.01392/0.3055, allocations: 9.508 MB / 0.5335 GB, free: 7.797 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.3055, allocations: 196.4 kB / 0.5337 GB, free: 7.562 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003271/0.3088, allocations: 3.604 MB / 0.5372 GB, free: 3.945 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.286e-05/0.3089, allocations: 45.7 kB / 0.5373 GB, free: 3.895 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.3101, allocations: 2.808 MB / 0.54 GB, free: 1.059 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003311/0.3104, allocations: 0.5042 MB / 0.5405 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009616/0.3114, allocations: 1.104 MB / 0.5416 GB, free: 15.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.856e-05/0.3115, allocations: 309.1 kB / 0.5419 GB, free: 15.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.313, allocations: 1.69 MB / 0.5435 GB, free: 13.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003211/0.3163, allocations: 5.31 MB / 0.5487 GB, free: 6.316 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005686/0.3219, allocations: 7.518 MB / 0.5561 GB, free: 13.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.103e-05/0.322, allocations: 36 kB / 0.5561 GB, free: 12.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.007332/0.3293, allocations: 7.098 MB / 0.563 GB, free: 5.879 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.3294, allocations: 60.92 kB / 0.5631 GB, free: 5.82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-05/0.3295, allocations: 128 kB / 0.5632 GB, free: 5.695 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009802/0.3305, allocations: 0.6526 MB / 0.5638 GB, free: 5.039 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/0.3324, allocations: 1.252 MB / 0.5651 GB, free: 3.785 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003207/0.3356, allocations: 3.932 MB / 0.5689 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/0.338, allocations: 331.6 kB / 0.5692 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.3383, allocations: 345.6 kB / 0.5696 GB, free: 15.09 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002092/0.3404, allocations: 1.779 MB / 0.5713 GB, free: 13.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/0.3408, allocations: 282.1 kB / 0.5716 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.3429, allocations: 1.808 MB / 0.5733 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.3429, allocations: 15.98 kB / 0.5733 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.3429, allocations: 7.938 kB / 0.5733 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3429, allocations: 7.984 kB / 0.5734 GB, free: 11.17 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/0.3486, allocations: 4.507 MB / 0.5778 GB, free: 6.602 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.3487, allocations: 3.984 kB / 0.5778 GB, free: 6.598 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.3491, allocations: 159.8 kB / 0.5779 GB, free: 6.441 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007744/0.3499, allocations: 480.2 kB / 0.5784 GB, free: 5.969 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.3499, allocations: 23.94 kB / 0.5784 GB, free: 5.945 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/0.3526, allocations: 3.313 MB / 0.5816 GB, free: 2.535 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3526, allocations: 3.938 kB / 0.5816 GB, free: 2.531 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003798/0.3564, allocations: 3.712 MB / 0.5853 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006373/0.357, allocations: 285.9 kB / 0.5855 GB, free: 14.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.3572, allocations: 20 kB / 0.5855 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.3578, allocations: 87.86 kB / 0.5856 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/0.3579, allocations: 64.38 kB / 0.5857 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/0.358, allocations: 33.5 kB / 0.5857 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002384/0.3604, allocations: 2.081 MB / 0.5878 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.3604, allocations: 64 / 0.5878 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002914/0.3633, allocations: 0.8671 MB / 0.5886 GB, free: 11.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.000355/0.3636, allocations: 158.8 kB / 0.5888 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004162/0.3678, allocations: 3.872 MB / 0.5925 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3678, allocations: 0 / 0.5925 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000818/0.3686, allocations: 0.94 MB / 0.5935 GB, free: 6.391 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.3697, allocations: 315.4 kB / 0.5938 GB, free: 6.094 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009145/0.3788, allocations: 7.559 MB / 0.6011 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.3806, allocations: 2.148 MB / 0.6032 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004747/0.3811, allocations: 236.5 kB / 0.6035 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of SimCode: time 9.61e-07/0.3811, allocations: 0 / 0.6035 GB, free: 12.06 MB / 0.5105 GB Notification: Performance of Templates: time 0.2281/0.6092, allocations: 62.42 MB / 0.6644 GB, free: 139.9 MB / 0.5261 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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: 7.895737932063639]