Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.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.001416/0.001416, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001599/0.001599, allocations: 162.6 kB / 24.99 MB, free: 8.336 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.9958/0.9958, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.2769/0.2769, allocations: 34.26 MB / 296 MB, free: 0.707 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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 378 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.129e-05/2.309e-05, allocations: 9.906 kB / 378 MB, free: 2.969 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007485/0.007508, allocations: 8.768 MB / 386.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.004766/0.01227, allocations: 3.496 MB / 390.3 MB, free: 6.648 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005339/0.01281, allocations: 55.75 kB / 390.3 MB, free: 6.594 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.01515, allocations: 2.056 MB / 392.4 MB, free: 4.531 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002007/0.01716, allocations: 1.676 MB / 394.1 MB, free: 2.848 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007122/0.01787, allocations: 0.6196 MB / 394.7 MB, free: 2.227 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003056/0.02093, allocations: 4.047 MB / 398.7 MB, free: 14.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.02275, allocations: 2.319 MB / 401.1 MB, free: 11.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.02419, allocations: 1.789 MB / 402.8 MB, free: 10 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.02581, allocations: 1.82 MB / 404.7 MB, free: 8.176 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002632/0.02607, allocations: 244 kB / 404.9 MB, free: 7.938 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.02741, allocations: 1.069 MB / 406 MB, free: 6.867 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009859/0.0284, allocations: 1.624 MB / 407.6 MB, free: 5.238 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007446/0.02914, allocations: 0.9695 MB / 408.6 MB, free: 4.266 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.0324, allocations: 3.881 MB / 412.4 MB, free: 380 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.03241, allocations: 0 / 412.4 MB, free: 380 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.03241, allocations: 0 / 412.4 MB, free: 380 kB / 378.7 MB Notification: Performance of Transformations before backend: time 4.218e-05/0.03245, allocations: 4 kB / 412.4 MB, free: 376 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.004379/0.03683, allocations: 4.202 MB / 416.6 MB, free: 12.1 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.03688, allocations: 8.031 kB / 416.7 MB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007937/0.04481, allocations: 2.756 MB / 419.4 MB, free: 9.328 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002873/0.04769, allocations: 2.027 MB / 421.4 MB, free: 7.266 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-05/0.04777, allocations: 176.8 kB / 421.6 MB, free: 7.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002893/0.04806, allocations: 232.2 kB / 421.8 MB, free: 6.863 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005227/0.05329, allocations: 4.852 MB / 426.7 MB, free: 1.125 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.228e-05/0.05335, allocations: 43.62 kB / 426.7 MB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002157/0.05357, allocations: 119.9 kB / 426.8 MB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001481/0.05505, allocations: 1.578 MB / 428.4 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003917/0.05896, allocations: 2.446 MB / 430.9 MB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1753/0.2343, allocations: 36.51 MB / 467.4 MB, free: 68.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002083/0.2364, allocations: 0.9527 MB / 468.3 MB, free: 68.13 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004133/0.2368, allocations: 369.3 kB / 468.7 MB, free: 68.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.2369, allocations: 88.53 kB / 468.8 MB, free: 68.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.237, allocations: 49.03 kB / 468.8 MB, free: 67.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 2.996e-06/0.237, allocations: 0 / 468.8 MB, free: 67.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01137/0.2483, allocations: 6.915 MB / 475.7 MB, free: 65.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.2484, allocations: 197.2 kB / 475.9 MB, free: 65.17 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.2509, allocations: 3.258 MB / 479.2 MB, free: 63.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.2509, allocations: 45.94 kB / 479.2 MB, free: 63.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009675/0.2519, allocations: 2.966 MB / 482.2 MB, free: 61.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/0.2522, allocations: 0.5295 MB / 482.7 MB, free: 61.24 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008272/0.253, allocations: 1.214 MB / 484 MB, free: 60.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.253, allocations: 485.1 kB / 484.4 MB, free: 60.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008132/0.2539, allocations: 0.5592 MB / 485 MB, free: 60.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002272/0.2561, allocations: 5.906 MB / 490.9 MB, free: 52.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003697/0.2598, allocations: 7.058 MB / 498 MB, free: 44.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.373e-05/0.2599, allocations: 41.88 kB / 498 MB, free: 44.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.005821/0.2657, allocations: 4.995 MB / 0.4912 GB, free: 42.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.631e-05/0.2658, allocations: 58 kB / 0.4913 GB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/0.2659, allocations: 126.4 kB / 0.4914 GB, free: 42.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.267, allocations: 473.5 kB / 0.4918 GB, free: 42.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/0.2693, allocations: 1.25 MB / 0.493 GB, free: 42.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.2716, allocations: 2.89 MB / 0.4959 GB, free: 40.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002154/0.2738, allocations: 325.3 kB / 0.4962 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003593/0.2742, allocations: 347.8 kB / 0.4965 GB, free: 40.26 MB / 410.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.0009013/0.2751, allocations: 0.625 MB / 0.4971 GB, free: 39.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003193/0.2754, allocations: 313.6 kB / 0.4974 GB, free: 39.59 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.2769, allocations: 0.9942 MB / 0.4984 GB, free: 39.26 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.2769, allocations: 18.05 kB / 0.4984 GB, free: 39.26 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.2769, allocations: 3.594 kB / 0.4984 GB, free: 39.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.2769, allocations: 6.562 kB / 0.4984 GB, free: 39.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004991/0.2819, allocations: 3.882 MB / 0.5022 GB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.2819, allocations: 0 / 0.5022 GB, free: 37.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.2823, allocations: 154 kB / 0.5024 GB, free: 37.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007551/0.2831, allocations: 289.6 kB / 0.5026 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.491e-05/0.2831, allocations: 25.78 kB / 0.5027 GB, free: 37.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001424/0.2846, allocations: 2.295 MB / 0.5049 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2846, allocations: 0 / 0.5049 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.2866, allocations: 1.953 MB / 0.5068 GB, free: 34.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.2868, allocations: 280.4 kB / 0.5071 GB, free: 34.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001835/0.287, allocations: 17.12 kB / 0.5071 GB, free: 34.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005882/0.2876, allocations: 90.52 kB / 0.5072 GB, free: 34.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.2877, allocations: 69.23 kB / 0.5072 GB, free: 34.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.537e-05/0.2878, allocations: 30.72 kB / 0.5073 GB, free: 34.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001281/0.2891, allocations: 1.373 MB / 0.5086 GB, free: 33.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2891, allocations: 3.125 kB / 0.5086 GB, free: 33.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002549/0.2916, allocations: 0.859 MB / 0.5095 GB, free: 33.79 MB / 410.7 MB 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.000291/0.2919, allocations: 166.3 kB / 0.5096 GB, free: 33.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002801/0.2947, allocations: 2.624 MB / 0.5122 GB, free: 32.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2947, allocations: 4.062 kB / 0.5122 GB, free: 32.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000491/0.2952, allocations: 0.5671 MB / 0.5127 GB, free: 31.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.2962, allocations: 328.4 kB / 0.513 GB, free: 31.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/0.3021, allocations: 5.796 MB / 0.5187 GB, free: 26.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000835/0.303, allocations: 0.9853 MB / 0.5197 GB, free: 25.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002189/0.3052, allocations: 1.448 MB / 0.5211 GB, free: 24.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.3055, allocations: 197.5 kB / 0.5213 GB, free: 24.64 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3055, allocations: 0 / 0.5213 GB, free: 24.64 MB / 410.7 MB Notification: Performance of Templates: time 0.03054/0.336, allocations: 23.72 MB / 0.5444 GB, free: 3.34 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 4.140142808901146]