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.001455/0.001455, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.001582/0.001582, allocations: 187 kB / 17.34 MB, free: 5.742 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.416/1.416, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05779/0.05779, allocations: 11.84 MB / 282.4 MB, free: 212 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.001511/0.001511, allocations: 70.22 kB / 393 MB, free: 45.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08808, allocations: 49.23 MB / 442.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006453/0.09458, allocations: 6.101 MB / 448.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005414/0.1, allocations: 3.254 MB / 451.6 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005302/0.1006, allocations: 15.94 kB / 451.6 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000681/0.1013, allocations: 286 kB / 451.9 MB, free: 8.391 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.001201/0.1025, allocations: 0.59 MB / 452.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.1043, allocations: 0.8447 MB / 453.3 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001789/0.1061, allocations: 1.852 MB / 455.2 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007274/0.1068, allocations: 0.5504 MB / 455.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007079/0.1076, allocations: 0.65 MB / 456.4 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008027/0.1084, allocations: 0.7352 MB / 457.1 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.1086, allocations: 124 kB / 457.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007204/0.1093, allocations: 403.8 kB / 457.6 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002809/0.1096, allocations: 342.7 kB / 458 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005944/0.1102, allocations: 0.7308 MB / 458.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001963/0.1121, allocations: 1.967 MB / 460.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1122, allocations: 0 / 460.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1122, allocations: 0 / 460.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.1122, allocations: 0 / 460.7 MB, free: 15.57 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.002567/0.1148, allocations: 1.612 MB / 462.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.1148, allocations: 15.89 kB / 462.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002959/0.1151, allocations: 147.2 kB / 462.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.1162, allocations: 0.8308 MB / 463.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.729e-05/0.1163, allocations: 85.88 kB / 463.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.1164, allocations: 92 kB / 463.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.1182, allocations: 1.118 MB / 464.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1183, allocations: 0 / 464.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.842e-05/0.1184, allocations: 43.98 kB / 464.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.1184, allocations: 27.94 kB / 464.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.1201, allocations: 1.007 MB / 465.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006754/0.1268, allocations: 6.015 MB / 471.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.128, allocations: 0.7474 MB / 472.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006914/0.1287, allocations: 394.6 kB / 472.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002422/0.129, allocations: 194.8 kB / 473 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.129, allocations: 35.22 kB / 473 MB, free: 2.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.947e-06/0.129, allocations: 0 / 473 MB, free: 2.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004874/0.1339, allocations: 2.274 MB / 475.3 MB, free: 28 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.134, allocations: 60.06 kB / 475.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.1354, allocations: 1.062 MB / 476.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.1355, allocations: 41.7 kB / 476.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003865/0.1359, allocations: 0.5347 MB / 477 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.1361, allocations: 268.1 kB / 477.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002487/0.1363, allocations: 178.4 kB / 477.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1365, allocations: 337.9 kB / 477.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005816/0.137, allocations: 344.7 kB / 478.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.1377, allocations: 0.4959 MB / 478.6 MB, free: 12.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005732/0.1435, allocations: 1.804 MB / 480.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1435, allocations: 4 kB / 480.4 MB, free: 10.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001877/0.1454, allocations: 1.008 MB / 481.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1454, allocations: 4 kB / 481.4 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1454, allocations: 8 kB / 481.4 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.1455, allocations: 11.94 kB / 481.4 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008957/0.1464, allocations: 228 kB / 481.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.926e-05/0.1464, allocations: 16 kB / 481.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006823/0.1471, allocations: 35.89 kB / 481.7 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.131e-05/0.1472, allocations: 39.98 kB / 481.7 MB, free: 9.363 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.0006837/0.1479, allocations: 370.8 kB / 482.1 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.1481, allocations: 114.6 kB / 482.2 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.1498, allocations: 0.9543 MB / 483.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1498, allocations: 8 kB / 483.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1499, allocations: 0 / 483.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.1499, allocations: 3.984 kB / 483.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.1534, allocations: 2.315 MB / 485.5 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.1534, allocations: 0 / 485.5 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/0.1542, allocations: 199.9 kB / 485.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.886e-06/0.1543, allocations: 4 kB / 485.7 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.916e-05/0.1543, allocations: 27.98 kB / 485.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.1543, allocations: 4 kB / 485.7 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.1544, allocations: 4 kB / 485.7 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.1565, allocations: 1.364 MB / 487.1 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000465/0.157, allocations: 275.6 kB / 487.3 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.1571, allocations: 23.98 kB / 487.4 MB, free: 3.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004323/0.1576, allocations: 20 kB / 487.4 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.1577, allocations: 64.45 kB / 487.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/0.1578, allocations: 31.98 kB / 487.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009792/0.1588, allocations: 0.7369 MB / 488.2 MB, free: 2.672 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1588, allocations: 0 / 488.2 MB, free: 2.672 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009972/0.1598, allocations: 303.9 kB / 488.5 MB, free: 2.375 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.001099/0.1609, allocations: 462.9 kB / 489 MB, free: 2.039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.1623, allocations: 0.7906 MB / 489.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1623, allocations: 0 / 489.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006273/0.163, allocations: 400.9 kB / 490.1 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.1644, allocations: 360.2 kB / 490.5 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003829/0.1682, allocations: 2.365 MB / 492.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/0.169, allocations: 1.163 MB / 494 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.1694, allocations: 111.4 kB / 494.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1694, allocations: 0 / 494.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of Templates: time 0.02705/0.1965, allocations: 17.5 MB / 0.4996 GB, free: 11.25 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 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)