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.007211/0.007211, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001688/0.001688, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.398/1.398, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05546/0.05546, allocations: 11.84 MB / 281.7 MB, free: 9.352 MB / 238.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.001629/0.001629, allocations: 67.91 kB / 392.3 MB, free: 3.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2721, allocations: 49.23 MB / 441.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005269/0.2774, allocations: 4.41 MB / 446 MB, free: 1.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004205/0.2816, allocations: 2.7 MB / 448.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006648/0.2823, allocations: 7.844 kB / 448.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006505/0.283, allocations: 150 kB / 448.8 MB, free: 15.29 MB / 334.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.001209/0.2842, allocations: 358.8 kB / 449.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001818/0.2861, allocations: 0.5732 MB / 449.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.2874, allocations: 1.099 MB / 450.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005203/0.2879, allocations: 327.2 kB / 451.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008449/0.2888, allocations: 408.4 kB / 451.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008994/0.2897, allocations: 438.6 kB / 452 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002274/0.29, allocations: 85.25 kB / 452.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009029/0.2909, allocations: 312.5 kB / 452.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002782/0.2912, allocations: 193.7 kB / 452.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006646/0.2918, allocations: 448.3 kB / 453 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001603/0.2934, allocations: 1.175 MB / 454.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.2935, allocations: 4 kB / 454.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.2935, allocations: 0.9688 kB / 454.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.2935, allocations: 0 / 454.2 MB, free: 11.84 MB / 334.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.00207/0.2956, allocations: 1.088 MB / 455.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.2956, allocations: 13.23 kB / 455.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.2959, allocations: 82.81 kB / 455.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007926/0.2967, allocations: 0.4989 MB / 455.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.2968, allocations: 53.2 kB / 455.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.2969, allocations: 58.06 kB / 456 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.2981, allocations: 0.6816 MB / 456.7 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.2982, allocations: 4.938 kB / 456.7 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.171e-05/0.2982, allocations: 25.38 kB / 456.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.2982, allocations: 14.69 kB / 456.7 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009984/0.2993, allocations: 0.5415 MB / 457.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004344/0.3036, allocations: 3.383 MB / 460.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000925/0.3046, allocations: 0.4934 MB / 461.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003701/0.3049, allocations: 190.6 kB / 461.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001247/0.3051, allocations: 102.4 kB / 461.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.3051, allocations: 40 kB / 461.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 4.819e-06/0.3051, allocations: 5.234 kB / 461.5 MB, free: 5.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.003382/0.3085, allocations: 1.448 MB / 462.9 MB, free: 4.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.3086, allocations: 86.88 kB / 463 MB, free: 4.797 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007926/0.3094, allocations: 0.5718 MB / 463.6 MB, free: 4.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.3095, allocations: 45.73 kB / 463.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002403/0.3097, allocations: 302.6 kB / 463.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3098, allocations: 151.5 kB / 464 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.31, allocations: 94.95 kB / 464.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3102, allocations: 368.1 kB / 464.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.3106, allocations: 186.3 kB / 464.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/0.311, allocations: 282.1 kB / 465 MB, free: 3.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/0.3138, allocations: 1.029 MB / 466 MB, free: 2.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.3138, allocations: 4 kB / 466 MB, free: 2.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001118/0.3149, allocations: 0.5798 MB / 466.6 MB, free: 1.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.315, allocations: 29.7 kB / 466.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.315, allocations: 4 kB / 466.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002249/0.3152, allocations: 100.8 kB / 466.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004235/0.3157, allocations: 96.2 kB / 466.8 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.3176, allocations: 1.786 MB / 468.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.3182, allocations: 39.95 kB / 468.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.3183, allocations: 23.92 kB / 468.6 MB, free: 15.28 MB / 350.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.000491/0.3188, allocations: 274.5 kB / 468.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.3189, allocations: 67.23 kB / 469 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001167/0.3201, allocations: 0.5453 MB / 469.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.3201, allocations: 4 kB / 469.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3201, allocations: 3.938 kB / 469.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.3202, allocations: 0 / 469.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.3224, allocations: 1.281 MB / 470.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3224, allocations: 0 / 470.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/0.3229, allocations: 91.83 kB / 470.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001556/0.323, allocations: 80.81 kB / 471 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.944e-05/0.3231, allocations: 19.98 kB / 471 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.3246, allocations: 1.582 MB / 472.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.3247, allocations: 7.969 kB / 472.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.3259, allocations: 0.8193 MB / 473.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/0.3263, allocations: 188.4 kB / 473.6 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.3264, allocations: 16 kB / 473.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004018/0.3268, allocations: 43.95 kB / 473.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.3271, allocations: 123.8 kB / 473.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.3271, allocations: 15.98 kB / 473.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005267/0.3277, allocations: 414.8 kB / 474.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3277, allocations: 0 / 474.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008569/0.3285, allocations: 200 kB / 474.4 MB, free: 9.238 MB / 350.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.001287/0.3298, allocations: 439.5 kB / 474.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001279/0.3311, allocations: 0.59 MB / 475.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.249e-06/0.3311, allocations: 0 / 475.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.3318, allocations: 389.9 kB / 475.8 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000949/0.3327, allocations: 194.8 kB / 476 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.3352, allocations: 1.296 MB / 477.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005788/0.3358, allocations: 0.9298 MB / 478.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.3361, allocations: 96.91 kB / 478.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001655/0.3363, allocations: 59.41 kB / 478.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3363, allocations: 0 / 478.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of Templates: time 0.01992/0.3562, allocations: 11.82 MB / 490.2 MB, free: 9.371 MB / 366.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 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)