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.001923/0.001923, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.424/1.424, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05759/0.05759, allocations: 11.84 MB / 281.6 MB, free: 9.426 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.001725/0.001725, allocations: 71.98 kB / 341.8 MB, free: 21.99 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08847, allocations: 49.21 MB / 391 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007385/0.09589, allocations: 6.097 MB / 397.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005325/0.1013, allocations: 3.277 MB / 400.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008472/0.1021, allocations: 19.88 kB / 400.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008869/0.1031, allocations: 282 kB / 400.7 MB, free: 11 MB / 302.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.001735/0.1048, allocations: 0.586 MB / 401.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002154/0.107, allocations: 0.8409 MB / 402.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002308/0.1093, allocations: 1.845 MB / 404 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009364/0.1103, allocations: 0.5466 MB / 404.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.1113, allocations: 0.6383 MB / 405.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.1126, allocations: 0.7313 MB / 405.9 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002364/0.1128, allocations: 128 kB / 406 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009802/0.1138, allocations: 403.8 kB / 406.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003368/0.1142, allocations: 346.7 kB / 406.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007411/0.1149, allocations: 0.7347 MB / 407.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.1171, allocations: 1.947 MB / 409.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1171, allocations: 0 / 409.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1171, allocations: 4 kB / 409.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.1171, allocations: 3.938 kB / 409.4 MB, free: 2.215 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.003144/0.1203, allocations: 1.616 MB / 411.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.1203, allocations: 15.89 kB / 411.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.1207, allocations: 151.2 kB / 411.2 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.1219, allocations: 0.8154 MB / 412 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.796e-05/0.122, allocations: 77.94 kB / 412.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.1221, allocations: 99.91 kB / 412.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00174/0.1239, allocations: 1.114 MB / 413.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.1239, allocations: 0 / 413.3 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-05/0.124, allocations: 40 kB / 413.4 MB, free: 14.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.1241, allocations: 28 kB / 413.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.1258, allocations: 1.011 MB / 414.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007301/0.1331, allocations: 6.019 MB / 420.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.1344, allocations: 0.7455 MB / 421.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006892/0.1351, allocations: 382.7 kB / 421.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/0.1354, allocations: 186.8 kB / 421.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.1354, allocations: 47.16 kB / 421.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.655e-06/0.1354, allocations: 0 / 421.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004879/0.1403, allocations: 2.277 MB / 424 MB, free: 2.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.1404, allocations: 60.06 kB / 424.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.1418, allocations: 1.066 MB / 425.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.877e-05/0.1419, allocations: 41.7 kB / 425.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.1423, allocations: 0.5347 MB / 425.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.1425, allocations: 268.1 kB / 426 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/0.1427, allocations: 162.5 kB / 426.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1429, allocations: 337.9 kB / 426.5 MB, free: 168 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1634/0.3062, allocations: 348.8 kB / 426.8 MB, free: 40.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007351/0.307, allocations: 0.4895 MB / 427.3 MB, free: 40.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00566/0.3127, allocations: 1.812 MB / 429.1 MB, free: 39.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3127, allocations: 2.844 kB / 429.1 MB, free: 39.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001811/0.3145, allocations: 1.008 MB / 430.1 MB, free: 39.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3146, allocations: 6.547 kB / 430.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.3146, allocations: 6.812 kB / 430.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.3146, allocations: 12.12 kB / 430.2 MB, free: 39.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008856/0.3155, allocations: 232.5 kB / 430.4 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.3155, allocations: 10.92 kB / 430.4 MB, free: 39.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005774/0.3161, allocations: 34.64 kB / 430.4 MB, free: 39.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.248e-05/0.3162, allocations: 42.14 kB / 430.5 MB, free: 39.49 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 = 100000.0 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 = 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.0005427/0.3168, allocations: 369.5 kB / 430.8 MB, free: 39.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.3169, allocations: 108.8 kB / 431 MB, free: 39.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001697/0.3186, allocations: 0.9521 MB / 431.9 MB, free: 38.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.3187, allocations: 9.969 kB / 431.9 MB, free: 38.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3187, allocations: 4 kB / 431.9 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3187, allocations: 3.75 kB / 431.9 MB, free: 38.84 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/0.322, allocations: 2.317 MB / 434.2 MB, free: 37.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.322, allocations: 5.469 kB / 434.2 MB, free: 37.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008081/0.3228, allocations: 186.8 kB / 434.4 MB, free: 37.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.918e-06/0.3229, allocations: 4.438 kB / 434.4 MB, free: 37.6 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-05/0.3229, allocations: 27.78 kB / 434.5 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.203e-06/0.3229, allocations: 9.312 kB / 434.5 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.323, allocations: 5.938 kB / 434.5 MB, free: 37.58 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.325, allocations: 1.375 MB / 435.8 MB, free: 36.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003978/0.3254, allocations: 277.3 kB / 436.1 MB, free: 36.74 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.3255, allocations: 19.52 kB / 436.1 MB, free: 36.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.326, allocations: 21.42 kB / 436.2 MB, free: 36.72 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.3261, allocations: 59.97 kB / 436.2 MB, free: 36.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.47e-05/0.3262, allocations: 35.11 kB / 436.3 MB, free: 36.7 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.3273, allocations: 0.7409 MB / 437 MB, free: 36.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3273, allocations: 1.406 kB / 437 MB, free: 36.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001047/0.3283, allocations: 303.2 kB / 437.3 MB, free: 36.36 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.001073/0.3294, allocations: 472.3 kB / 437.8 MB, free: 36.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.3315, allocations: 0.8707 MB / 438.6 MB, free: 35.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.3315, allocations: 1.125 kB / 438.6 MB, free: 35.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006012/0.3321, allocations: 401 kB / 439 MB, free: 35.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001408/0.3335, allocations: 357.5 kB / 439.4 MB, free: 35.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.337, allocations: 2.364 MB / 441.7 MB, free: 34.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.3376, allocations: 1.159 MB / 442.9 MB, free: 33.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009073/0.3385, allocations: 218.3 kB / 443.1 MB, free: 33.48 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.3388, allocations: 106.4 kB / 443.2 MB, free: 33.46 MB / 318.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3388, allocations: 0 / 443.2 MB, free: 33.46 MB / 318.1 MB Notification: Performance of Templates: time 0.02518/0.364, allocations: 17.73 MB / 460.9 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)