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.001307/0.001307, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.001261/0.001261, allocations: 194.2 kB / 17.3 MB, free: 5.52 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.413/1.413, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05352/0.05351, allocations: 11.85 MB / 282.4 MB, free: 236 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.001472/0.001472, allocations: 75.8 kB / 343.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2522, allocations: 49.22 MB / 392.5 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005248/0.2575, allocations: 4.404 MB / 396.9 MB, free: 46.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003683/0.2612, allocations: 2.69 MB / 399.6 MB, free: 44.33 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004343/0.2617, allocations: 12.06 kB / 399.6 MB, free: 44.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004732/0.2622, allocations: 154.2 kB / 399.7 MB, free: 44.24 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.0007518/0.263, allocations: 338.2 kB / 400.1 MB, free: 44.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.2643, allocations: 0.5639 MB / 400.6 MB, free: 43.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.2653, allocations: 1.105 MB / 401.7 MB, free: 42.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.2657, allocations: 339.8 kB / 402.1 MB, free: 42.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004222/0.2661, allocations: 398.2 kB / 402.5 MB, free: 42.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004577/0.2666, allocations: 454.9 kB / 402.9 MB, free: 42.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.2667, allocations: 85.19 kB / 403 MB, free: 42.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005902/0.2673, allocations: 297 kB / 403.3 MB, free: 42.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.2675, allocations: 209.6 kB / 403.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003521/0.2679, allocations: 439.8 kB / 403.9 MB, free: 41.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.2689, allocations: 1.169 MB / 405.1 MB, free: 40.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2689, allocations: 0 / 405.1 MB, free: 40.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2689, allocations: 3.938 kB / 405.1 MB, free: 40.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2689, allocations: 0.875 kB / 405.1 MB, free: 40.91 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.001673/0.2706, allocations: 1.084 MB / 406.2 MB, free: 40.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2707, allocations: 12.17 kB / 406.2 MB, free: 40.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.2709, allocations: 83.56 kB / 406.3 MB, free: 39.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/0.2716, allocations: 0.5099 MB / 406.8 MB, free: 39.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.2716, allocations: 44.72 kB / 406.8 MB, free: 39.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.2717, allocations: 61.94 kB / 406.9 MB, free: 39.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.2728, allocations: 0.6784 MB / 407.6 MB, free: 39.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.2729, allocations: 1.406 kB / 407.6 MB, free: 39.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.51e-05/0.2729, allocations: 32.34 kB / 407.6 MB, free: 39.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.273, allocations: 14.66 kB / 407.6 MB, free: 39.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009269/0.2739, allocations: 0.5496 MB / 408.2 MB, free: 38.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.2776, allocations: 3.371 MB / 411.5 MB, free: 35.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007605/0.2784, allocations: 0.5029 MB / 412 MB, free: 35.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.2787, allocations: 200.6 kB / 412.2 MB, free: 34.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.522e-05/0.2788, allocations: 85.11 kB / 412.3 MB, free: 34.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2788, allocations: 38.56 kB / 412.3 MB, free: 34.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.555e-06/0.2788, allocations: 4 kB / 412.3 MB, free: 34.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002813/0.2816, allocations: 1.461 MB / 413.8 MB, free: 33.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.2817, allocations: 81.11 kB / 413.9 MB, free: 33.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.2822, allocations: 0.5693 MB / 414.5 MB, free: 32.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.2823, allocations: 41.7 kB / 414.5 MB, free: 32.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.2824, allocations: 304.7 kB / 414.8 MB, free: 32.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.979e-05/0.2825, allocations: 149.8 kB / 414.9 MB, free: 31.94 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.2827, allocations: 94.16 kB / 415 MB, free: 31.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.987e-05/0.2828, allocations: 374.8 kB / 415.4 MB, free: 31.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.283, allocations: 178.9 kB / 415.6 MB, free: 31.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/0.2833, allocations: 273.9 kB / 415.8 MB, free: 30.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002502/0.2859, allocations: 1.041 MB / 416.9 MB, free: 29.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.2859, allocations: 3.938 kB / 416.9 MB, free: 29.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008949/0.2868, allocations: 0.58 MB / 417.5 MB, free: 29.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.2868, allocations: 33.77 kB / 417.5 MB, free: 29.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2868, allocations: 4 kB / 417.5 MB, free: 29.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.287, allocations: 104.8 kB / 417.6 MB, free: 29.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.2874, allocations: 103.8 kB / 417.7 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.2889, allocations: 1.767 MB / 419.5 MB, free: 27.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005119/0.2894, allocations: 48.05 kB / 419.5 MB, free: 27.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.2895, allocations: 19.94 kB / 419.5 MB, free: 27.05 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.0004168/0.2899, allocations: 270.3 kB / 419.8 MB, free: 26.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.867e-05/0.29, allocations: 67.25 kB / 419.9 MB, free: 26.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009224/0.2909, allocations: 0.5414 MB / 420.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2909, allocations: 4 kB / 420.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.2909, allocations: 3.938 kB / 420.4 MB, free: 26.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2909, allocations: 3.984 kB / 420.4 MB, free: 26.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.2926, allocations: 1.281 MB / 421.7 MB, free: 24.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2926, allocations: 0 / 421.7 MB, free: 24.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.293, allocations: 91.83 kB / 421.8 MB, free: 24.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001309/0.2932, allocations: 76.92 kB / 421.9 MB, free: 24.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.625e-05/0.2932, allocations: 23.98 kB / 421.9 MB, free: 24.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.2943, allocations: 1.582 MB / 423.5 MB, free: 22.87 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.2943, allocations: 11.91 kB / 423.5 MB, free: 22.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.2954, allocations: 0.8154 MB / 424.3 MB, free: 22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.2957, allocations: 192.3 kB / 424.5 MB, free: 21.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.129e-05/0.2958, allocations: 20 kB / 424.5 MB, free: 21.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.2961, allocations: 39.95 kB / 424.5 MB, free: 21.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002466/0.2964, allocations: 127.7 kB / 424.7 MB, free: 21.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.2964, allocations: 15.98 kB / 424.7 MB, free: 21.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004289/0.2969, allocations: 418.8 kB / 425.1 MB, free: 21.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2969, allocations: 0 / 425.1 MB, free: 21.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007532/0.2976, allocations: 196.1 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.001048/0.2987, allocations: 445.4 kB / 425.7 MB, free: 20.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009849/0.2997, allocations: 0.5787 MB / 426.3 MB, free: 20.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2997, allocations: 0.75 kB / 426.3 MB, free: 20.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004141/0.3001, allocations: 398 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.0008175/0.3009, allocations: 194.7 kB / 426.9 MB, free: 19.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.3028, allocations: 1.311 MB / 428.2 MB, free: 18.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.3031, allocations: 0.9183 MB / 429.1 MB, free: 17.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.3034, allocations: 97.02 kB / 429.2 MB, free: 17.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.3036, allocations: 55.42 kB / 429.3 MB, free: 17.06 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3036, allocations: 0 / 429.3 MB, free: 17.06 MB / 318.1 MB Notification: Performance of Templates: time 0.01649/0.3201, allocations: 11.7 MB / 441 MB, free: 5.418 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 cvode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)