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.001712/0.001712, allocations: 106 kB / 18.94 MB, free: 2.953 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.002069/0.002069, allocations: 197.4 kB / 22.23 MB, free: 5.129 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.408/1.408, allocations: 207.6 MB / 233 MB, free: 10.05 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.05967/0.05967, allocations: 12.01 MB / 297.3 MB, free: 9.898 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.002466/0.002466, allocations: 75.89 kB / 416.8 MB, free: 42.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08237/0.08483, allocations: 51.94 MB / 468.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.009097/0.09393, allocations: 6.162 MB / 474.9 MB, free: 220 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006767/0.1007, allocations: 3.297 MB / 478.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009809/0.1017, allocations: 23.81 kB / 478.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009163/0.1026, allocations: 282 kB / 478.5 MB, free: 12.61 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.002378/0.105, allocations: 0.6134 MB / 479.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.1073, allocations: 0.8487 MB / 479.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002745/0.1101, allocations: 1.868 MB / 481.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006623/0.1108, allocations: 324.3 kB / 482.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.1119, allocations: 0.6577 MB / 482.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.1132, allocations: 0.7547 MB / 483.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002338/0.1134, allocations: 131.9 kB / 483.6 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008639/0.1143, allocations: 403.7 kB / 484 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003334/0.1146, allocations: 346.7 kB / 484.4 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007994/0.1154, allocations: 0.7346 MB / 485.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002462/0.1179, allocations: 1.977 MB / 487.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1179, allocations: 0 / 487.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.1179, allocations: 0 / 487.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.338e-05/0.1179, allocations: 0 / 487.1 MB, free: 3.926 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.002925/0.1208, allocations: 1.578 MB / 488.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1209, allocations: 15.98 kB / 488.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003383/0.1212, allocations: 160 kB / 488.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001318/0.1225, allocations: 0.7661 MB / 489.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.1226, allocations: 81.94 kB / 489.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1228, allocations: 99.98 kB / 489.8 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.1248, allocations: 1.114 MB / 490.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.1249, allocations: 11.92 kB / 490.9 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.125, allocations: 44.06 kB / 491 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.125, allocations: 20 kB / 491 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001862/0.1269, allocations: 1.019 MB / 492 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007672/0.1346, allocations: 5.646 MB / 497.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.1359, allocations: 0.7094 MB / 498.3 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007822/0.1367, allocations: 370.6 kB / 498.7 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.1368, allocations: 36.61 kB / 498.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1369, allocations: 39.22 kB / 498.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.645e-06/0.1369, allocations: 0 / 498.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.004957/0.1418, allocations: 2.216 MB / 0.4893 GB, free: 5.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.1419, allocations: 60.06 kB / 0.4893 GB, free: 5.195 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/0.1433, allocations: 1.062 MB / 0.4904 GB, free: 4.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-05/0.1434, allocations: 41.7 kB / 0.4904 GB, free: 4.066 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.1439, allocations: 0.5473 MB / 0.4909 GB, free: 3.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002372/0.1441, allocations: 273.6 kB / 0.4912 GB, free: 3.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002766/0.1444, allocations: 174.5 kB / 0.4914 GB, free: 3.062 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1445, allocations: 341.9 kB / 0.4917 GB, free: 2.723 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006568/0.1452, allocations: 344.7 kB / 0.492 GB, free: 2.387 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008281/0.146, allocations: 0.496 MB / 0.4925 GB, free: 1.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006055/0.1521, allocations: 1.808 MB / 0.4943 GB, free: 15.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.1521, allocations: 4 kB / 0.4943 GB, free: 15.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00201/0.1541, allocations: 1.02 MB / 0.4953 GB, free: 14.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.1541, allocations: 8 kB / 0.4953 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1541, allocations: 4 kB / 0.4953 GB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.1541, allocations: 15.94 kB / 0.4953 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009526/0.1551, allocations: 228 kB / 0.4955 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.1551, allocations: 15.98 kB / 0.4955 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.1557, allocations: 28 kB / 0.4955 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.137e-05/0.1558, allocations: 39.98 kB / 0.4956 GB, free: 14.57 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.0006648/0.1565, allocations: 376.5 kB / 0.4959 GB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.1567, allocations: 115.2 kB / 0.4961 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.1586, allocations: 0.9465 MB / 0.497 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.1586, allocations: 8 kB / 0.497 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.1587, allocations: 4 kB / 0.497 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.1587, allocations: 3.984 kB / 0.497 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.1626, allocations: 2.208 MB / 0.4991 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.1626, allocations: 7.984 kB / 0.4992 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008676/0.1635, allocations: 192 kB / 0.4993 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.1635, allocations: 4 kB / 0.4993 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.644e-05/0.1636, allocations: 27.98 kB / 0.4994 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.1636, allocations: 4 kB / 0.4994 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1636, allocations: 3.938 kB / 0.4994 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.166, allocations: 1.377 MB / 0.5007 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004953/0.1665, allocations: 199.2 kB / 0.5009 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.1666, allocations: 23.98 kB / 0.5009 GB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000449/0.1671, allocations: 24 kB / 0.501 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.1672, allocations: 68.42 kB / 0.501 GB, free: 8.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.925e-05/0.1673, allocations: 28.11 kB / 0.501 GB, free: 8.832 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.1684, allocations: 0.7369 MB / 0.5018 GB, free: 8.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1684, allocations: 3.938 kB / 0.5018 GB, free: 8.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001026/0.1694, allocations: 311.7 kB / 0.5021 GB, free: 7.777 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.001619/0.171, allocations: 459.5 kB / 0.5025 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.1726, allocations: 0.7476 MB / 0.5032 GB, free: 6.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.1726, allocations: 0 / 0.5032 GB, free: 6.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006591/0.1733, allocations: 380.8 kB / 0.5036 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.1747, allocations: 360.4 kB / 0.5039 GB, free: 5.957 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003929/0.1786, allocations: 2.375 MB / 0.5063 GB, free: 3.531 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008639/0.1794, allocations: 1.159 MB / 0.5074 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007062/0.1802, allocations: 216.1 kB / 0.5076 GB, free: 2.125 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.1805, allocations: 107.4 kB / 0.5077 GB, free: 2.02 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1805, allocations: 3.938 kB / 0.5077 GB, free: 2.016 MB / 382.1 MB Notification: Performance of Templates: time 0.2032/0.3837, allocations: 18.61 MB / 0.5259 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 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.390296611003578] Failed to read output from testmodel.py, exit status != 0: 0.3917902447283268 0.408226062 0.28730885300000003 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc5a8d4d7b0>