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.00163/0.00163, allocations: 117.1 kB / 19.13 MB, free: 3.918 MB / 14.72 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.002036/0.002036, allocations: 210.6 kB / 22.08 MB, free: 0.9688 MB / 14.72 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 1.48/1.48, allocations: 227.4 MB / 252.3 MB, free: 132 kB / 190.1 MB " [Timeout remaining time 178] 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.2314/0.2314, allocations: 46.17 MB / 351.8 MB, free: 14.31 MB / 286.1 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 0.003413/0.003414, allocations: 81.72 kB / 490.9 MB, free: 27.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1351, allocations: 62.45 MB / 0.5403 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01132/0.1465, allocations: 8.92 MB / 0.5491 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00803/0.1546, allocations: 3.543 MB / 0.5525 GB, free: 7.645 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001532/0.1562, allocations: 47.88 kB / 0.5526 GB, free: 7.598 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003541/0.1598, allocations: 1.666 MB / 0.5542 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004324/0.1641, allocations: 1.551 MB / 0.5557 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.1656, allocations: 0.5536 MB / 0.5562 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005165/0.1708, allocations: 3.574 MB / 0.5597 GB, free: 240 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002931/0.1737, allocations: 2.2 MB / 0.5619 GB, free: 13.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.1755, allocations: 1.086 MB / 0.5629 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00222/0.1778, allocations: 1.53 MB / 0.5644 GB, free: 11.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005284/0.1783, allocations: 224 kB / 0.5647 GB, free: 11.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002128/0.1805, allocations: 1.096 MB / 0.5657 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001548/0.182, allocations: 1.414 MB / 0.5671 GB, free: 8.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00194/0.184, allocations: 1.611 MB / 0.5687 GB, free: 7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006966/0.191, allocations: 5.404 MB / 0.574 GB, free: 1.574 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.191, allocations: 0 / 0.574 GB, free: 1.574 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.093e-06/0.191, allocations: 3.938 kB / 0.574 GB, free: 1.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.1912, allocations: 0 / 0.574 GB, free: 1.57 MB / 430.1 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.008346/0.1995, allocations: 3.764 MB / 0.5776 GB, free: 13.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.1996, allocations: 8.031 kB / 0.5776 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/0.2161, allocations: 2.35 MB / 0.5799 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005241/0.2214, allocations: 2.179 MB / 0.5821 GB, free: 9.137 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.2216, allocations: 164.5 kB / 0.5822 GB, free: 8.973 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007386/0.2223, allocations: 228 kB / 0.5824 GB, free: 8.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.2358, allocations: 7.398 MB / 0.5897 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.2359, allocations: 43.62 kB / 0.5897 GB, free: 0.6836 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003176/0.2362, allocations: 107.9 kB / 0.5898 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/0.239, allocations: 1.539 MB / 0.5913 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01184/0.2508, allocations: 6.315 MB / 0.5975 GB, free: 8.715 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3239/0.5747, allocations: 30.23 MB / 0.627 GB, free: 36.12 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004674/0.5795, allocations: 2.231 MB / 0.6292 GB, free: 34.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001648/0.5811, allocations: 1.131 MB / 0.6303 GB, free: 34.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000342/0.5815, allocations: 323.8 kB / 0.6306 GB, free: 34.22 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.5815, allocations: 44.12 kB / 0.6306 GB, free: 34.17 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.406e-06/0.5815, allocations: 4.875 kB / 0.6306 GB, free: 34.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03603/0.6176, allocations: 11.98 MB / 0.6423 GB, free: 29.64 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/0.6177, allocations: 196.8 kB / 0.6425 GB, free: 29.42 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005298/0.623, allocations: 3.613 MB / 0.6461 GB, free: 27.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002573/0.6233, allocations: 45.38 kB / 0.6461 GB, free: 27.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.6245, allocations: 2.646 MB / 0.6487 GB, free: 25.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004787/0.625, allocations: 0.5492 MB / 0.6492 GB, free: 25.06 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001086/0.6261, allocations: 1.097 MB / 0.6503 GB, free: 24.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.356e-05/0.6262, allocations: 305.1 kB / 0.6506 GB, free: 24.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.6283, allocations: 1.739 MB / 0.6523 GB, free: 23.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003019/0.6313, allocations: 5.09 MB / 0.6572 GB, free: 17.74 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005772/0.6371, allocations: 7.367 MB / 0.6644 GB, free: 10.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001025/0.6372, allocations: 32 kB / 0.6645 GB, free: 9.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.009797/0.647, allocations: 7.065 MB / 0.6714 GB, free: 2.906 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.077e-05/0.6471, allocations: 60.06 kB / 0.6714 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-05/0.6472, allocations: 124 kB / 0.6715 GB, free: 2.727 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.6486, allocations: 0.6407 MB / 0.6722 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003127/0.6517, allocations: 1.216 MB / 0.6734 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004952/0.6567, allocations: 4.065 MB / 0.6773 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003994/0.6607, allocations: 299.6 kB / 0.6776 GB, free: 12.38 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007842/0.6615, allocations: 328 kB / 0.6779 GB, free: 12.05 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * 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 (659): * Single equations (assignments): 655 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002929/0.6645, allocations: 1.697 MB / 0.6796 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000715/0.6652, allocations: 317.8 kB / 0.6799 GB, free: 10.04 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/0.6693, allocations: 2.084 MB / 0.6819 GB, free: 7.938 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.723e-05/0.6694, allocations: 16.11 kB / 0.6819 GB, free: 7.922 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.6694, allocations: 7.938 kB / 0.6819 GB, free: 7.914 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.956e-05/0.6694, allocations: 22.33 kB / 0.682 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.6806, allocations: 5.599 MB / 0.6874 GB, free: 2.242 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.665e-05/0.6806, allocations: 4 kB / 0.6874 GB, free: 2.238 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.6817, allocations: 195.7 kB / 0.6876 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.6832, allocations: 491.6 kB / 0.6881 GB, free: 1.566 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.6833, allocations: 27.98 kB / 0.6881 GB, free: 1.539 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004965/0.6883, allocations: 3.433 MB / 0.6915 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.6883, allocations: 7.688 kB / 0.6915 GB, free: 13.96 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007335/0.6957, allocations: 4.189 MB / 0.6956 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.6967, allocations: 373.8 kB / 0.6959 GB, free: 9.355 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/0.6971, allocations: 19.83 kB / 0.6959 GB, free: 9.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.6983, allocations: 79.83 kB / 0.696 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.6985, allocations: 76.56 kB / 0.6961 GB, free: 9.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.6986, allocations: 36 kB / 0.6961 GB, free: 9.152 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003773/0.7024, allocations: 2.248 MB / 0.6983 GB, free: 6.914 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7024, allocations: 0 / 0.6983 GB, free: 6.914 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004441/0.7069, allocations: 0.7928 MB / 0.6991 GB, free: 6.121 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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.0004379/0.7074, allocations: 150.9 kB / 0.6992 GB, free: 5.969 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007281/0.7146, allocations: 4.141 MB / 0.7033 GB, free: 1.836 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.7147, allocations: 4 kB / 0.7033 GB, free: 1.832 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001869/0.7166, allocations: 1.133 MB / 0.7044 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.7188, allocations: 350.6 kB / 0.7047 GB, free: 372 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/0.7327, allocations: 7.513 MB / 0.7121 GB, free: 8.805 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003561/0.7363, allocations: 2.623 MB / 0.7146 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009907/0.7373, allocations: 243.4 kB / 0.7149 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of SimCode: time 9.92e-07/0.7373, allocations: 4 kB / 0.7149 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of Templates: time 0.09699/0.8343, allocations: 60.94 MB / 0.7744 GB, free: 9.016 MB / 0.5606 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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: 12.532174897030927]