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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") translateModel(OpenHydraulics.DevelopmentTests.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 106.9 kB / 16.36 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 190.5 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05598/0.05598, allocations: 11.84 MB / 282.4 MB, free: 224 kB / 222.1 MB 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.001514/0.001515, allocations: 79.88 kB / 343.3 MB, free: 3.176 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1932, allocations: 49.21 MB / 392.5 MB, free: 49.31 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004838/0.1981, allocations: 4.401 MB / 396.9 MB, free: 46.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.2014, allocations: 2.691 MB / 399.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003443/0.2018, allocations: 11.72 kB / 399.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004356/0.2023, allocations: 154 kB / 399.7 MB, free: 44.21 MB / 318.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.0007246/0.203, allocations: 342.6 kB / 400.1 MB, free: 43.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.2042, allocations: 0.5682 MB / 400.6 MB, free: 43.65 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009056/0.2051, allocations: 1.1 MB / 401.7 MB, free: 42.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003897/0.2055, allocations: 339.8 kB / 402.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003688/0.2059, allocations: 390.7 kB / 402.5 MB, free: 42.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004339/0.2063, allocations: 455 kB / 402.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.2065, allocations: 84.5 kB / 403 MB, free: 42.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005361/0.207, allocations: 301.8 kB / 403.3 MB, free: 42.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.2071, allocations: 206.1 kB / 403.5 MB, free: 42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000319/0.2075, allocations: 438.7 kB / 403.9 MB, free: 41.71 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00091/0.2084, allocations: 1.173 MB / 405.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2084, allocations: 1.219 kB / 405.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2084, allocations: 0 / 405.1 MB, free: 40.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2084, allocations: 0 / 405.1 MB, free: 40.89 MB / 318.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.00157/0.21, allocations: 1.084 MB / 406.2 MB, free: 40 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.21, allocations: 17.86 kB / 406.2 MB, free: 39.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.2102, allocations: 81.53 kB / 406.3 MB, free: 39.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/0.2109, allocations: 0.5064 MB / 406.8 MB, free: 39.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.2109, allocations: 49.56 kB / 406.8 MB, free: 39.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.211, allocations: 61.28 kB / 406.9 MB, free: 39.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.2121, allocations: 0.6825 MB / 407.6 MB, free: 39.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.2121, allocations: 5.156 kB / 407.6 MB, free: 39.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.451e-05/0.2121, allocations: 22.09 kB / 407.6 MB, free: 39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.2122, allocations: 13.44 kB / 407.6 MB, free: 39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008956/0.2131, allocations: 0.5416 MB / 408.1 MB, free: 38.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003272/0.2164, allocations: 3.383 MB / 411.5 MB, free: 35.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007558/0.2171, allocations: 0.5044 MB / 412 MB, free: 35.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.2174, allocations: 203.4 kB / 412.2 MB, free: 34.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.36e-05/0.2175, allocations: 85.11 kB / 412.3 MB, free: 34.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.2175, allocations: 38.56 kB / 412.3 MB, free: 34.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.943e-06/0.2176, allocations: 0 / 412.3 MB, free: 34.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002615/0.2202, allocations: 1.457 MB / 413.8 MB, free: 33.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.356e-05/0.2202, allocations: 81.11 kB / 413.9 MB, free: 33.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005106/0.2207, allocations: 0.5732 MB / 414.5 MB, free: 32.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.2208, allocations: 37.7 kB / 414.5 MB, free: 32.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.2209, allocations: 308.6 kB / 414.8 MB, free: 32.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.91e-05/0.221, allocations: 157.8 kB / 414.9 MB, free: 31.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.2211, allocations: 90.16 kB / 415 MB, free: 31.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.2212, allocations: 366.8 kB / 415.4 MB, free: 31.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002841/0.2215, allocations: 190.8 kB / 415.6 MB, free: 31.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.2218, allocations: 265.9 kB / 415.8 MB, free: 30.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002593/0.2244, allocations: 1.052 MB / 416.9 MB, free: 29.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2244, allocations: 4 kB / 416.9 MB, free: 29.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008419/0.2253, allocations: 0.5719 MB / 417.5 MB, free: 29.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.2253, allocations: 41.64 kB / 417.5 MB, free: 29.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.2253, allocations: 4.375 kB / 417.5 MB, free: 29.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001761/0.2255, allocations: 96.81 kB / 417.6 MB, free: 29.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.2259, allocations: 99.88 kB / 417.7 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.2272, allocations: 1.771 MB / 419.5 MB, free: 27.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004317/0.2277, allocations: 44.05 kB / 419.5 MB, free: 27.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/0.2277, allocations: 23.94 kB / 419.5 MB, free: 27.04 MB / 318.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.0003144/0.2281, allocations: 270.4 kB / 419.8 MB, free: 26.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.996e-05/0.2282, allocations: 59.25 kB / 419.9 MB, free: 26.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008912/0.2291, allocations: 0.5492 MB / 420.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.2291, allocations: 4 kB / 420.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.2291, allocations: 3.938 kB / 420.4 MB, free: 26.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.2291, allocations: 3.984 kB / 420.4 MB, free: 26.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.2307, allocations: 1.285 MB / 421.7 MB, free: 24.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2307, allocations: 0 / 421.7 MB, free: 24.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003873/0.2311, allocations: 79.89 kB / 421.8 MB, free: 24.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001235/0.2312, allocations: 84.92 kB / 421.9 MB, free: 24.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.2313, allocations: 15.98 kB / 421.9 MB, free: 24.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.2323, allocations: 1.598 MB / 423.5 MB, free: 22.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2323, allocations: 3.938 kB / 423.5 MB, free: 22.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009925/0.2333, allocations: 0.8113 MB / 424.3 MB, free: 22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.2335, allocations: 196.4 kB / 424.5 MB, free: 21.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.979e-05/0.2336, allocations: 20 kB / 424.5 MB, free: 21.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003696/0.234, allocations: 35.95 kB / 424.5 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.2342, allocations: 123.8 kB / 424.7 MB, free: 21.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.2343, allocations: 19.98 kB / 424.7 MB, free: 21.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.2347, allocations: 410.8 kB / 425.1 MB, free: 21.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2347, allocations: 0 / 425.1 MB, free: 21.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006179/0.2353, allocations: 208 kB / 425.3 MB, free: 21 MB / 318.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.0008759/0.2362, allocations: 442.9 kB / 425.7 MB, free: 20.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008175/0.237, allocations: 0.5826 MB / 426.3 MB, free: 20.1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.237, allocations: 0 / 426.3 MB, free: 20.1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004104/0.2374, allocations: 390.8 kB / 426.7 MB, free: 19.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.2382, allocations: 193 kB / 426.9 MB, free: 19.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.2398, allocations: 1.311 MB / 428.2 MB, free: 18.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.2401, allocations: 0.9222 MB / 429.1 MB, free: 17.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.2404, allocations: 89.02 kB / 429.2 MB, free: 17.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.2405, allocations: 55.42 kB / 429.3 MB, free: 17.07 MB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2405, allocations: 0 / 429.3 MB, free: 17.07 MB / 318.1 MB Notification: Performance of Templates: time 0.01437/0.2549, allocations: 11.7 MB / 441 MB, free: 5.43 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.makefile (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 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)