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.001979/0.001979, allocations: 112.7 kB / 16.47 MB, free: 6.43 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.002221/0.002221, allocations: 180.1 kB / 17.4 MB, free: 5.668 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.448/1.448, allocations: 207.6 MB / 225.8 MB, free: 11.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06025/0.06025, allocations: 12 MB / 287.6 MB, free: 13.18 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.002162/0.002162, allocations: 78.59 kB / 403.5 MB, free: 43.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.08852, allocations: 51.89 MB / 455.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.008171/0.09669, allocations: 6.134 MB / 461.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005777/0.1025, allocations: 3.281 MB / 464.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005218/0.103, allocations: 15.94 kB / 464.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007558/0.1037, allocations: 286 kB / 465.1 MB, free: 15.2 MB / 350.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.001426/0.1052, allocations: 0.6095 MB / 465.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.1071, allocations: 0.8376 MB / 466.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.1092, allocations: 1.86 MB / 468.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000602/0.1098, allocations: 391.8 kB / 468.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008039/0.1106, allocations: 0.6422 MB / 469.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008947/0.1115, allocations: 0.7468 MB / 470.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001859/0.1117, allocations: 124 kB / 470.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007856/0.1125, allocations: 403.8 kB / 470.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003354/0.1128, allocations: 346.7 kB / 471 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007248/0.1135, allocations: 0.7308 MB / 471.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002417/0.1159, allocations: 1.981 MB / 473.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.116, allocations: 4 kB / 473.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.116, allocations: 0 / 473.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.221e-05/0.116, allocations: 0 / 473.8 MB, free: 6.496 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.002851/0.1188, allocations: 1.658 MB / 475.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.1189, allocations: 11.89 kB / 475.4 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.1192, allocations: 160 kB / 475.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.1204, allocations: 0.8355 MB / 476.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/0.1205, allocations: 81.94 kB / 476.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.1207, allocations: 96 kB / 476.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.1226, allocations: 1.118 MB / 477.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.1226, allocations: 0 / 477.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-05/0.1227, allocations: 39.98 kB / 477.7 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.1228, allocations: 24 kB / 477.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.1246, allocations: 1.015 MB / 478.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007059/0.1316, allocations: 6.016 MB / 484.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.1329, allocations: 0.7148 MB / 485.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/0.1337, allocations: 370.6 kB / 485.9 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002458/0.1339, allocations: 182.8 kB / 486.1 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.1339, allocations: 47.22 kB / 486.1 MB, free: 9.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 3.076e-06/0.1339, allocations: 0 / 486.1 MB, free: 9.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=76): time 0.004919/0.1389, allocations: 2.283 MB / 488.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1389, allocations: 64.06 kB / 488.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.1403, allocations: 1.066 MB / 489.5 MB, free: 5.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/0.1404, allocations: 37.7 kB / 489.6 MB, free: 5.742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004812/0.1409, allocations: 0.5512 MB / 490.1 MB, free: 5.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002427/0.1411, allocations: 277.6 kB / 490.4 MB, free: 4.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002686/0.1414, allocations: 166.5 kB / 490.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1415, allocations: 341.9 kB / 490.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006159/0.1421, allocations: 344.7 kB / 491.2 MB, free: 4.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007474/0.1429, allocations: 0.5037 MB / 491.7 MB, free: 3.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00585/0.1487, allocations: 1.8 MB / 493.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.1487, allocations: 3.938 kB / 493.5 MB, free: 1.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001901/0.1506, allocations: 1.02 MB / 494.5 MB, free: 0.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.1507, allocations: 12.66 kB / 494.5 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/0.1507, allocations: 7.984 kB / 494.6 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.1507, allocations: 19.94 kB / 494.6 MB, free: 0.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009311/0.1516, allocations: 223.7 kB / 494.8 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.03e-05/0.1517, allocations: 8 kB / 494.8 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005775/0.1522, allocations: 31.98 kB / 494.8 MB, free: 292 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.819e-05/0.1523, allocations: 39.98 kB / 494.9 MB, free: 252 kB / 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.0006884/0.153, allocations: 374.7 kB / 495.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.1532, allocations: 115.2 kB / 495.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001848/0.1551, allocations: 0.9466 MB / 496.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.1551, allocations: 7.922 kB / 496.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1551, allocations: 0 / 496.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.1555, allocations: 288.2 kB / 496.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.1557, allocations: 16 kB / 496.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/0.1561, allocations: 23.98 kB / 496.6 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.1563, allocations: 56.92 kB / 496.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001972/0.1582, allocations: 0.9544 MB / 497.6 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002363/0.1606, allocations: 1.458 MB / 499.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006186/0.1612, allocations: 355.8 kB / 499.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001072/0.1623, allocations: 0.733 MB / 0.4885 GB, free: 10.88 MB / 382.1 MB Notification: Performance of Backend: time 2.9e-07/0.1623, allocations: 0 / 0.4885 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003333/0.1656, allocations: 0.9892 MB / 0.4894 GB, free: 10 MB / 382.1 MB Notification: Performance of SimCode: time 0.004417/0.17, allocations: 2.759 MB / 0.4921 GB, free: 7.184 MB / 382.1 MB Notification: Performance of Templates: time 0.03543/0.2055, allocations: 19.23 MB / 0.5109 GB, free: 3.93 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)