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.001138/0.001138, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001106/0.001106, allocations: 193.8 kB / 16.13 MB, free: 6.66 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.357/1.357, allocations: 205.1 MB / 222 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0518/0.0518, allocations: 11.83 MB / 281.2 MB, free: 9.641 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.001322/0.001322, allocations: 72.78 kB / 341.1 MB, free: 22.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 49.22 MB / 390.4 MB, free: 5.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.009515/0.1194, allocations: 7.855 MB / 398.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007442/0.1269, allocations: 3.535 MB / 401.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.128, allocations: 19.94 kB / 401.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008957/0.1289, allocations: 242.7 kB / 402 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001496/0.1305, allocations: 0.5243 MB / 402.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.1325, allocations: 0.725 MB / 403.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002007/0.1345, allocations: 1.833 MB / 405.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006326/0.1352, allocations: 0.4917 MB / 405.6 MB, free: 5.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006912/0.1359, allocations: 0.5484 MB / 406.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008025/0.1367, allocations: 0.6922 MB / 406.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.1368, allocations: 67.98 kB / 406.9 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008499/0.1377, allocations: 331.7 kB / 407.2 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002961/0.138, allocations: 282.8 kB / 407.5 MB, free: 3.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006564/0.1387, allocations: 0.6604 MB / 408.2 MB, free: 3.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001695/0.1404, allocations: 1.904 MB / 410.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1404, allocations: 0 / 410.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1404, allocations: 0 / 410.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.1404, allocations: 0 / 410.1 MB, free: 1.355 MB / 302.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.002944/0.1434, allocations: 1.608 MB / 411.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.1434, allocations: 16.02 kB / 411.7 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003445/0.1438, allocations: 151.2 kB / 411.8 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.1449, allocations: 0.823 MB / 412.7 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.797e-05/0.145, allocations: 81.94 kB / 412.7 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001539/0.1452, allocations: 96 kB / 412.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.147, allocations: 1.118 MB / 413.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.147, allocations: 0 / 413.9 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.032e-05/0.1471, allocations: 36 kB / 414 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.1471, allocations: 20 kB / 414 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.1488, allocations: 1.015 MB / 415 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006248/0.155, allocations: 6.011 MB / 421 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.1563, allocations: 0.746 MB / 421.8 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006506/0.1569, allocations: 386.7 kB / 422.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.1572, allocations: 190.8 kB / 422.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.1572, allocations: 39.22 kB / 422.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.564e-06/0.1572, allocations: 0 / 422.4 MB, free: 4.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004833/0.1621, allocations: 2.273 MB / 424.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.1621, allocations: 60.06 kB / 424.7 MB, free: 1.762 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.1635, allocations: 1.058 MB / 425.8 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.1635, allocations: 37.7 kB / 425.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000401/0.164, allocations: 0.5347 MB / 426.3 MB, free: 100 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2111/0.3751, allocations: 265.9 kB / 426.6 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003547/0.3755, allocations: 165.5 kB / 426.8 MB, free: 41.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.997e-05/0.3756, allocations: 342.5 kB / 427.1 MB, free: 41.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007099/0.3763, allocations: 347 kB / 427.4 MB, free: 41.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006929/0.377, allocations: 0.4946 MB / 427.9 MB, free: 40.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006302/0.3833, allocations: 1.803 MB / 429.7 MB, free: 40.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.3833, allocations: 1.094 kB / 429.7 MB, free: 40.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002113/0.3855, allocations: 1.011 MB / 430.7 MB, free: 39.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.3855, allocations: 7.828 kB / 430.7 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.3855, allocations: 5.031 kB / 430.7 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.205e-05/0.3856, allocations: 21.62 kB / 430.8 MB, free: 39.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.3865, allocations: 223.9 kB / 431 MB, free: 39.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.41e-05/0.3866, allocations: 15.3 kB / 431 MB, free: 39.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007928/0.3874, allocations: 60.06 kB / 431.1 MB, free: 39.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.3e-05/0.3875, allocations: 38.64 kB / 431.1 MB, free: 39.77 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 = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0)))))))))))))))) start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 100000.0 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.0008389/0.3883, allocations: 429.9 kB / 431.5 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.3885, allocations: 115.2 kB / 431.6 MB, free: 39.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.3903, allocations: 0.9583 MB / 432.6 MB, free: 39.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3904, allocations: 7.344 kB / 432.6 MB, free: 39.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3904, allocations: 3.938 kB / 432.6 MB, free: 39.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.3904, allocations: 5.703 kB / 432.6 MB, free: 39.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.3946, allocations: 2.303 MB / 434.9 MB, free: 37.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.3946, allocations: 7.109 kB / 434.9 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008924/0.3955, allocations: 192.4 kB / 435.1 MB, free: 37.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.114e-05/0.3955, allocations: 6.734 kB / 435.1 MB, free: 37.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.335e-05/0.3956, allocations: 26 kB / 435.1 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.345e-05/0.3956, allocations: 5.172 kB / 435.1 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3957, allocations: 2.781 kB / 435.1 MB, free: 37.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002698/0.3984, allocations: 1.366 MB / 436.5 MB, free: 37.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.399, allocations: 278.7 kB / 436.8 MB, free: 36.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.3992, allocations: 22.47 kB / 436.8 MB, free: 36.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005348/0.3997, allocations: 43.38 kB / 436.8 MB, free: 36.9 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000152/0.3999, allocations: 55.28 kB / 436.9 MB, free: 36.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.446e-05/0.3999, allocations: 37.75 kB / 436.9 MB, free: 36.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001324/0.4013, allocations: 0.7365 MB / 437.7 MB, free: 36.58 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4013, allocations: 3.938 kB / 437.7 MB, free: 36.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001201/0.4025, allocations: 302.9 kB / 438 MB, free: 36.55 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.001096/0.4036, allocations: 476.8 kB / 438.4 MB, free: 36.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.4052, allocations: 0.7826 MB / 439.2 MB, free: 36.08 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4052, allocations: 1.094 kB / 439.2 MB, free: 36.08 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.4059, allocations: 396.9 kB / 439.6 MB, free: 35.94 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.4075, allocations: 339.8 kB / 439.9 MB, free: 35.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003878/0.4114, allocations: 2.793 MB / 442.7 MB, free: 34.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008186/0.4122, allocations: 1.153 MB / 443.9 MB, free: 33.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000968/0.4132, allocations: 216.2 kB / 444.1 MB, free: 33.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003216/0.4135, allocations: 106.7 kB / 444.2 MB, free: 33.26 MB / 318.1 MB Notification: Performance of SimCode: time 2.274e-06/0.4136, allocations: 2.188 kB / 444.2 MB, free: 33.26 MB / 318.1 MB Notification: Performance of Templates: time 0.02475/0.4383, allocations: 17.01 MB / 461.2 MB, free: 18.54 MB / 318.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 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)