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.0016/0.0016, allocations: 103.7 kB / 16.37 MB, free: 6.477 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.001808/0.001808, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.279/1.279, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05663/0.05663, allocations: 11.85 MB / 282.4 MB, free: 240 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.001529/0.001529, allocations: 71.81 kB / 343.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1885, allocations: 49.2 MB / 392.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.005736/0.1943, allocations: 6.089 MB / 398.6 MB, free: 44.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.1983, allocations: 3.269 MB / 401.8 MB, free: 42.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003411/0.1986, allocations: 15.78 kB / 401.9 MB, free: 42.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005314/0.1992, allocations: 293.3 kB / 402.1 MB, free: 42.44 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.0008961/0.2001, allocations: 0.587 MB / 402.7 MB, free: 41.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.2014, allocations: 0.8465 MB / 403.6 MB, free: 41.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.2027, allocations: 1.853 MB / 405.4 MB, free: 40.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005939/0.2033, allocations: 0.5504 MB / 406 MB, free: 39.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005628/0.2039, allocations: 0.6392 MB / 406.6 MB, free: 39.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006582/0.2046, allocations: 0.7307 MB / 407.4 MB, free: 39.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.2047, allocations: 124.5 kB / 407.5 MB, free: 39.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006314/0.2054, allocations: 403.7 kB / 407.9 MB, free: 38.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.2056, allocations: 352.8 kB / 408.2 MB, free: 38.64 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005405/0.2061, allocations: 0.7298 MB / 408.9 MB, free: 38.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001389/0.2075, allocations: 1.964 MB / 410.9 MB, free: 36.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2076, allocations: 0 / 410.9 MB, free: 36.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2076, allocations: 0 / 410.9 MB, free: 36.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.2076, allocations: 0 / 410.9 MB, free: 36.64 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.002068/0.2097, allocations: 1.62 MB / 412.5 MB, free: 34.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.881e-05/0.2097, allocations: 15.89 kB / 412.5 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.2099, allocations: 155.1 kB / 412.7 MB, free: 34.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009295/0.2109, allocations: 0.8231 MB / 413.5 MB, free: 33.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.962e-05/0.2109, allocations: 77.94 kB / 413.6 MB, free: 33.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.2111, allocations: 99.91 kB / 413.7 MB, free: 33.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.2125, allocations: 1.114 MB / 414.8 MB, free: 32.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.2125, allocations: 0 / 414.8 MB, free: 32.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.429e-05/0.2126, allocations: 36 kB / 414.8 MB, free: 32.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.2126, allocations: 27.94 kB / 414.9 MB, free: 32.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.214, allocations: 1.015 MB / 415.9 MB, free: 31.55 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004492/0.2185, allocations: 6.003 MB / 421.9 MB, free: 24.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009496/0.2195, allocations: 0.7498 MB / 422.6 MB, free: 24.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005422/0.22, allocations: 390.6 kB / 423 MB, free: 23.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001695/0.2202, allocations: 182.8 kB / 423.2 MB, free: 23.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2202, allocations: 47.22 kB / 423.2 MB, free: 23.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.864e-06/0.2202, allocations: 0 / 423.2 MB, free: 23.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.003744/0.224, allocations: 2.269 MB / 425.5 MB, free: 21.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/0.224, allocations: 60.06 kB / 425.6 MB, free: 21.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000944/0.225, allocations: 1.062 MB / 426.6 MB, free: 19.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.225, allocations: 37.7 kB / 426.7 MB, free: 19.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002441/0.2253, allocations: 0.5386 MB / 427.2 MB, free: 19.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.2254, allocations: 264.1 kB / 427.5 MB, free: 19.1 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.2256, allocations: 174.5 kB / 427.6 MB, free: 18.92 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.955e-05/0.2257, allocations: 341.9 kB / 428 MB, free: 18.58 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004845/0.2262, allocations: 348.7 kB / 428.3 MB, free: 18.24 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005272/0.2267, allocations: 0.4927 MB / 428.8 MB, free: 17.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004999/0.2317, allocations: 1.804 MB / 430.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2317, allocations: 4 kB / 430.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001374/0.2331, allocations: 1.008 MB / 431.6 MB, free: 14.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2331, allocations: 8 kB / 431.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2332, allocations: 4 kB / 431.6 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.2332, allocations: 15.94 kB / 431.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008292/0.234, allocations: 227.6 kB / 431.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.234, allocations: 12.2 kB / 431.9 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.2345, allocations: 32 kB / 431.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.367e-05/0.2346, allocations: 39.98 kB / 431.9 MB, free: 14.45 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.0003878/0.235, allocations: 375.1 kB / 432.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.2351, allocations: 114.6 kB / 432.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.2366, allocations: 0.9465 MB / 433.4 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2366, allocations: 8 kB / 433.4 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2366, allocations: 4 kB / 433.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.2366, allocations: 3.984 kB / 433.4 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/0.2393, allocations: 2.308 MB / 435.7 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.2393, allocations: 11.92 kB / 435.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007589/0.2401, allocations: 192 kB / 435.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.2401, allocations: 4 kB / 435.9 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.243e-05/0.2402, allocations: 27.98 kB / 435.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2402, allocations: 4 kB / 435.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2402, allocations: 0 / 435.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/0.2418, allocations: 1.372 MB / 437.3 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003225/0.2422, allocations: 275.6 kB / 437.6 MB, free: 8.637 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/0.2423, allocations: 20 kB / 437.6 MB, free: 8.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004265/0.2427, allocations: 23.98 kB / 437.6 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2428, allocations: 76.38 kB / 437.7 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.781e-05/0.2429, allocations: 27.98 kB / 437.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006689/0.2436, allocations: 0.7369 MB / 438.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2436, allocations: 0 / 438.5 MB, free: 7.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007328/0.2443, allocations: 311.9 kB / 438.8 MB, free: 7.441 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.0009235/0.2452, allocations: 464.7 kB / 439.2 MB, free: 7.141 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.2463, allocations: 0.7906 MB / 440 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2463, allocations: 0 / 440 MB, free: 6.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005039/0.2469, allocations: 401 kB / 440.4 MB, free: 5.961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.248, allocations: 365.2 kB / 440.8 MB, free: 5.613 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.2506, allocations: 2.329 MB / 443.1 MB, free: 3.234 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.2511, allocations: 1.159 MB / 444.2 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000532/0.2516, allocations: 220.1 kB / 444.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002481/0.2519, allocations: 107.4 kB / 444.6 MB, free: 1.727 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2519, allocations: 0 / 444.6 MB, free: 1.727 MB / 318.1 MB Notification: Performance of Templates: time 0.02545/0.2773, allocations: 17.73 MB / 462.3 MB, free: 56 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)