Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.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.001437/0.001437, allocations: 110 kB / 18.93 MB, free: 2.945 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.001512/0.001512, allocations: 185.8 kB / 22.22 MB, free: 5.16 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.47/1.47, allocations: 207.6 MB / 233 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.06108/0.06108, allocations: 12.01 MB / 297.3 MB, free: 9.852 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.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") translateModel(OpenHydraulics.DevelopmentTests.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") [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.002286/0.002286, allocations: 71.91 kB / 416.8 MB, free: 42.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08322/0.0855, allocations: 51.94 MB / 468.7 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.006179/0.09168, allocations: 4.468 MB / 473.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004488/0.09617, allocations: 2.727 MB / 475.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000443/0.09661, allocations: 11.94 kB / 475.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005317/0.09715, allocations: 154.8 kB / 476.1 MB, free: 14.98 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.0009202/0.09807, allocations: 353.7 kB / 476.4 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.09949, allocations: 0.5674 MB / 477 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001316/0.1008, allocations: 1.109 MB / 478.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003751/0.1012, allocations: 197.2 kB / 478.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005611/0.1017, allocations: 414.6 kB / 478.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006093/0.1023, allocations: 446.3 kB / 479.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.1025, allocations: 88 kB / 479.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000595/0.1031, allocations: 307.8 kB / 479.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.1033, allocations: 203.3 kB / 479.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004303/0.1037, allocations: 445.9 kB / 480.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001443/0.1051, allocations: 1.176 MB / 481.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1051, allocations: 3.938 kB / 481.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1052, allocations: 0 / 481.3 MB, free: 9.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1052, allocations: 0 / 481.3 MB, free: 9.695 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002123/0.1073, allocations: 1.036 MB / 482.3 MB, free: 8.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.1073, allocations: 15.98 kB / 482.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002645/0.1076, allocations: 92.34 kB / 482.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007898/0.1084, allocations: 444.2 kB / 482.9 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.743e-05/0.1085, allocations: 49.25 kB / 482.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1086, allocations: 63.95 kB / 483 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.1099, allocations: 0.683 MB / 483.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/0.1099, allocations: 0 / 483.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.11, allocations: 31.94 kB / 483.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.11, allocations: 12 kB / 483.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.111, allocations: 0.5439 MB / 484.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004772/0.1158, allocations: 3.25 MB / 487.5 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009137/0.1167, allocations: 414.5 kB / 487.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/0.117, allocations: 180.8 kB / 488.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.549e-05/0.1171, allocations: 11.98 kB / 488.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/0.1172, allocations: 38.56 kB / 488.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.1172, allocations: 0 / 488.1 MB, free: 2.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00325/0.1204, allocations: 1.318 MB / 489.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.1205, allocations: 81.11 kB / 489.5 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008353/0.1213, allocations: 0.5771 MB / 490.1 MB, free: 368 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.01e-05/0.1214, allocations: 37.7 kB / 490.2 MB, free: 324 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003033/0.1217, allocations: 309.2 kB / 490.5 MB, free: 12 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.1218, allocations: 158.6 kB / 490.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.122, allocations: 98.12 kB / 490.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.1222, allocations: 366.8 kB / 491.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000359/0.1226, allocations: 182.8 kB / 491.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000447/0.123, allocations: 273.3 kB / 491.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.1261, allocations: 1.041 MB / 492.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1261, allocations: 0 / 492.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001094/0.1272, allocations: 0.58 MB / 493.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.756e-05/0.1272, allocations: 33.7 kB / 493.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.1272, allocations: 4 kB / 493.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002266/0.1275, allocations: 93.19 kB / 493.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.1279, allocations: 103.8 kB / 493.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.1299, allocations: 1.675 MB / 495 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.1303, allocations: 43.95 kB / 495.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.1304, allocations: 24.02 kB / 495.1 MB, free: 11.11 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(unit = \"rad\" fixed = true ) \"Angle of flange with respect to support (= flange.phi - support.phi)\" type: Real reliefValve.variableRestriction.port_a.p:VARIABLE(flow=false min = 0.0 start = idealPump.fluidPower2MechRot.p_init unit = \"Pa\" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) \"Pressure in the connection point\" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) \"Normalized valve position (between 0 and 1)\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (reliefValve.variableRestriction.data.zetaLaminarKnown,idealPump.mechanicalPumpLosses.free,idealPump.mechanicalPumpLosses.mode,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.startBackward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000474/0.1308, allocations: 278.4 kB / 495.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/0.1309, allocations: 63.62 kB / 495.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.1321, allocations: 0.546 MB / 496 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.1321, allocations: 4 kB / 496 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1321, allocations: 7.938 kB / 496 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.1321, allocations: 0 / 496 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/0.1343, allocations: 1.257 MB / 497.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1343, allocations: 0 / 497.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004151/0.1348, allocations: 87.83 kB / 497.3 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.1349, allocations: 84.75 kB / 497.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.64e-05/0.135, allocations: 12 kB / 497.4 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.1366, allocations: 1.49 MB / 498.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/0.1366, allocations: 11.91 kB / 498.9 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.138, allocations: 0.8041 MB / 499.7 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.1383, allocations: 115.6 kB / 499.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.546e-05/0.1384, allocations: 19.98 kB / 499.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.1387, allocations: 39.95 kB / 499.9 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/0.139, allocations: 131.7 kB / 0.4883 GB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.551e-05/0.139, allocations: 15.98 kB / 0.4883 GB, free: 5.891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005719/0.1396, allocations: 414.8 kB / 0.4887 GB, free: 5.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1396, allocations: 0 / 0.4887 GB, free: 5.488 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007361/0.1403, allocations: 199.7 kB / 0.4889 GB, free: 5.293 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (reliefValve.variableRestriction.port_a.p,reliefValve.valvePosition,circuitTank.volumeOpen.m,constantSpeed.phi) * Number of discrete variables: 4 (idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 3 (idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001486/0.1418, allocations: 440 kB / 0.4893 GB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.143, allocations: 0.5672 MB / 0.4899 GB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.143, allocations: 0 / 0.4899 GB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005514/0.1435, allocations: 377.8 kB / 0.4903 GB, free: 3.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008762/0.1444, allocations: 194.2 kB / 0.4904 GB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.1468, allocations: 1.338 MB / 0.4917 GB, free: 2.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.1475, allocations: 0.9299 MB / 0.4927 GB, free: 1.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003458/0.1478, allocations: 89.03 kB / 0.4927 GB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.148, allocations: 55.41 kB / 0.4928 GB, free: 1.32 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.148, allocations: 0 / 0.4928 GB, free: 1.32 MB / 366.1 MB Notification: Performance of Templates: time 0.02339/0.1713, allocations: 12.23 MB / 0.5047 GB, free: 5.086 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.makefile [Timeout 660] (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.932669868692756] Failed to read output from testmodel.py, exit status != 0: 0.1797404382377863 0.19626682699999995 0.087649373 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f6cf4cbd7b0>