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.001276/0.001276, allocations: 107.8 kB / 16.41 MB, free: 6.449 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.001303/0.001303, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.418/1.418, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06198/0.06198, allocations: 11.85 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.002185/0.002185, allocations: 74.23 kB / 393 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06647/0.06866, allocations: 49.23 MB / 442.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005181/0.07384, allocations: 4.42 MB / 446.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004142/0.07798, allocations: 2.696 MB / 449.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002715/0.07825, allocations: 11.94 kB / 449.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004787/0.07873, allocations: 158.8 kB / 449.5 MB, free: 10.77 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.0007532/0.07948, allocations: 345.7 kB / 449.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.08072, allocations: 0.5724 MB / 450.4 MB, free: 9.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.08193, allocations: 1.098 MB / 451.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.08231, allocations: 224.7 kB / 451.7 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005299/0.08284, allocations: 402.6 kB / 452.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000564/0.08341, allocations: 454.2 kB / 452.6 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.08353, allocations: 88 kB / 452.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000537/0.08407, allocations: 303.8 kB / 453 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002053/0.08427, allocations: 203.3 kB / 453.2 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004301/0.0847, allocations: 438.1 kB / 453.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.08612, allocations: 1.183 MB / 454.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.08612, allocations: 0 / 454.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08612, allocations: 0 / 454.8 MB, free: 5.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.08614, allocations: 0 / 454.8 MB, free: 5.484 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.002062/0.0882, allocations: 1.107 MB / 455.9 MB, free: 4.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.08824, allocations: 15.89 kB / 455.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.08846, allocations: 88.42 kB / 456 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000784/0.08924, allocations: 0.5058 MB / 456.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.125e-05/0.08929, allocations: 49.25 kB / 456.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.08941, allocations: 63.95 kB / 456.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.09065, allocations: 0.683 MB / 457.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.09067, allocations: 0 / 457.3 MB, free: 2.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-05/0.09074, allocations: 24 kB / 457.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.09075, allocations: 20 kB / 457.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.09182, allocations: 0.5477 MB / 457.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004825/0.09665, allocations: 3.391 MB / 461.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.09765, allocations: 479.8 kB / 461.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.09802, allocations: 184.6 kB / 461.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001277/0.09815, allocations: 93.09 kB / 462 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.09819, allocations: 38.55 kB / 462 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.465e-06/0.09819, allocations: 4 kB / 462 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003418/0.1016, allocations: 1.466 MB / 463.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.1017, allocations: 81.11 kB / 463.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007479/0.1024, allocations: 0.5771 MB / 464.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.1025, allocations: 37.7 kB / 464.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.1027, allocations: 309.2 kB / 464.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.1029, allocations: 158.7 kB / 464.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.1031, allocations: 94.2 kB / 464.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.1033, allocations: 370.8 kB / 465.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.1036, allocations: 178.9 kB / 465.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.1041, allocations: 277.9 kB / 465.6 MB, free: 9.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003109/0.1072, allocations: 1.037 MB / 466.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1072, allocations: 0 / 466.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001132/0.1083, allocations: 0.5804 MB / 467.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.1084, allocations: 40.52 kB / 467.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.1084, allocations: 4 kB / 467.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002161/0.1086, allocations: 96.81 kB / 467.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.109, allocations: 103.8 kB / 467.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.1111, allocations: 1.775 MB / 469.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.1116, allocations: 51.98 kB / 469.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.1116, allocations: 19.94 kB / 469.3 MB, free: 6.035 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.0004282/0.112, allocations: 271.3 kB / 469.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.1121, allocations: 67.56 kB / 469.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.1133, allocations: 0.5375 MB / 470.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.096e-06/0.1133, allocations: 8 kB / 470.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1133, allocations: 3.938 kB / 470.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1133, allocations: 3.984 kB / 470.1 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002182/0.1155, allocations: 1.289 MB / 471.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.1155, allocations: 0 / 471.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.1159, allocations: 79.91 kB / 471.5 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001684/0.1161, allocations: 92.91 kB / 471.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.796e-05/0.1161, allocations: 15.92 kB / 471.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/0.1179, allocations: 1.59 MB / 473.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1179, allocations: 3.938 kB / 473.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.1193, allocations: 0.8158 MB / 474 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002865/0.1196, allocations: 196.7 kB / 474.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.428e-05/0.1197, allocations: 16 kB / 474.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000411/0.1201, allocations: 35.95 kB / 474.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002775/0.1204, allocations: 123.8 kB / 474.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.1204, allocations: 19.98 kB / 474.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005413/0.1209, allocations: 422.8 kB / 474.8 MB, free: 180 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1209, allocations: 0 / 474.8 MB, free: 180 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007194/0.1217, allocations: 199.8 kB / 475 MB, free: 15.98 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.001476/0.1231, allocations: 449 kB / 475.5 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.1242, allocations: 0.5548 MB / 476 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.1242, allocations: 4.75 kB / 476 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005743/0.1248, allocations: 378 kB / 476.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008841/0.1257, allocations: 192.5 kB / 476.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.128, allocations: 1.325 MB / 477.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006149/0.1286, allocations: 0.9259 MB / 478.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.1289, allocations: 93.02 kB / 478.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.1291, allocations: 47.42 kB / 479 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1291, allocations: 0 / 479 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Templates: time 0.02163/0.1507, allocations: 11.91 MB / 490.9 MB, free: 144 kB / 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 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)