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.001683/0.001683, allocations: 108.9 kB / 16.41 MB, free: 6.5 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.001867/0.001867, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.383/1.383, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0628/0.0628, allocations: 11.84 MB / 282.4 MB, free: 224 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.00218/0.00218, allocations: 76.34 kB / 393 MB, free: 45.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06341/0.06559, allocations: 49.23 MB / 442.2 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006919/0.07251, allocations: 6.115 MB / 448.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005505/0.07802, allocations: 3.273 MB / 451.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005059/0.07852, allocations: 15.94 kB / 451.6 MB, free: 8.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006813/0.0792, allocations: 282 kB / 451.9 MB, free: 8.359 MB / 334.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.001259/0.08046, allocations: 0.6172 MB / 452.5 MB, free: 7.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.08227, allocations: 0.8444 MB / 453.4 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00213/0.0844, allocations: 1.848 MB / 455.2 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000604/0.08501, allocations: 387.8 kB / 455.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008205/0.08583, allocations: 0.6422 MB / 456.2 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009012/0.08673, allocations: 0.7351 MB / 457 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.0869, allocations: 124 kB / 457.1 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000738/0.08764, allocations: 415.7 kB / 457.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003333/0.08798, allocations: 338.8 kB / 457.8 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007204/0.0887, allocations: 0.7347 MB / 458.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.09104, allocations: 1.981 MB / 460.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09104, allocations: 0 / 460.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.09104, allocations: 0 / 460.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.09106, allocations: 0 / 460.6 MB, free: 15.67 MB / 350.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.002896/0.09396, allocations: 1.657 MB / 462.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.09399, allocations: 11.89 kB / 462.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.09431, allocations: 160 kB / 462.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.0956, allocations: 0.8394 MB / 463.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.971e-05/0.09568, allocations: 81.94 kB / 463.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.09584, allocations: 92 kB / 463.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.09778, allocations: 1.114 MB / 464.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.09781, allocations: 0 / 464.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.09791, allocations: 44 kB / 464.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.09793, allocations: 23.94 kB / 464.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.09983, allocations: 1.019 MB / 465.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007427/0.1073, allocations: 6.008 MB / 471.6 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.1085, allocations: 0.7159 MB / 472.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007526/0.1093, allocations: 374.6 kB / 472.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002681/0.1096, allocations: 190.8 kB / 472.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/0.1096, allocations: 39.22 kB / 472.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.384e-06/0.1096, allocations: 0 / 472.9 MB, free: 2.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.005021/0.1146, allocations: 2.295 MB / 475.2 MB, free: 104 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.1147, allocations: 56.06 kB / 475.3 MB, free: 36 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.1161, allocations: 1.066 MB / 476.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.373e-05/0.1162, allocations: 41.7 kB / 476.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004788/0.1167, allocations: 0.5474 MB / 476.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.1169, allocations: 277.6 kB / 477.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002712/0.1172, allocations: 170.5 kB / 477.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1173, allocations: 345.9 kB / 477.7 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006442/0.118, allocations: 344.7 kB / 478 MB, free: 13.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/0.1188, allocations: 0.4959 MB / 478.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006097/0.1249, allocations: 1.796 MB / 480.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.1249, allocations: 8 kB / 480.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001898/0.1268, allocations: 1.016 MB / 481.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1268, allocations: 15.92 kB / 481.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.1268, allocations: 8 kB / 481.4 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.1268, allocations: 11.94 kB / 481.4 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009737/0.1278, allocations: 223.7 kB / 481.6 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.1278, allocations: 15.94 kB / 481.6 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000532/0.1283, allocations: 32.11 kB / 481.6 MB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.144e-05/0.1284, allocations: 47.98 kB / 481.7 MB, free: 9.402 MB / 366.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.0005846/0.129, allocations: 362.8 kB / 482 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/0.1292, allocations: 115.2 kB / 482.1 MB, free: 8.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.1311, allocations: 0.9504 MB / 483.1 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.737e-06/0.1311, allocations: 15.94 kB / 483.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1311, allocations: 0 / 483.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.1311, allocations: 3.984 kB / 483.1 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.1349, allocations: 2.308 MB / 485.4 MB, free: 5.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.1349, allocations: 4 kB / 485.4 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009023/0.1358, allocations: 191.7 kB / 485.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.146e-06/0.1358, allocations: 8.219 kB / 485.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.1359, allocations: 27.98 kB / 485.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.15e-05/0.1359, allocations: 7.984 kB / 485.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1359, allocations: 0 / 485.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002312/0.1382, allocations: 1.376 MB / 487 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004502/0.1387, allocations: 288.2 kB / 487.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001382/0.1388, allocations: 20 kB / 487.3 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004643/0.1393, allocations: 23.98 kB / 487.4 MB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.1394, allocations: 64.52 kB / 487.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.1394, allocations: 27.98 kB / 487.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001038/0.1405, allocations: 0.7408 MB / 488.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1405, allocations: 0 / 488.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009342/0.1414, allocations: 303.7 kB / 488.5 MB, free: 2.402 MB / 366.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.001531/0.1429, allocations: 467.8 kB / 488.9 MB, free: 2.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.1444, allocations: 0.7477 MB / 489.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1444, allocations: 0 / 489.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006625/0.1451, allocations: 373.1 kB / 490.1 MB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.1465, allocations: 359.1 kB / 490.4 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003936/0.1504, allocations: 2.367 MB / 492.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008885/0.1513, allocations: 1.155 MB / 493.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007078/0.152, allocations: 220.1 kB / 494.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003102/0.1523, allocations: 107.4 kB / 494.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1523, allocations: 0 / 494.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of Templates: time 0.03194/0.1843, allocations: 18.07 MB / 0.5003 GB, free: 10.6 MB / 398.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)