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.0009967/0.0009967, allocations: 91.5 kB / 21.19 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.0009896/0.0009896, allocations: 160.5 kB / 24.55 MB, free: 16 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.973/0.973, allocations: 177 MB / 204.8 MB, free: 5.59 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.2745/0.2745, allocations: 34.86 MB / 296.3 MB, free: 0.5547 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.904e-06/1.904e-06, allocations: 0 / 378.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.584e-05, allocations: 3.578 kB / 378.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.007568/0.007594, allocations: 8.813 MB / 387.6 MB, free: 9.246 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005671/0.01327, allocations: 3.508 MB / 391.1 MB, free: 5.727 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000852/0.01412, allocations: 55.75 kB / 391.1 MB, free: 5.672 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.01637, allocations: 2.052 MB / 393.2 MB, free: 3.613 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002762/0.01913, allocations: 1.668 MB / 394.9 MB, free: 1.938 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008943/0.02003, allocations: 0.6352 MB / 395.5 MB, free: 1.301 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003169/0.02319, allocations: 4.043 MB / 399.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002057/0.02525, allocations: 2.319 MB / 401.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.02702, allocations: 1.781 MB / 403.6 MB, free: 9.086 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.02883, allocations: 1.824 MB / 405.5 MB, free: 7.258 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003784/0.02921, allocations: 244 kB / 405.7 MB, free: 7.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.03049, allocations: 1.076 MB / 406.8 MB, free: 5.941 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.03154, allocations: 1.617 MB / 408.4 MB, free: 4.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008466/0.03238, allocations: 0.9734 MB / 409.4 MB, free: 3.344 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00316/0.03554, allocations: 3.873 MB / 413.2 MB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.03555, allocations: 8 kB / 413.2 MB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.03555, allocations: 0 / 413.2 MB, free: 15.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.22e-05/0.03561, allocations: 0 / 413.2 MB, free: 15.45 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.005106/0.04072, allocations: 4.202 MB / 417.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.04076, allocations: 8.031 kB / 417.4 MB, free: 11.18 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008093/0.04885, allocations: 2.772 MB / 420.2 MB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0026/0.05145, allocations: 2.019 MB / 422.2 MB, free: 6.344 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.05182, allocations: 180.8 kB / 422.4 MB, free: 6.164 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002911/0.05212, allocations: 236.2 kB / 422.6 MB, free: 5.934 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00484/0.05696, allocations: 4.855 MB / 427.5 MB, free: 200 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.937e-05/0.05701, allocations: 35.7 kB / 427.5 MB, free: 164 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002121/0.05723, allocations: 115.9 kB / 427.7 MB, free: 48 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001789/0.05902, allocations: 1.586 MB / 429.2 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00413/0.06315, allocations: 2.438 MB / 431.7 MB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.173/0.2361, allocations: 36.52 MB / 468.2 MB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.2383, allocations: 0.957 MB / 469.1 MB, free: 60.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004753/0.2387, allocations: 364.9 kB / 469.5 MB, free: 60.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001885/0.2389, allocations: 86.61 kB / 469.6 MB, free: 60.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.239, allocations: 49.17 kB / 469.6 MB, free: 60.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=104): time 4.068e-06/0.239, allocations: 0.625 kB / 469.6 MB, free: 60.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=118): time 0.01273/0.2517, allocations: 6.924 MB / 476.6 MB, free: 58.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.2517, allocations: 199.3 kB / 476.8 MB, free: 58.27 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003312/0.2551, allocations: 3.251 MB / 480 MB, free: 57.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001149/0.2552, allocations: 44.08 kB / 480.1 MB, free: 57.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.2565, allocations: 2.972 MB / 483 MB, free: 55.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004338/0.257, allocations: 0.5248 MB / 483.5 MB, free: 55.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000931/0.2579, allocations: 1.212 MB / 484.8 MB, free: 54.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.258, allocations: 479.7 kB / 485.2 MB, free: 53.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009407/0.2589, allocations: 0.5638 MB / 485.8 MB, free: 53.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002312/0.2612, allocations: 5.909 MB / 491.7 MB, free: 46.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004046/0.2653, allocations: 7.062 MB / 498.8 MB, free: 38.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.067e-05/0.2653, allocations: 38.38 kB / 498.8 MB, free: 38.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=717) (initialization): time 0.006514/0.2719, allocations: 4.998 MB / 0.492 GB, free: 37.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.584e-05/0.2719, allocations: 58.72 kB / 0.492 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/0.2721, allocations: 126.3 kB / 0.4922 GB, free: 37.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001261/0.2733, allocations: 473.9 kB / 0.4926 GB, free: 37.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003071/0.2764, allocations: 1.249 MB / 0.4938 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003305/0.2797, allocations: 2.89 MB / 0.4967 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00559/0.2853, allocations: 326.4 kB / 0.497 GB, free: 34.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003893/0.2857, allocations: 350.6 kB / 0.4973 GB, free: 34.46 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.001035/0.2867, allocations: 0.6198 MB / 0.4979 GB, free: 33.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.287, allocations: 316.5 kB / 0.4982 GB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001469/0.2885, allocations: 0.9959 MB / 0.4992 GB, free: 33.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.2885, allocations: 18.34 kB / 0.4992 GB, free: 33.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.2885, allocations: 3.531 kB / 0.4992 GB, free: 33.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.2886, allocations: 5 kB / 0.4992 GB, free: 33.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.2934, allocations: 3.868 MB / 0.503 GB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.2934, allocations: 8.172 kB / 0.503 GB, free: 31.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.2939, allocations: 154.9 kB / 0.5031 GB, free: 31.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007126/0.2946, allocations: 288.8 kB / 0.5034 GB, free: 31.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.965e-05/0.2947, allocations: 21.78 kB / 0.5034 GB, free: 31.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.2962, allocations: 2.295 MB / 0.5057 GB, free: 29.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2962, allocations: 7.125 kB / 0.5057 GB, free: 29.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.2982, allocations: 1.945 MB / 0.5076 GB, free: 28.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.2984, allocations: 281.1 kB / 0.5079 GB, free: 28.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.2986, allocations: 18.3 kB / 0.5079 GB, free: 28.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005498/0.2991, allocations: 86.8 kB / 0.508 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.2992, allocations: 69.95 kB / 0.508 GB, free: 28.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.2993, allocations: 33.88 kB / 0.5081 GB, free: 28.57 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00121/0.3005, allocations: 1.373 MB / 0.5094 GB, free: 28.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3005, allocations: 0 / 0.5094 GB, free: 28.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002628/0.3031, allocations: 0.8596 MB / 0.5102 GB, free: 28 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.0002774/0.3034, allocations: 164.5 kB / 0.5104 GB, free: 27.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002728/0.3061, allocations: 2.618 MB / 0.5129 GB, free: 26.92 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3061, allocations: 4 kB / 0.513 GB, free: 26.92 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005238/0.3067, allocations: 0.5584 MB / 0.5135 GB, free: 26.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009824/0.3076, allocations: 326.6 kB / 0.5138 GB, free: 26.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005692/0.3133, allocations: 5.804 MB / 0.5195 GB, free: 21.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007889/0.3141, allocations: 0.9895 MB / 0.5204 GB, free: 21.21 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002108/0.3162, allocations: 1.452 MB / 0.5219 GB, free: 20.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003044/0.3165, allocations: 197.4 kB / 0.522 GB, free: 20.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.784e-06/0.3165, allocations: 0 / 0.522 GB, free: 20.21 MB / 410.7 MB Notification: Performance of Templates: time 0.02978/0.3463, allocations: 23.73 MB / 0.5452 GB, free: 15.85 MB / 426.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: 4.092372900806367]