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.001019/0.001019, allocations: 109.5 kB / 15.99 MB, free: 6.363 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.001025/0.001026, allocations: 192.4 kB / 16.91 MB, free: 6.191 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.199/1.199, allocations: 205.1 MB / 222.8 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04942/0.04942, allocations: 11.84 MB / 281.9 MB, free: 9.598 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.001305/0.001305, allocations: 79.44 kB / 342 MB, free: 22.3 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06692/0.06823, allocations: 49.21 MB / 391.2 MB, free: 5.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007318/0.07558, allocations: 7.86 MB / 399.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004421/0.08002, allocations: 3.468 MB / 402.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004084/0.08045, allocations: 19.94 kB / 402.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005375/0.08101, allocations: 230.8 kB / 402.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009527/0.08198, allocations: 0.5321 MB / 403.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.08341, allocations: 0.7633 MB / 404.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.0849, allocations: 1.848 MB / 405.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006051/0.08551, allocations: 0.5543 MB / 406.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000583/0.0861, allocations: 0.6421 MB / 407.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006759/0.08679, allocations: 0.7469 MB / 407.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.08694, allocations: 124 kB / 408 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005651/0.08751, allocations: 399.8 kB / 408.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002548/0.08778, allocations: 354.7 kB / 408.7 MB, free: 3.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005516/0.08834, allocations: 0.7308 MB / 409.4 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001272/0.08962, allocations: 1.567 MB / 411 MB, free: 1.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.08963, allocations: 4 kB / 411 MB, free: 1.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.08964, allocations: 0 / 411 MB, free: 1.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.08966, allocations: 0 / 411 MB, free: 1.125 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.002287/0.09195, allocations: 1.608 MB / 412.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.09199, allocations: 11.89 kB / 412.6 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002623/0.09226, allocations: 151.2 kB / 412.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009389/0.09321, allocations: 0.823 MB / 413.6 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/0.09328, allocations: 77.94 kB / 413.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.09342, allocations: 96 kB / 413.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.09508, allocations: 1.114 MB / 414.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.09511, allocations: 0 / 414.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.118e-05/0.0952, allocations: 40 kB / 414.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.09522, allocations: 24 kB / 415 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.09679, allocations: 1.015 MB / 416 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005663/0.1025, allocations: 6.011 MB / 422 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.1036, allocations: 0.7458 MB / 422.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006244/0.1042, allocations: 382.7 kB / 423.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002101/0.1044, allocations: 190.8 kB / 423.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.1045, allocations: 43.22 kB / 423.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.753e-06/0.1045, allocations: 0 / 423.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004265/0.1087, allocations: 2.265 MB / 425.6 MB, free: 1.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.1088, allocations: 68 kB / 425.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.1099, allocations: 1.07 MB / 426.7 MB, free: 456 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.11, allocations: 41.7 kB / 426.8 MB, free: 408 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.129/0.239, allocations: 0.5284 MB / 427.3 MB, free: 40.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.2393, allocations: 267.1 kB / 427.6 MB, free: 40.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002638/0.2396, allocations: 171.2 kB / 427.7 MB, free: 40.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.239e-05/0.2397, allocations: 338.6 kB / 428.1 MB, free: 40.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005975/0.2403, allocations: 345.6 kB / 428.4 MB, free: 40.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006013/0.2409, allocations: 0.4936 MB / 428.9 MB, free: 40.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005491/0.2464, allocations: 1.804 MB / 430.7 MB, free: 39.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.2464, allocations: 2.219 kB / 430.7 MB, free: 39.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001663/0.2481, allocations: 1.01 MB / 431.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.2481, allocations: 8.266 kB / 431.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.2481, allocations: 5.375 kB / 431.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.2482, allocations: 13.78 kB / 431.7 MB, free: 39.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009013/0.2491, allocations: 227 kB / 432 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.2491, allocations: 16.14 kB / 432 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006425/0.2498, allocations: 57.44 kB / 432 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/0.2498, allocations: 42.98 kB / 432.1 MB, free: 39.42 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.0006133/0.2505, allocations: 425.9 kB / 432.5 MB, free: 39.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.2506, allocations: 118.4 kB / 432.6 MB, free: 39.1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.2523, allocations: 0.9514 MB / 433.5 MB, free: 38.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.2523, allocations: 16.39 kB / 433.6 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2523, allocations: 0 / 433.6 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.2523, allocations: 5.578 kB / 433.6 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003067/0.2554, allocations: 2.309 MB / 435.9 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.2554, allocations: 2.75 kB / 435.9 MB, free: 37.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.2562, allocations: 184.4 kB / 436.1 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.2562, allocations: 4.984 kB / 436.1 MB, free: 37.44 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.2563, allocations: 31.72 kB / 436.1 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.294e-06/0.2563, allocations: 5.484 kB / 436.1 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2563, allocations: 1.406 kB / 436.1 MB, free: 37.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.2582, allocations: 1.375 MB / 437.5 MB, free: 36.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003662/0.2585, allocations: 279 kB / 437.8 MB, free: 36.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.2587, allocations: 19.88 kB / 437.8 MB, free: 36.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004714/0.2592, allocations: 35.33 kB / 437.8 MB, free: 36.47 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.2593, allocations: 64.75 kB / 437.9 MB, free: 36.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-05/0.2593, allocations: 31.25 kB / 437.9 MB, free: 36.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009137/0.2603, allocations: 0.7374 MB / 438.6 MB, free: 36.14 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2603, allocations: 0 / 438.6 MB, free: 36.14 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008909/0.2612, allocations: 304.1 kB / 438.9 MB, free: 36.11 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.0009365/0.2621, allocations: 468.1 kB / 439.4 MB, free: 35.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.2639, allocations: 0.8701 MB / 440.3 MB, free: 35.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2639, allocations: 0 / 440.3 MB, free: 35.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005982/0.2645, allocations: 404.1 kB / 440.7 MB, free: 35.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.2658, allocations: 365.5 kB / 441 MB, free: 35.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.2688, allocations: 2.844 MB / 443.9 MB, free: 33.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.2693, allocations: 1.15 MB / 445 MB, free: 32.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.2696, allocations: 114.9 kB / 445.1 MB, free: 32.79 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2696, allocations: 0 / 445.1 MB, free: 32.79 MB / 318.1 MB Notification: Performance of Templates: time 0.01632/0.286, allocations: 17.37 MB / 462.5 MB, free: 17.79 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)