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.005192/0.005192, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001119/0.001119, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.422/1.422, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05685/0.05685, allocations: 11.84 MB / 281.7 MB, free: 9.328 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.001626/0.001626, allocations: 71.91 kB / 392.3 MB, free: 3.469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2729, allocations: 49.22 MB / 441.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006313/0.2793, allocations: 6.105 MB / 447.7 MB, free: 324 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005881/0.2852, allocations: 3.261 MB / 450.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007016/0.2859, allocations: 15.69 kB / 450.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007432/0.2867, allocations: 296.5 kB / 451.2 MB, free: 13.64 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.001513/0.2882, allocations: 0.6078 MB / 451.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.2905, allocations: 0.8397 MB / 452.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002319/0.2928, allocations: 1.851 MB / 454.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008327/0.2937, allocations: 0.5533 MB / 455.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.2949, allocations: 0.6461 MB / 455.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009143/0.2958, allocations: 0.7351 MB / 456.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001847/0.296, allocations: 128.6 kB / 456.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009033/0.2969, allocations: 400.2 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003498/0.2973, allocations: 344.2 kB / 457.3 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008186/0.2981, allocations: 0.7341 MB / 458 MB, free: 9.293 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.3006, allocations: 1.97 MB / 460 MB, free: 7.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3006, allocations: 0 / 460 MB, free: 7.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3006, allocations: 0 / 460 MB, free: 7.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.367e-05/0.3006, allocations: 0 / 460 MB, free: 7.918 MB / 334.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.003023/0.3036, allocations: 1.612 MB / 461.6 MB, free: 6.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.3037, allocations: 12.61 kB / 461.6 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/0.3041, allocations: 148 kB / 461.8 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/0.3054, allocations: 0.8403 MB / 462.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.45e-05/0.3055, allocations: 79.44 kB / 462.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.3057, allocations: 95.34 kB / 462.8 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.3077, allocations: 1.115 MB / 463.9 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.3078, allocations: 8 kB / 463.9 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.353e-05/0.3078, allocations: 36 kB / 464 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-05/0.3079, allocations: 23.94 kB / 464 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.3096, allocations: 1.015 MB / 465 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006976/0.3166, allocations: 5.999 MB / 471 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/0.3178, allocations: 0.7513 MB / 471.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006818/0.3185, allocations: 394.6 kB / 472.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002459/0.3188, allocations: 182.8 kB / 472.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.3188, allocations: 43.22 kB / 472.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.935e-06/0.3188, allocations: 0 / 472.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.00491/0.3238, allocations: 2.27 MB / 474.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.3238, allocations: 60.06 kB / 474.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.3254, allocations: 1.066 MB / 475.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.205e-05/0.3254, allocations: 37.7 kB / 475.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004073/0.3258, allocations: 0.5347 MB / 476.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.3261, allocations: 272.1 kB / 476.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/0.3264, allocations: 166.5 kB / 476.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3265, allocations: 341.9 kB / 477.1 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005962/0.3271, allocations: 348.7 kB / 477.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/0.3278, allocations: 0.4998 MB / 477.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005768/0.3336, allocations: 1.804 MB / 479.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3337, allocations: 0 / 479.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002116/0.3358, allocations: 1.008 MB / 480.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.3358, allocations: 8 kB / 480.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.3358, allocations: 7.984 kB / 480.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.745e-05/0.3359, allocations: 15.94 kB / 480.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009133/0.3368, allocations: 227.9 kB / 481 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.922e-05/0.3368, allocations: 12 kB / 481 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007383/0.3376, allocations: 35.89 kB / 481 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-05/0.3377, allocations: 39.98 kB / 481.1 MB, free: 2.805 MB / 350.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.0008524/0.3385, allocations: 370.7 kB / 481.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/0.3387, allocations: 114.6 kB / 481.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.3405, allocations: 0.9504 MB / 482.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3406, allocations: 11.94 kB / 482.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3406, allocations: 3.938 kB / 482.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.3406, allocations: 3.984 kB / 482.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003441/0.344, allocations: 2.308 MB / 484.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.344, allocations: 0 / 484.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008027/0.3449, allocations: 192 kB / 485 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.118e-05/0.3449, allocations: 8 kB / 485 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.797e-05/0.3449, allocations: 23.98 kB / 485 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.345, allocations: 7.984 kB / 485 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.345, allocations: 7.938 kB / 485.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.3472, allocations: 1.372 MB / 486.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005063/0.3477, allocations: 271.6 kB / 486.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.3478, allocations: 16 kB / 486.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004307/0.3483, allocations: 27.98 kB / 486.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.3484, allocations: 68.45 kB / 486.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.046e-05/0.3485, allocations: 27.98 kB / 486.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001095/0.3496, allocations: 0.7369 MB / 487.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3496, allocations: 0 / 487.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001122/0.3507, allocations: 307.9 kB / 487.9 MB, free: 11.81 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.001121/0.3519, allocations: 478.9 kB / 488.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.3535, allocations: 0.7828 MB / 489.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.3535, allocations: 3.938 kB / 489.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006824/0.3542, allocations: 400.9 kB / 489.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001456/0.3556, allocations: 351.1 kB / 489.9 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.3594, allocations: 2.317 MB / 492.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007437/0.3602, allocations: 1.159 MB / 493.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007527/0.361, allocations: 224.1 kB / 493.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.3612, allocations: 103.4 kB / 493.7 MB, free: 6.012 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3612, allocations: 0 / 493.7 MB, free: 6.012 MB / 366.1 MB Notification: Performance of Templates: time 0.02992/0.3912, allocations: 17.94 MB / 0.4996 GB, free: 4.039 MB / 382.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)