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.002311/0.002311, allocations: 106 kB / 16.45 MB, free: 6.508 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.002235/0.002235, allocations: 200.5 kB / 19.41 MB, free: 3.664 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.409/1.409, allocations: 207.6 MB / 229.8 MB, free: 11.42 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.05924/0.05924, allocations: 12.01 MB / 293.7 MB, free: 11.07 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: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) [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.002387/0.002387, allocations: 80.58 kB / 411 MB, free: 44.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07538/0.07776, allocations: 51.89 MB / 462.9 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.008406/0.08617, allocations: 6.131 MB / 469.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006312/0.09248, allocations: 3.281 MB / 472.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.09385, allocations: 19.88 kB / 472.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.09514, allocations: 282 kB / 472.6 MB, free: 14.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.002199/0.09734, allocations: 0.6095 MB / 473.2 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002501/0.09984, allocations: 0.8446 MB / 474.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002828/0.1027, allocations: 1.852 MB / 475.9 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007855/0.1035, allocations: 395.8 kB / 476.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.1046, allocations: 0.6421 MB / 477 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.1059, allocations: 0.7508 MB / 477.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003408/0.1062, allocations: 124 kB / 477.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.1073, allocations: 395.8 kB / 478.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004594/0.1078, allocations: 362.7 kB / 478.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.1089, allocations: 0.7308 MB / 479.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002715/0.1116, allocations: 1.966 MB / 481.3 MB, free: 5.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1116, allocations: 7.938 kB / 481.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1116, allocations: 0 / 481.3 MB, free: 5.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.989e-05/0.1117, allocations: 0 / 481.3 MB, free: 5.906 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.003171/0.1148, allocations: 1.649 MB / 482.9 MB, free: 4.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.1149, allocations: 11.89 kB / 483 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001817/0.115, allocations: 156.1 kB / 483.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.1154, allocations: 160 kB / 483.3 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.1167, allocations: 0.8393 MB / 484.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.144e-05/0.1168, allocations: 77.94 kB / 484.2 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.1169, allocations: 99.94 kB / 484.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.1188, allocations: 1.11 MB / 485.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.1189, allocations: 4 kB / 485.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.54e-05/0.119, allocations: 44 kB / 485.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.119, allocations: 20 kB / 485.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.1208, allocations: 1.011 MB / 486.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.1314, allocations: 6.008 MB / 492.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002064/0.1334, allocations: 0.7172 MB / 493.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001176/0.1346, allocations: 378.6 kB / 493.6 MB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003711/0.135, allocations: 186.8 kB / 493.7 MB, free: 8.578 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.135, allocations: 43.16 kB / 493.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 4.087e-06/0.135, allocations: 0 / 493.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.008203/0.1432, allocations: 2.287 MB / 496.1 MB, free: 6.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.973e-05/0.1433, allocations: 60.06 kB / 496.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002441/0.1457, allocations: 1.07 MB / 497.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.064e-05/0.1458, allocations: 37.7 kB / 497.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006429/0.1465, allocations: 0.5512 MB / 497.8 MB, free: 4.434 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.1468, allocations: 273.7 kB / 498 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003878/0.1472, allocations: 174.5 kB / 498.2 MB, free: 3.988 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.1474, allocations: 342 kB / 498.6 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008744/0.1482, allocations: 348.7 kB / 498.9 MB, free: 3.305 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.1493, allocations: 499.9 kB / 499.4 MB, free: 2.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006053/0.1553, allocations: 1.808 MB / 0.4894 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.1553, allocations: 8 kB / 0.4895 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001997/0.1573, allocations: 1.012 MB / 0.4904 GB, free: 15.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.1574, allocations: 8 kB / 0.4904 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.1574, allocations: 11.94 kB / 0.4905 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.1574, allocations: 8 kB / 0.4905 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009611/0.1584, allocations: 227.7 kB / 0.4907 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.089e-05/0.1584, allocations: 11.94 kB / 0.4907 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.159, allocations: 36.14 kB / 0.4907 GB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.403e-05/0.1591, allocations: 39.98 kB / 0.4908 GB, free: 15.5 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.0006705/0.1597, allocations: 362.8 kB / 0.4911 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.1599, allocations: 115.2 kB / 0.4912 GB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.1619, allocations: 0.9543 MB / 0.4922 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.1619, allocations: 8 kB / 0.4922 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1619, allocations: 4 kB / 0.4922 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.1619, allocations: 7.969 kB / 0.4922 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004062/0.166, allocations: 2.304 MB / 0.4944 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/0.166, allocations: 4 kB / 0.4944 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008327/0.1668, allocations: 188 kB / 0.4946 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.1668, allocations: 11.94 kB / 0.4946 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-05/0.1669, allocations: 35.92 kB / 0.4947 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.1669, allocations: 4 kB / 0.4947 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.032e-06/0.1669, allocations: 3.938 kB / 0.4947 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.1693, allocations: 1.377 MB / 0.496 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005603/0.1699, allocations: 280.2 kB / 0.4963 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.17, allocations: 27.98 kB / 0.4963 GB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.1704, allocations: 16 kB / 0.4963 GB, free: 9.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.1706, allocations: 64.52 kB / 0.4964 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.804e-05/0.1706, allocations: 27.98 kB / 0.4964 GB, free: 9.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001125/0.1718, allocations: 0.7408 MB / 0.4971 GB, free: 8.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1718, allocations: 0 / 0.4971 GB, free: 8.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001172/0.1729, allocations: 303.7 kB / 0.4974 GB, free: 8.5 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.00435/0.1773, allocations: 2.288 MB / 0.4997 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.1789, allocations: 0.7475 MB / 0.5004 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1789, allocations: 0 / 0.5004 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006596/0.1795, allocations: 372.9 kB / 0.5007 GB, free: 5.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.181, allocations: 355.7 kB / 0.5011 GB, free: 4.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/0.1956, allocations: 9.262 MB / 0.5101 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009128/0.1965, allocations: 1.155 MB / 0.5112 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007831/0.1972, allocations: 220.1 kB / 0.5115 GB, free: 9.852 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006798/0.1979, allocations: 467.2 kB / 0.5119 GB, free: 9.395 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1979, allocations: 0 / 0.5119 GB, free: 9.395 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2411/0.439, allocations: 28.98 MB / 0.5402 GB, free: 57.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.46, allocations: 10.42 kB / 0.5402 GB, free: 57.57 MB / 398.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.110743892844766] Failed to read output from testmodel.py, exit status != 0: 10.603709815070033 10.618316379 10.503495224 Calling exit ...