Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 101.7 kB / 19.59 MB, free: 2.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 194.8 kB / 22.85 MB, free: 5.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 207.6 MB / 233.6 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06136/0.06136, allocations: 12.01 MB / 297.8 MB, free: 9.895 MB / 238.1 MB " [Timeout remaining time 180] Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002278/0.002278, allocations: 83.81 kB / 417.2 MB, free: 42.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06776/0.07004, allocations: 51.93 MB / 469.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007992/0.07803, allocations: 6.127 MB / 475.3 MB, free: 260 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005576/0.08361, allocations: 3.293 MB / 478.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004489/0.08406, allocations: 23.81 kB / 478.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006608/0.08472, allocations: 290 kB / 478.9 MB, free: 12.64 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.00125/0.08597, allocations: 0.6056 MB / 479.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001796/0.08776, allocations: 0.8495 MB / 480.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002023/0.08979, allocations: 1.864 MB / 482.2 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000535/0.09032, allocations: 324.3 kB / 482.5 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008126/0.09113, allocations: 0.6616 MB / 483.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009442/0.09208, allocations: 0.7507 MB / 483.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.09225, allocations: 124 kB / 484 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007068/0.09296, allocations: 399.8 kB / 484.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003424/0.0933, allocations: 350.7 kB / 484.8 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007302/0.09403, allocations: 0.7308 MB / 485.5 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.09635, allocations: 1.969 MB / 487.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.09635, allocations: 3.938 kB / 487.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09636, allocations: 0 / 487.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.447e-05/0.09638, allocations: 0 / 487.5 MB, free: 3.984 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002809/0.09919, allocations: 1.578 MB / 489.1 MB, free: 2.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.09922, allocations: 15.98 kB / 489.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.09954, allocations: 163.9 kB / 489.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.1008, allocations: 0.7661 MB / 490 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.701e-05/0.1008, allocations: 77.94 kB / 490.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.101, allocations: 96 kB / 490.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/0.103, allocations: 1.122 MB / 491.3 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.979e-05/0.103, allocations: 4 kB / 491.3 MB, free: 92 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-05/0.1031, allocations: 44 kB / 491.3 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.1032, allocations: 20 kB / 491.3 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001885/0.105, allocations: 1.019 MB / 492.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00719/0.1122, allocations: 5.634 MB / 498 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.1135, allocations: 0.7118 MB / 498.7 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007372/0.1143, allocations: 370.6 kB / 499.1 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001676/0.1144, allocations: 36.59 kB / 499.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.1145, allocations: 39.22 kB / 499.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.244e-06/0.1145, allocations: 0 / 499.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.004899/0.1194, allocations: 2.223 MB / 0.4896 GB, free: 5.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.1194, allocations: 56.06 kB / 0.4897 GB, free: 5.266 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.1208, allocations: 1.062 MB / 0.4907 GB, free: 4.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.461e-05/0.1209, allocations: 41.7 kB / 0.4908 GB, free: 4.137 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005083/0.1214, allocations: 0.5473 MB / 0.4913 GB, free: 3.582 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.1217, allocations: 273.6 kB / 0.4915 GB, free: 3.312 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.122, allocations: 174.5 kB / 0.4917 GB, free: 3.133 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1221, allocations: 341.9 kB / 0.492 GB, free: 2.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006509/0.1228, allocations: 348.6 kB / 0.4924 GB, free: 2.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007818/0.1236, allocations: 0.4921 MB / 0.4929 GB, free: 1.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006097/0.1296, allocations: 1.8 MB / 0.4946 GB, free: 12 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1297, allocations: 8 kB / 0.4946 GB, free: 4 kB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001945/0.1316, allocations: 1.02 MB / 0.4956 GB, free: 14.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.1316, allocations: 4 kB / 0.4956 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.1316, allocations: 11.94 kB / 0.4956 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.1317, allocations: 11.94 kB / 0.4956 GB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009777/0.1326, allocations: 223.7 kB / 0.4959 GB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.426e-05/0.1327, allocations: 19.92 kB / 0.4959 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005749/0.1332, allocations: 28.09 kB / 0.4959 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.745e-05/0.1333, allocations: 47.97 kB / 0.4959 GB, free: 14.63 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = \"rad\" fixed = true ) \"Angle of rotation of pump\" type: Real valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2A.p_init unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) \"Pressure in the connection point\" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2B.p_init unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) \"Pressure in the connection point\" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005905/0.1339, allocations: 368.6 kB / 0.4963 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.1341, allocations: 115.2 kB / 0.4964 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.136, allocations: 0.9466 MB / 0.4973 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.136, allocations: 8 kB / 0.4973 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.136, allocations: 0 / 0.4973 GB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.136, allocations: 3.984 kB / 0.4973 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.1398, allocations: 2.212 MB / 0.4995 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.1398, allocations: 4 kB / 0.4995 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008746/0.1407, allocations: 183.8 kB / 0.4997 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.1407, allocations: 8.219 kB / 0.4997 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.06e-05/0.1407, allocations: 27.98 kB / 0.4997 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.134e-05/0.1408, allocations: 11.94 kB / 0.4997 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.1408, allocations: 3.938 kB / 0.4997 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.1431, allocations: 1.38 MB / 0.5011 GB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000434/0.1435, allocations: 199.2 kB / 0.5013 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.1436, allocations: 23.98 kB / 0.5013 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.1441, allocations: 20 kB / 0.5013 GB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.1442, allocations: 68.48 kB / 0.5014 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.06e-05/0.1443, allocations: 27.98 kB / 0.5014 GB, free: 8.906 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.1454, allocations: 0.7369 MB / 0.5021 GB, free: 8.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1454, allocations: 0 / 0.5021 GB, free: 8.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001005/0.1464, allocations: 311.7 kB / 0.5024 GB, free: 7.855 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * 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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001621/0.148, allocations: 476 kB / 0.5029 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.1496, allocations: 0.7478 MB / 0.5036 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1496, allocations: 0 / 0.5036 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006696/0.1503, allocations: 373.1 kB / 0.504 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/0.1517, allocations: 355.1 kB / 0.5043 GB, free: 6.035 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003914/0.1556, allocations: 2.375 MB / 0.5066 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008939/0.1565, allocations: 1.163 MB / 0.5078 GB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007348/0.1572, allocations: 216.1 kB / 0.508 GB, free: 2.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.1575, allocations: 103.4 kB / 0.5081 GB, free: 2.098 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.1575, allocations: 0 / 0.5081 GB, free: 2.098 MB / 382.1 MB Notification: Performance of Templates: time 0.1879/0.3454, allocations: 18.62 MB / 0.5262 GB, free: 64.28 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile [Timeout 660] (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.152835029002745] Failed to read output from testmodel.py, exit status != 0: 0.3521972359958454 0.36530257800000004 0.266038213 Calling exit ...