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.001249/0.00125, allocations: 105 kB / 16.27 MB, free: 6.41 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.001197/0.001197, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.308/1.308, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05443/0.05443, allocations: 11.85 MB / 282.3 MB, free: 296 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.001782/0.001782, allocations: 71.81 kB / 342.5 MB, free: 3.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2284, allocations: 49.21 MB / 391.7 MB, free: 49.04 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.007218/0.2356, allocations: 6.1 MB / 397.8 MB, free: 44.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004899/0.2406, allocations: 3.267 MB / 401.1 MB, free: 42.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007472/0.2413, allocations: 15.97 kB / 401.1 MB, free: 42.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006557/0.242, allocations: 285.7 kB / 401.4 MB, free: 42.22 MB / 318.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.001246/0.2433, allocations: 0.5887 MB / 402 MB, free: 41.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00184/0.2452, allocations: 0.8362 MB / 402.8 MB, free: 41.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.2469, allocations: 1.847 MB / 404.6 MB, free: 40.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006628/0.2476, allocations: 0.554 MB / 405.2 MB, free: 39.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000826/0.2484, allocations: 0.635 MB / 405.8 MB, free: 39.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007119/0.2491, allocations: 0.7348 MB / 406.6 MB, free: 38.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.2493, allocations: 129.1 kB / 406.7 MB, free: 38.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008154/0.2501, allocations: 399.4 kB / 407.1 MB, free: 38.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.2504, allocations: 348.8 kB / 407.4 MB, free: 38.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005561/0.2509, allocations: 0.7292 MB / 408.2 MB, free: 37.97 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.2527, allocations: 1.95 MB / 410.1 MB, free: 36.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2527, allocations: 0 / 410.1 MB, free: 36.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2527, allocations: 0 / 410.1 MB, free: 36.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.2527, allocations: 1.188 kB / 410.1 MB, free: 36.6 MB / 318.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.002377/0.2551, allocations: 1.615 MB / 411.7 MB, free: 35.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2551, allocations: 15.89 kB / 411.7 MB, free: 35.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002745/0.2554, allocations: 159.1 kB / 411.9 MB, free: 34.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.2563, allocations: 0.8114 MB / 412.7 MB, free: 34.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.2563, allocations: 81.94 kB / 412.8 MB, free: 33.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.2564, allocations: 99.91 kB / 412.9 MB, free: 33.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2579, allocations: 1.114 MB / 414 MB, free: 32.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.2579, allocations: 0 / 414 MB, free: 32.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.496e-05/0.258, allocations: 36 kB / 414 MB, free: 32.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.258, allocations: 23.94 kB / 414 MB, free: 32.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.2594, allocations: 1.019 MB / 415.1 MB, free: 31.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004658/0.264, allocations: 6.019 MB / 421.1 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009591/0.265, allocations: 0.7459 MB / 421.8 MB, free: 24.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.2656, allocations: 386.7 kB / 422.2 MB, free: 23.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.2657, allocations: 186.8 kB / 422.4 MB, free: 23.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.2658, allocations: 47.16 kB / 422.4 MB, free: 23.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.365e-06/0.2658, allocations: 0 / 422.4 MB, free: 23.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004006/0.2698, allocations: 2.265 MB / 424.7 MB, free: 21.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.2698, allocations: 60.06 kB / 424.8 MB, free: 21.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.2709, allocations: 1.074 MB / 425.8 MB, free: 20.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.212e-05/0.2709, allocations: 37.7 kB / 425.9 MB, free: 20.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002628/0.2712, allocations: 0.5347 MB / 426.4 MB, free: 19.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.2713, allocations: 272 kB / 426.7 MB, free: 19.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.2715, allocations: 162.5 kB / 426.8 MB, free: 19.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/0.2716, allocations: 341.9 kB / 427.2 MB, free: 18.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004682/0.2721, allocations: 343.7 kB / 427.5 MB, free: 18.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/0.2726, allocations: 0.4967 MB / 428 MB, free: 17.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004915/0.2775, allocations: 1.816 MB / 429.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.2775, allocations: 0 / 429.8 MB, free: 15.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001462/0.279, allocations: 1.016 MB / 430.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.279, allocations: 9.25 kB / 430.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.279, allocations: 4 kB / 430.8 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.2791, allocations: 11.94 kB / 430.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007923/0.2799, allocations: 227.7 kB / 431.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.2799, allocations: 15.92 kB / 431.1 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006039/0.2805, allocations: 24 kB / 431.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.2806, allocations: 52.03 kB / 431.2 MB, free: 14.54 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 = 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 = 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.0005249/0.2811, allocations: 377.4 kB / 431.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.2813, allocations: 110.6 kB / 431.6 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.2827, allocations: 0.9504 MB / 432.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.2827, allocations: 8 kB / 432.6 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2827, allocations: 3.938 kB / 432.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.2827, allocations: 3.984 kB / 432.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002704/0.2854, allocations: 2.305 MB / 434.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2854, allocations: 224 / 434.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007092/0.2861, allocations: 195.7 kB / 435.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.2862, allocations: 8 kB / 435.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-05/0.2862, allocations: 23.98 kB / 435.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.2862, allocations: 4 kB / 435.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.2862, allocations: 7.938 kB / 435.1 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.2878, allocations: 1.374 MB / 436.5 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.2882, allocations: 271.8 kB / 436.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.2883, allocations: 24 kB / 436.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.2887, allocations: 27.98 kB / 436.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.94e-05/0.2888, allocations: 60.52 kB / 436.9 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.2888, allocations: 27.98 kB / 436.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007042/0.2896, allocations: 0.7369 MB / 437.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.2896, allocations: 0 / 437.7 MB, free: 7.859 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008327/0.2904, allocations: 307.9 kB / 438 MB, free: 7.559 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.0009559/0.2914, allocations: 483.1 kB / 438.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.2929, allocations: 0.8659 MB / 439.3 MB, free: 6.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2929, allocations: 3.938 kB / 439.3 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005/0.2934, allocations: 399.9 kB / 439.7 MB, free: 5.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.2947, allocations: 351.9 kB / 440 MB, free: 5.637 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.2976, allocations: 2.412 MB / 442.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.298, allocations: 1.155 MB / 443.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002933/0.2983, allocations: 111.4 kB / 443.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2983, allocations: 0 / 443.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of Templates: time 0.02401/0.3224, allocations: 17.37 MB / 461.1 MB, free: 0.5156 MB / 334.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)