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.001172/0.001172, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00117/0.00117, allocations: 194.3 kB / 16.25 MB, free: 6.625 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.393/1.393, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05428/0.05428, allocations: 11.83 MB / 281.3 MB, free: 9.594 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.00144/0.001439, allocations: 72.11 kB / 341.3 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08817, allocations: 49.22 MB / 390.5 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.009324/0.09756, allocations: 7.874 MB / 398.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005527/0.1031, allocations: 3.453 MB / 401.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000677/0.1038, allocations: 19.94 kB / 401.9 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000647/0.1045, allocations: 242.8 kB / 402.1 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001216/0.1058, allocations: 0.5321 MB / 402.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001704/0.1075, allocations: 0.76 MB / 403.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001852/0.1093, allocations: 1.845 MB / 405.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007058/0.1101, allocations: 0.5543 MB / 405.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007878/0.1109, allocations: 0.6421 MB / 406.5 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000793/0.1117, allocations: 0.7469 MB / 407.2 MB, free: 4.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.1118, allocations: 124 kB / 407.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007004/0.1125, allocations: 395.8 kB / 407.7 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.1128, allocations: 346.7 kB / 408.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005918/0.1134, allocations: 0.7347 MB / 408.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.1152, allocations: 1.955 MB / 410.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1152, allocations: 0 / 410.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1152, allocations: 0 / 410.7 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.1152, allocations: 3.938 kB / 410.7 MB, free: 0.7656 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.002562/0.1178, allocations: 1.608 MB / 412.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1179, allocations: 15.89 kB / 412.4 MB, free: 15.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.1181, allocations: 151.2 kB / 412.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.1191, allocations: 0.8268 MB / 413.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.1192, allocations: 77.94 kB / 413.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001491/0.1194, allocations: 96 kB / 413.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.1211, allocations: 1.114 MB / 414.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.602e-05/0.1212, allocations: 0 / 414.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-05/0.1213, allocations: 36 kB / 414.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.1213, allocations: 28 kB / 414.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.1229, allocations: 1.019 MB / 415.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00647/0.1294, allocations: 6.003 MB / 421.7 MB, free: 4.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.1305, allocations: 0.7459 MB / 422.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006304/0.1312, allocations: 386.7 kB / 422.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002196/0.1314, allocations: 190.8 kB / 423 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.1315, allocations: 43.22 kB / 423.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.866e-06/0.1315, allocations: 0 / 423.1 MB, free: 3.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004629/0.1361, allocations: 2.269 MB / 425.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.1362, allocations: 60.06 kB / 425.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.1374, allocations: 1.066 MB / 426.5 MB, free: 88 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.1375, allocations: 37.7 kB / 426.5 MB, free: 44 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1728/0.3103, allocations: 0.5322 MB / 427 MB, free: 41.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003574/0.3107, allocations: 263.9 kB / 427.3 MB, free: 41.1 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000307/0.311, allocations: 171.5 kB / 427.5 MB, free: 41.08 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.3111, allocations: 338.9 kB / 427.8 MB, free: 40.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006674/0.3118, allocations: 343.2 kB / 428.1 MB, free: 40.76 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006246/0.3124, allocations: 0.4948 MB / 428.6 MB, free: 40.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005958/0.3184, allocations: 1.814 MB / 430.4 MB, free: 39.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.3184, allocations: 1.5 kB / 430.4 MB, free: 39.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00196/0.3204, allocations: 1.007 MB / 431.4 MB, free: 39.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.3204, allocations: 11.31 kB / 431.4 MB, free: 39.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.3204, allocations: 5.031 kB / 431.4 MB, free: 39.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.32e-05/0.3205, allocations: 14.33 kB / 431.5 MB, free: 39.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009602/0.3214, allocations: 223.6 kB / 431.7 MB, free: 39.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.3215, allocations: 14.86 kB / 431.7 MB, free: 39.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007151/0.3222, allocations: 63.36 kB / 431.8 MB, free: 39.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/0.3223, allocations: 43.58 kB / 431.8 MB, free: 39.29 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.0007415/0.323, allocations: 426.8 kB / 432.2 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.3232, allocations: 111.7 kB / 432.3 MB, free: 38.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.325, allocations: 0.9643 MB / 433.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.325, allocations: 12.34 kB / 433.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.325, allocations: 0 / 433.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.325, allocations: 7.984 kB / 433.3 MB, free: 38.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003354/0.3284, allocations: 2.299 MB / 435.6 MB, free: 37.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.3284, allocations: 1.734 kB / 435.6 MB, free: 37.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008462/0.3293, allocations: 193.2 kB / 435.8 MB, free: 37.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.688e-06/0.3293, allocations: 4.969 kB / 435.8 MB, free: 37.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-05/0.3294, allocations: 27.05 kB / 435.8 MB, free: 37.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.3294, allocations: 5.469 kB / 435.8 MB, free: 37.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3294, allocations: 3.453 kB / 435.8 MB, free: 37.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002182/0.3316, allocations: 1.371 MB / 437.2 MB, free: 36.58 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004317/0.332, allocations: 272.1 kB / 437.5 MB, free: 36.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.3322, allocations: 23.19 kB / 437.5 MB, free: 36.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004871/0.3327, allocations: 38.44 kB / 437.5 MB, free: 36.35 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.3328, allocations: 60.73 kB / 437.6 MB, free: 36.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.28e-05/0.3329, allocations: 27.23 kB / 437.6 MB, free: 36.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009896/0.3339, allocations: 0.7493 MB / 438.4 MB, free: 36.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.3339, allocations: 0 / 438.4 MB, free: 36.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001045/0.3349, allocations: 304.2 kB / 438.7 MB, free: 35.98 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.0011/0.336, allocations: 470.1 kB / 439.1 MB, free: 35.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.3379, allocations: 0.8678 MB / 440 MB, free: 35.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3379, allocations: 4.062 kB / 440 MB, free: 35.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000587/0.3385, allocations: 406.2 kB / 440.4 MB, free: 35.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.3399, allocations: 356.2 kB / 440.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.3434, allocations: 2.804 MB / 443.5 MB, free: 33.46 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006259/0.344, allocations: 1.161 MB / 444.7 MB, free: 32.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008093/0.3449, allocations: 215.5 kB / 444.9 MB, free: 32.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.3451, allocations: 104.5 kB / 445 MB, free: 32.62 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3451, allocations: 3.938 kB / 445 MB, free: 32.62 MB / 318.1 MB Notification: Performance of Templates: time 0.02441/0.3696, allocations: 17.64 MB / 462.7 MB, free: 17.15 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)