Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.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.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001583, allocations: 107.1 kB / 16.29 MB, free: 6.023 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.001845/0.001845, allocations: 189.6 kB / 17.22 MB, free: 5.629 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.294/1.294, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05666/0.05666, allocations: 11.85 MB / 282.3 MB, free: 304 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.001738/0.001738, allocations: 67.91 kB / 342.5 MB, free: 3.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2147, allocations: 49.22 MB / 391.8 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006191/0.2209, allocations: 6.083 MB / 397.9 MB, free: 45.01 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005101/0.226, allocations: 3.275 MB / 401.1 MB, free: 42.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007335/0.2268, allocations: 16.41 kB / 401.1 MB, free: 42.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006589/0.2275, allocations: 291.3 kB / 401.4 MB, free: 42.51 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.001147/0.2287, allocations: 0.5825 MB / 402 MB, free: 42.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.2304, allocations: 0.8463 MB / 402.9 MB, free: 41.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001518/0.232, allocations: 1.846 MB / 404.7 MB, free: 40.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006388/0.2326, allocations: 0.5504 MB / 405.3 MB, free: 39.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006957/0.2333, allocations: 0.6397 MB / 405.9 MB, free: 39.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006551/0.234, allocations: 0.7298 MB / 406.6 MB, free: 39.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.2341, allocations: 125.5 kB / 406.7 MB, free: 39.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007607/0.2349, allocations: 395.2 kB / 407.1 MB, free: 39.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002351/0.2352, allocations: 349.6 kB / 407.5 MB, free: 38.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005566/0.2357, allocations: 0.7332 MB / 408.2 MB, free: 38.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001626/0.2374, allocations: 1.972 MB / 410.2 MB, free: 36.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2374, allocations: 0 / 410.2 MB, free: 36.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2374, allocations: 0 / 410.2 MB, free: 36.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.2374, allocations: 0 / 410.2 MB, free: 36.85 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002218/0.2396, allocations: 1.615 MB / 411.8 MB, free: 35.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.2397, allocations: 15.83 kB / 411.8 MB, free: 35.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.2399, allocations: 155.1 kB / 412 MB, free: 35.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008639/0.2408, allocations: 0.8114 MB / 412.8 MB, free: 34.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.2409, allocations: 77.94 kB / 412.8 MB, free: 34.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.241, allocations: 103.9 kB / 412.9 MB, free: 34.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.2425, allocations: 1.114 MB / 414.1 MB, free: 32.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.2425, allocations: 0 / 414.1 MB, free: 32.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.674e-05/0.2426, allocations: 40 kB / 414.1 MB, free: 32.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.2426, allocations: 24 kB / 414.1 MB, free: 32.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.244, allocations: 1.011 MB / 415.1 MB, free: 31.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004774/0.2488, allocations: 6.011 MB / 421.1 MB, free: 25.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009681/0.2498, allocations: 0.742 MB / 421.9 MB, free: 24.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.2504, allocations: 382.7 kB / 422.3 MB, free: 23.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001861/0.2505, allocations: 190.8 kB / 422.4 MB, free: 23.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/0.2506, allocations: 43.22 kB / 422.5 MB, free: 23.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.753e-06/0.2506, allocations: 0 / 422.5 MB, free: 23.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.003914/0.2545, allocations: 2.265 MB / 424.8 MB, free: 21.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.2546, allocations: 64.06 kB / 424.8 MB, free: 21.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009603/0.2555, allocations: 1.062 MB / 425.9 MB, free: 20.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.2556, allocations: 41.7 kB / 425.9 MB, free: 20.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.2559, allocations: 0.5386 MB / 426.5 MB, free: 19.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.256, allocations: 268 kB / 426.7 MB, free: 19.38 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.2562, allocations: 166.5 kB / 426.9 MB, free: 19.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.487e-05/0.2563, allocations: 337.9 kB / 427.2 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004967/0.2568, allocations: 347.7 kB / 427.6 MB, free: 18.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005438/0.2573, allocations: 0.4966 MB / 428 MB, free: 17.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00513/0.2625, allocations: 1.804 MB / 429.9 MB, free: 16.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2625, allocations: 4 kB / 429.9 MB, free: 16.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001505/0.264, allocations: 1.007 MB / 430.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.264, allocations: 11.38 kB / 430.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.2641, allocations: 8 kB / 430.9 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.2641, allocations: 15.94 kB / 430.9 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008569/0.2649, allocations: 231.5 kB / 431.1 MB, free: 14.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/0.265, allocations: 11.98 kB / 431.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006402/0.2656, allocations: 32 kB / 431.2 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.726e-05/0.2657, allocations: 39.97 kB / 431.2 MB, free: 14.73 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005612/0.2663, allocations: 371.1 kB / 431.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.2664, allocations: 114.6 kB / 431.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.2679, allocations: 0.9465 MB / 432.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.2679, allocations: 8 kB / 432.6 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2679, allocations: 8 kB / 432.6 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.268, allocations: 7.922 kB / 432.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.2708, allocations: 2.317 MB / 435 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2708, allocations: 4 kB / 435 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007764/0.2716, allocations: 183.8 kB / 435.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.672e-06/0.2716, allocations: 4 kB / 435.2 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.077e-05/0.2717, allocations: 31.98 kB / 435.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.75e-06/0.2717, allocations: 4 kB / 435.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2717, allocations: 4.219 kB / 435.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001643/0.2733, allocations: 1.371 MB / 436.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.2736, allocations: 275.6 kB / 436.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.2738, allocations: 20 kB / 436.9 MB, free: 8.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004375/0.2742, allocations: 19.98 kB / 436.9 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.242e-05/0.2743, allocations: 64.45 kB / 436.9 MB, free: 8.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.2744, allocations: 31.98 kB / 437 MB, free: 8.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007125/0.2751, allocations: 0.7408 MB / 437.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2751, allocations: 0 / 437.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008088/0.2759, allocations: 307.9 kB / 438 MB, free: 7.734 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009653/0.2769, allocations: 467 kB / 438.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.2781, allocations: 0.7919 MB / 439.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2781, allocations: 0 / 439.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.2786, allocations: 395.5 kB / 439.6 MB, free: 6.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.2798, allocations: 356.7 kB / 440 MB, free: 5.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.2825, allocations: 2.336 MB / 442.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.283, allocations: 1.155 MB / 443.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005526/0.2835, allocations: 224.1 kB / 443.7 MB, free: 2.117 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.2838, allocations: 107.4 kB / 443.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2838, allocations: 0 / 443.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of Templates: time 0.02711/0.3109, allocations: 17.72 MB / 461.5 MB, free: 356 kB / 334.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)