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.00132/0.00132, allocations: 95.83 kB / 16.24 MB, free: 6.375 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.001397/0.001397, allocations: 190.2 kB / 17.17 MB, free: 5.977 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.268/1.268, allocations: 205.1 MB / 223 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0525/0.0525, allocations: 11.85 MB / 282.2 MB, free: 328 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.001413/0.001413, allocations: 67.91 kB / 342.4 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.2007, allocations: 49.22 MB / 391.7 MB, free: 49.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.005688/0.2065, allocations: 6.09 MB / 397.7 MB, free: 44.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004543/0.211, allocations: 3.271 MB / 401 MB, free: 42.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006456/0.2117, allocations: 15.81 kB / 401 MB, free: 42.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006877/0.2124, allocations: 286.8 kB / 401.3 MB, free: 42.28 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.001128/0.2136, allocations: 0.5916 MB / 401.9 MB, free: 41.83 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.2153, allocations: 0.8354 MB / 402.7 MB, free: 41.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001616/0.2169, allocations: 1.846 MB / 404.6 MB, free: 40.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007104/0.2176, allocations: 0.5544 MB / 405.1 MB, free: 39.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008387/0.2185, allocations: 0.6354 MB / 405.8 MB, free: 39.44 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006859/0.2192, allocations: 0.7345 MB / 406.5 MB, free: 38.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.2193, allocations: 125.1 kB / 406.6 MB, free: 38.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007567/0.2201, allocations: 403.3 kB / 407 MB, free: 38.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.2204, allocations: 341.9 kB / 407.4 MB, free: 38.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005204/0.2209, allocations: 0.733 MB / 408.1 MB, free: 38.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.2224, allocations: 1.953 MB / 410 MB, free: 36.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2224, allocations: 0 / 410 MB, free: 36.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2224, allocations: 1.438 kB / 410 MB, free: 36.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.2224, allocations: 0 / 410 MB, free: 36.68 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.002169/0.2246, allocations: 1.618 MB / 411.7 MB, free: 35.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.2247, allocations: 15.88 kB / 411.7 MB, free: 35.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002542/0.2249, allocations: 151.2 kB / 411.8 MB, free: 34.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008282/0.2257, allocations: 0.8114 MB / 412.6 MB, free: 34.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.2258, allocations: 77.94 kB / 412.7 MB, free: 34.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.2259, allocations: 99.91 kB / 412.8 MB, free: 33.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.2274, allocations: 1.118 MB / 413.9 MB, free: 32.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.2274, allocations: 3.938 kB / 413.9 MB, free: 32.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.497e-05/0.2275, allocations: 36 kB / 414 MB, free: 32.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/0.2275, allocations: 27.94 kB / 414 MB, free: 32.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.2289, allocations: 1.011 MB / 415 MB, free: 31.73 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.2335, allocations: 6.022 MB / 421 MB, free: 25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009567/0.2345, allocations: 0.7498 MB / 421.8 MB, free: 24.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005517/0.235, allocations: 386.7 kB / 422.2 MB, free: 23.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001804/0.2352, allocations: 182.8 kB / 422.3 MB, free: 23.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.2353, allocations: 43.22 kB / 422.4 MB, free: 23.6 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.144e-06/0.2353, allocations: 0 / 422.4 MB, free: 23.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.003998/0.2393, allocations: 2.273 MB / 424.6 MB, free: 21.28 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.428e-05/0.2393, allocations: 60.06 kB / 424.7 MB, free: 21.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.2404, allocations: 1.066 MB / 425.8 MB, free: 20.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.228e-05/0.2404, allocations: 37.7 kB / 425.8 MB, free: 20.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.2407, allocations: 0.5386 MB / 426.3 MB, free: 19.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.2409, allocations: 268 kB / 426.6 MB, free: 19.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.2411, allocations: 170.5 kB / 426.8 MB, free: 19.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.671e-05/0.2412, allocations: 341.9 kB / 427.1 MB, free: 18.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.2417, allocations: 343.7 kB / 427.4 MB, free: 18.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005341/0.2422, allocations: 0.4966 MB / 427.9 MB, free: 17.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005194/0.2474, allocations: 1.812 MB / 429.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.2474, allocations: 0 / 429.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001501/0.2489, allocations: 1.011 MB / 430.8 MB, free: 14.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.249, allocations: 10.66 kB / 430.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.249, allocations: 4.719 kB / 430.8 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.249, allocations: 19.92 kB / 430.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008469/0.2499, allocations: 231.6 kB / 431 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.2499, allocations: 11.98 kB / 431 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005818/0.2505, allocations: 28 kB / 431.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/0.2506, allocations: 43.97 kB / 431.1 MB, free: 14.59 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.00048/0.251, allocations: 366.3 kB / 431.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.2512, allocations: 110.6 kB / 431.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.2527, allocations: 0.9543 MB / 432.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.2527, allocations: 7.922 kB / 432.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.2527, allocations: 0 / 432.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.2531, allocations: 275.6 kB / 432.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.2532, allocations: 16 kB / 432.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/0.2536, allocations: 27.98 kB / 432.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-05/0.2537, allocations: 48.92 kB / 432.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00158/0.2553, allocations: 0.9466 MB / 433.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001731/0.2571, allocations: 1.461 MB / 435.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004616/0.2575, allocations: 383.9 kB / 435.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007201/0.2583, allocations: 0.7408 MB / 436.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of Backend: time 5.11e-07/0.2583, allocations: 0 / 436.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002312/0.2606, allocations: 1.019 MB / 437.4 MB, free: 8.379 MB / 318.1 MB Notification: Performance of SimCode: time 0.002936/0.2635, allocations: 2.778 MB / 440.2 MB, free: 5.543 MB / 318.1 MB Notification: Performance of Templates: time 0.0276/0.2912, allocations: 18.57 MB / 458.8 MB, free: 3.016 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)