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.001456/0.001456, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001719/0.001719, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.96/0.96, allocations: 177 MB / 204.8 MB, free: 5.605 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.2662/0.2662, allocations: 34.87 MB / 296.3 MB, free: 0.5391 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.643e-06/1.643e-06, allocations: 0 / 378.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.327e-05/2.492e-05, allocations: 4.422 kB / 378.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007331/0.007356, allocations: 8.807 MB / 387.6 MB, free: 9.281 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006313/0.01367, allocations: 3.508 MB / 391.1 MB, free: 5.762 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.01468, allocations: 55.75 kB / 391.1 MB, free: 5.707 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.01736, allocations: 2.052 MB / 393.2 MB, free: 3.648 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003284/0.02064, allocations: 1.68 MB / 394.9 MB, free: 1.961 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.02174, allocations: 0.6235 MB / 395.5 MB, free: 1.336 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004134/0.02587, allocations: 4.052 MB / 399.5 MB, free: 13.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003024/0.02889, allocations: 2.323 MB / 401.9 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003261/0.03215, allocations: 2.277 MB / 404.1 MB, free: 8.609 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002317/0.03447, allocations: 1.8 MB / 405.9 MB, free: 6.805 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008229/0.03529, allocations: 244 kB / 406.2 MB, free: 6.566 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002017/0.03731, allocations: 1.076 MB / 407.2 MB, free: 5.488 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001705/0.03902, allocations: 1.621 MB / 408.9 MB, free: 3.863 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001484/0.0405, allocations: 0.9695 MB / 409.8 MB, free: 2.891 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004273/0.04477, allocations: 3.881 MB / 413.7 MB, free: 15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.04478, allocations: 0 / 413.7 MB, free: 15 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.04478, allocations: 4 kB / 413.7 MB, free: 14.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.973e-05/0.04487, allocations: 0 / 413.7 MB, free: 14.99 MB / 394.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.00555/0.05042, allocations: 4.23 MB / 418 MB, free: 10.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.05047, allocations: 12.03 kB / 418 MB, free: 10.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007556/0.05802, allocations: 2.729 MB / 420.7 MB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003476/0.0615, allocations: 1.848 MB / 422.5 MB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.06161, allocations: 176.8 kB / 422.7 MB, free: 5.895 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004173/0.06203, allocations: 240.2 kB / 422.9 MB, free: 5.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00604/0.06807, allocations: 4.852 MB / 427.8 MB, free: 15.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.11e-05/0.06814, allocations: 39.7 kB / 427.8 MB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002329/0.06837, allocations: 111.9 kB / 427.9 MB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001585/0.06996, allocations: 1.535 MB / 429.5 MB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004974/0.07493, allocations: 2.356 MB / 431.8 MB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1778/0.2527, allocations: 36.62 MB / 468.5 MB, free: 60.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/0.2546, allocations: 0.8467 MB / 469.3 MB, free: 60.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.2549, allocations: 268.6 kB / 469.6 MB, free: 60.69 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002988/0.2579, allocations: 2.507 MB / 472.1 MB, free: 59.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.258, allocations: 43.09 kB / 472.1 MB, free: 59.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 4.879e-06/0.258, allocations: 3.844 kB / 472.1 MB, free: 59.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=91): time 0.007886/0.2658, allocations: 5.096 MB / 477.2 MB, free: 57.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.2659, allocations: 193.1 kB / 477.4 MB, free: 57.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/0.269, allocations: 3.371 MB / 480.8 MB, free: 56.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.51e-05/0.269, allocations: 36.77 kB / 480.8 MB, free: 56.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.2702, allocations: 3.054 MB / 483.9 MB, free: 53.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002969/0.2705, allocations: 441.5 kB / 484.3 MB, free: 53.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008633/0.2714, allocations: 1.214 MB / 485.5 MB, free: 53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.455e-05/0.2714, allocations: 476.8 kB / 486 MB, free: 52.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007837/0.2722, allocations: 0.5033 MB / 486.5 MB, free: 52.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/0.2746, allocations: 6.064 MB / 492.5 MB, free: 44.87 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004227/0.2788, allocations: 7.158 MB / 499.7 MB, free: 36.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.139e-05/0.2789, allocations: 41.59 kB / 499.7 MB, free: 36.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.006469/0.2854, allocations: 4.692 MB / 0.4926 GB, free: 35.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/0.2855, allocations: 61.69 kB / 0.4927 GB, free: 35.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/0.2857, allocations: 132.1 kB / 0.4928 GB, free: 35.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005199/0.2862, allocations: 211.5 kB / 0.493 GB, free: 35.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/0.2888, allocations: 1.262 MB / 0.4942 GB, free: 34.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/0.2899, allocations: 2.006 MB / 0.4962 GB, free: 33.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/0.2925, allocations: 330.8 kB / 0.4965 GB, free: 32.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003854/0.2929, allocations: 351 kB / 0.4968 GB, free: 32.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 604 * 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 (689): * Single equations (assignments): 685 * 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.0009857/0.2939, allocations: 0.6313 MB / 0.4975 GB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/0.2943, allocations: 309.5 kB / 0.4977 GB, free: 32.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006311/0.2949, allocations: 0.5107 MB / 0.4982 GB, free: 31.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.2949, allocations: 11.22 kB / 0.4983 GB, free: 31.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.2949, allocations: 1.219 kB / 0.4983 GB, free: 31.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.2949, allocations: 4.734 kB / 0.4983 GB, free: 31.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003987/0.2989, allocations: 3.062 MB / 0.5013 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.2989, allocations: 3.469 kB / 0.5013 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.2993, allocations: 142.8 kB / 0.5014 GB, free: 30.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.2995, allocations: 47.89 kB / 0.5014 GB, free: 30.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.972e-05/0.2995, allocations: 20 kB / 0.5015 GB, free: 30.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005942/0.3001, allocations: 1.76 MB / 0.5032 GB, free: 28.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3001, allocations: 4.125 kB / 0.5032 GB, free: 28.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.3015, allocations: 1.51 MB / 0.5047 GB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003806/0.3019, allocations: 276.7 kB / 0.5049 GB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/0.3021, allocations: 20.16 kB / 0.5049 GB, free: 27.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005061/0.3026, allocations: 73.69 kB / 0.505 GB, free: 27.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.991e-05/0.3027, allocations: 55.64 kB / 0.5051 GB, free: 27.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.3027, allocations: 39.36 kB / 0.5051 GB, free: 27.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00164/0.3044, allocations: 1.403 MB / 0.5065 GB, free: 26.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3044, allocations: 0 / 0.5065 GB, free: 26.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003141/0.3075, allocations: 0.7827 MB / 0.5072 GB, free: 26.87 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (69): * Single equations (assignments): 65 * 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.0003279/0.3078, allocations: 153.6 kB / 0.5074 GB, free: 26.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.3111, allocations: 2.443 MB / 0.5098 GB, free: 25.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.3111, allocations: 1.594 kB / 0.5098 GB, free: 25.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.3115, allocations: 431.2 kB / 0.5102 GB, free: 25.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.3127, allocations: 318.8 kB / 0.5105 GB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006706/0.3194, allocations: 5.696 MB / 0.516 GB, free: 22.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007724/0.3202, allocations: 0.9665 MB / 0.517 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001893/0.3221, allocations: 1.443 MB / 0.5184 GB, free: 22.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.3224, allocations: 188.4 kB / 0.5186 GB, free: 22.04 MB / 410.7 MB Notification: Performance of SimCode: time 2.384e-06/0.3224, allocations: 4 kB / 0.5186 GB, free: 22.04 MB / 410.7 MB Notification: Performance of Templates: time 0.03123/0.3536, allocations: 18.97 MB / 0.5371 GB, free: 8.098 MB / 410.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.961514506023377]