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.001461/0.001461, allocations: 108.5 kB / 16.41 MB, free: 6.441 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.001343/0.001343, allocations: 190.7 kB / 17.35 MB, free: 5.703 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.429/1.429, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0536/0.0536, allocations: 11.85 MB / 282.4 MB, free: 212 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.001603/0.001603, allocations: 76.53 kB / 393 MB, free: 45.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07545/0.07706, allocations: 49.23 MB / 442.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006221/0.08333, allocations: 6.105 MB / 448.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004705/0.08806, allocations: 3.254 MB / 451.6 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004386/0.08852, allocations: 15.94 kB / 451.6 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006365/0.0892, allocations: 294 kB / 451.9 MB, free: 8.375 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.00118/0.09039, allocations: 0.6134 MB / 452.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.09211, allocations: 0.8287 MB / 453.3 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001824/0.09394, allocations: 1.856 MB / 455.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007182/0.09467, allocations: 0.5582 MB / 455.8 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007482/0.09543, allocations: 0.6461 MB / 456.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008099/0.09625, allocations: 0.739 MB / 457.1 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.09641, allocations: 124 kB / 457.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007702/0.09719, allocations: 403.8 kB / 457.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.09748, allocations: 346.7 kB / 458 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005932/0.09808, allocations: 0.7269 MB / 458.7 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.1002, allocations: 1.967 MB / 460.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.1002, allocations: 0 / 460.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1002, allocations: 7.938 kB / 460.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.1003, allocations: 0 / 460.7 MB, free: 15.53 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.002711/0.103, allocations: 1.612 MB / 462.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.103, allocations: 11.89 kB / 462.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002879/0.1033, allocations: 147.2 kB / 462.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.1044, allocations: 0.8307 MB / 463.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.05e-05/0.1045, allocations: 81.94 kB / 463.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.1046, allocations: 95.98 kB / 463.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.1065, allocations: 1.118 MB / 464.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.1065, allocations: 0 / 464.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/0.1066, allocations: 40 kB / 464.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.1066, allocations: 24 kB / 464.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.1083, allocations: 1.011 MB / 465.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006359/0.1147, allocations: 6.015 MB / 471.7 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.1159, allocations: 0.7393 MB / 472.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006773/0.1166, allocations: 394.6 kB / 472.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002281/0.1168, allocations: 190.8 kB / 473 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.1168, allocations: 39.16 kB / 473 MB, free: 2.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.385e-06/0.1169, allocations: 0 / 473 MB, free: 2.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.00451/0.1214, allocations: 2.274 MB / 475.3 MB, free: 0 / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.1214, allocations: 60.06 kB / 475.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.1227, allocations: 1.062 MB / 476.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.39e-05/0.1228, allocations: 41.7 kB / 476.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/0.1232, allocations: 0.5386 MB / 477 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.1233, allocations: 268.1 kB / 477.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.1236, allocations: 174.5 kB / 477.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1237, allocations: 337.9 kB / 477.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005886/0.1243, allocations: 348.7 kB / 478.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006824/0.125, allocations: 0.492 MB / 478.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005593/0.1306, allocations: 1.804 MB / 480.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1306, allocations: 4 kB / 480.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001723/0.1324, allocations: 1.008 MB / 481.4 MB, free: 9.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1324, allocations: 11.92 kB / 481.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1324, allocations: 12 kB / 481.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.1324, allocations: 11.94 kB / 481.4 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000883/0.1333, allocations: 224 kB / 481.7 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.1334, allocations: 19.94 kB / 481.7 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005221/0.1339, allocations: 35.89 kB / 481.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-05/0.134, allocations: 43.97 kB / 481.8 MB, free: 9.32 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.0005735/0.1346, allocations: 366.8 kB / 482.1 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.1347, allocations: 114.6 kB / 482.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.1365, allocations: 0.9426 MB / 483.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/0.1365, allocations: 7.922 kB / 483.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1365, allocations: 0 / 483.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000359/0.1369, allocations: 271.7 kB / 483.4 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.137, allocations: 16 kB / 483.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004449/0.1375, allocations: 35.97 kB / 483.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1376, allocations: 52.94 kB / 483.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001842/0.1394, allocations: 0.9349 MB / 484.5 MB, free: 6.551 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002144/0.1416, allocations: 1.461 MB / 485.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005645/0.1422, allocations: 395.8 kB / 486.3 MB, free: 4.688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009291/0.1431, allocations: 0.7369 MB / 487.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of Backend: time 2.41e-07/0.1431, allocations: 0 / 487.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.1455, allocations: 1.016 MB / 488.1 MB, free: 3.055 MB / 366.1 MB Notification: Performance of SimCode: time 0.003577/0.1491, allocations: 2.736 MB / 490.8 MB, free: 268 kB / 366.1 MB Notification: Performance of Templates: time 0.03262/0.1817, allocations: 18.84 MB / 0.4977 GB, free: 13.4 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)