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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 110.6 kB / 18.33 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 189.9 kB / 21.5 MB, free: 0.7969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 207.6 MB / 232.1 MB, free: 3.137 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06102/0.06102, allocations: 12.01 MB / 296.2 MB, free: 3.199 MB / 238.1 MB " [Timeout remaining time 180] 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=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") translateModel(OpenHydraulics.DevelopmentTests.DirectionalValveTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest") [Timeout 660] "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.002267/0.002267, allocations: 79.89 kB / 415.1 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2143, allocations: 51.88 MB / 467 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007878/0.2222, allocations: 6.175 MB / 473.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005758/0.2279, allocations: 3.301 MB / 476.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005166/0.2285, allocations: 15.62 kB / 476.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006901/0.2292, allocations: 285.5 kB / 476.7 MB, free: 7.68 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.001319/0.2305, allocations: 0.6152 MB / 477.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.2324, allocations: 0.8391 MB / 478.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002087/0.2345, allocations: 1.856 MB / 480 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005477/0.235, allocations: 330.6 kB / 480.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007996/0.2358, allocations: 0.646 MB / 481 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009359/0.2368, allocations: 0.7352 MB / 481.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001858/0.237, allocations: 128 kB / 481.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007765/0.2377, allocations: 403.7 kB / 482.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003462/0.2381, allocations: 346.7 kB / 482.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007283/0.2388, allocations: 0.7308 MB / 483.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002376/0.2412, allocations: 1.977 MB / 485.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2412, allocations: 4 kB / 485.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2412, allocations: 0 / 485.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.2412, allocations: 0 / 485.3 MB, free: 15.14 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.00296/0.2442, allocations: 1.657 MB / 487 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.2442, allocations: 15.89 kB / 487 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.2445, allocations: 160 kB / 487.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.2457, allocations: 0.8316 MB / 488 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-05/0.2458, allocations: 85.94 kB / 488.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.246, allocations: 96 kB / 488.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00203/0.248, allocations: 1.114 MB / 489.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.248, allocations: 3.938 kB / 489.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.641e-05/0.2481, allocations: 39.94 kB / 489.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.2481, allocations: 24 kB / 489.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.2501, allocations: 1.015 MB / 490.4 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007343/0.2574, allocations: 6.012 MB / 496.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.2587, allocations: 0.7055 MB / 497.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007738/0.2595, allocations: 362.6 kB / 497.4 MB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002674/0.2598, allocations: 194.8 kB / 497.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.2598, allocations: 47.22 kB / 497.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.144e-06/0.2598, allocations: 0 / 497.7 MB, free: 1.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.005153/0.265, allocations: 2.287 MB / 499.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.265, allocations: 64.06 kB / 0.4883 GB, free: 15.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/0.2665, allocations: 1.062 MB / 0.4893 GB, free: 14.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.624e-05/0.2666, allocations: 37.7 kB / 0.4894 GB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004988/0.2671, allocations: 0.5473 MB / 0.4899 GB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002527/0.2673, allocations: 281.6 kB / 0.4902 GB, free: 13.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.2676, allocations: 170.5 kB / 0.4903 GB, free: 13.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2678, allocations: 341.9 kB / 0.4907 GB, free: 13.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006725/0.2684, allocations: 344.7 kB / 0.491 GB, free: 12.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008173/0.2693, allocations: 0.5037 MB / 0.4915 GB, free: 12.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006527/0.2758, allocations: 1.796 MB / 0.4932 GB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.2758, allocations: 0 / 0.4932 GB, free: 10.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001934/0.2777, allocations: 1.016 MB / 0.4942 GB, free: 9.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.2777, allocations: 12.7 kB / 0.4942 GB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2778, allocations: 4 kB / 0.4942 GB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/0.2778, allocations: 15.75 kB / 0.4943 GB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.2788, allocations: 231.6 kB / 0.4945 GB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.2788, allocations: 8 kB / 0.4945 GB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/0.2794, allocations: 27.98 kB / 0.4945 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.479e-05/0.2795, allocations: 47.98 kB / 0.4946 GB, free: 8.906 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.000617/0.2801, allocations: 374.8 kB / 0.4949 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.2803, allocations: 115.2 kB / 0.495 GB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.2822, allocations: 0.9543 MB / 0.496 GB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.2822, allocations: 8 kB / 0.496 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.2822, allocations: 0 / 0.496 GB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.2823, allocations: 7.984 kB / 0.496 GB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003852/0.2861, allocations: 2.308 MB / 0.4982 GB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.2861, allocations: 0 / 0.4982 GB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009042/0.287, allocations: 187.8 kB / 0.4984 GB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.287, allocations: 4 kB / 0.4984 GB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.347e-05/0.2871, allocations: 27.98 kB / 0.4984 GB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/0.2871, allocations: 7.984 kB / 0.4984 GB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/0.2871, allocations: 7.938 kB / 0.4984 GB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.2895, allocations: 1.384 MB / 0.4998 GB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004083/0.2899, allocations: 284.2 kB / 0.5001 GB, free: 3.074 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.29, allocations: 16 kB / 0.5001 GB, free: 3.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004749/0.2905, allocations: 27.98 kB / 0.5001 GB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.2906, allocations: 60.45 kB / 0.5002 GB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.058e-05/0.2907, allocations: 31.98 kB / 0.5002 GB, free: 2.938 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001033/0.2917, allocations: 0.7369 MB / 0.5009 GB, free: 2.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2917, allocations: 4 kB / 0.5009 GB, free: 2.188 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008957/0.2926, allocations: 303.7 kB / 0.5012 GB, free: 1.891 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.001584/0.2942, allocations: 484.1 kB / 0.5017 GB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.2957, allocations: 0.741 MB / 0.5024 GB, free: 0.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2957, allocations: 4.188 kB / 0.5024 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006948/0.2964, allocations: 375.4 kB / 0.5028 GB, free: 388 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.2978, allocations: 343.6 kB / 0.5031 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003912/0.3017, allocations: 2.372 MB / 0.5054 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008395/0.3025, allocations: 1.155 MB / 0.5065 GB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006833/0.3032, allocations: 220.1 kB / 0.5067 GB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.3035, allocations: 107.4 kB / 0.5068 GB, free: 12.11 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3035, allocations: 0 / 0.5068 GB, free: 12.11 MB / 382.1 MB Notification: Performance of Templates: time 0.03277/0.3363, allocations: 18.36 MB / 0.5248 GB, free: 9.734 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.07372856499569]