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.0008623/0.0008623, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001328/0.001328, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05053/0.05053, allocations: 11.84 MB / 282.2 MB, free: 9.469 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.0006103/0.0006103, allocations: 14.81 kB / 342.9 MB, free: 22.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1062, allocations: 50.21 MB / 393.1 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006895/0.1132, allocations: 6.317 MB / 399.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.1187, allocations: 3.296 MB / 402.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006931/0.1194, allocations: 19.94 kB / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006143/0.1201, allocations: 242.5 kB / 403 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001445/0.1215, allocations: 0.7321 MB / 403.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001598/0.1231, allocations: 0.615 MB / 404.3 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.1248, allocations: 1.185 MB / 405.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005543/0.1254, allocations: 400.9 kB / 405.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006577/0.126, allocations: 0.4981 MB / 406.4 MB, free: 6.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006642/0.1267, allocations: 0.5757 MB / 407 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.894e-05/0.1268, allocations: 52 kB / 407 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006159/0.1274, allocations: 303.6 kB / 407.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.1277, allocations: 251 kB / 407.6 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.1279, allocations: 289 kB / 407.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.1292, allocations: 1.473 MB / 409.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1292, allocations: 0 / 409.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1292, allocations: 0 / 409.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.1292, allocations: 0 / 409.3 MB, free: 3.961 MB / 302.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.002173/0.1314, allocations: 1.37 MB / 410.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.1314, allocations: 8.031 kB / 410.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002563/0.1317, allocations: 154.2 kB / 410.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.1328, allocations: 0.7874 MB / 411.6 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.127e-05/0.1329, allocations: 74 kB / 411.7 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.133, allocations: 96 kB / 411.8 MB, free: 1.383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.1346, allocations: 1.102 MB / 412.9 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.1347, allocations: 0 / 412.9 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.1348, allocations: 43.95 kB / 412.9 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.1348, allocations: 24 kB / 413 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1364, allocations: 1.015 MB / 414 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006452/0.1429, allocations: 6.015 MB / 420 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.1444, allocations: 0.7933 MB / 420.8 MB, free: 7.656 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002151/0.1447, allocations: 186.8 kB / 421 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.1447, allocations: 47.2 kB / 421 MB, free: 7.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 1.803e-06/0.1447, allocations: 0 / 421 MB, free: 7.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004602/0.1493, allocations: 2.292 MB / 423.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1494, allocations: 60.06 kB / 423.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.1507, allocations: 1.062 MB / 424.4 MB, free: 3.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.1508, allocations: 33.7 kB / 424.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.1512, allocations: 0.527 MB / 425 MB, free: 3.316 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002053/0.1514, allocations: 272 kB / 425.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.1514, allocations: 24 kB / 425.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1516, allocations: 337.9 kB / 425.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000546/0.1521, allocations: 346.7 kB / 425.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/0.1529, allocations: 0.4929 MB / 426.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.1535, allocations: 379.9 kB / 426.8 MB, free: 1.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1535, allocations: 0 / 426.8 MB, free: 1.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001568/0.1551, allocations: 1.016 MB / 427.8 MB, free: 392 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1551, allocations: 12.05 kB / 427.8 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.1551, allocations: 8 kB / 427.8 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.1552, allocations: 11.95 kB / 427.9 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008907/0.1561, allocations: 227.6 kB / 428.1 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.736e-05/0.1561, allocations: 12 kB / 428.1 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006305/0.1567, allocations: 59.95 kB / 428.2 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.19e-05/0.1568, allocations: 35.98 kB / 428.2 MB, free: 24 kB / 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.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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] valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2089/0.3657, allocations: 425.8 kB / 428.6 MB, free: 39.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.366, allocations: 111.8 kB / 428.7 MB, free: 39.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.3679, allocations: 0.9617 MB / 429.7 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.326e-05/0.3679, allocations: 9.812 kB / 429.7 MB, free: 39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.3679, allocations: 6.172 kB / 429.7 MB, free: 38.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.3679, allocations: 4.125 kB / 429.7 MB, free: 38.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004101/0.372, allocations: 2.326 MB / 432 MB, free: 38.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.3721, allocations: 1.969 kB / 432 MB, free: 38.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008517/0.3729, allocations: 185.3 kB / 432.2 MB, free: 38.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/0.3729, allocations: 5.609 kB / 432.2 MB, free: 38.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.126e-05/0.373, allocations: 28.62 kB / 432.2 MB, free: 38.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.059e-05/0.373, allocations: 7.078 kB / 432.2 MB, free: 38.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.373, allocations: 6 kB / 432.2 MB, free: 38.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.3753, allocations: 1.451 MB / 433.7 MB, free: 37.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005071/0.3758, allocations: 294.7 kB / 434 MB, free: 37.37 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000142/0.3759, allocations: 26.5 kB / 434 MB, free: 37.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.3764, allocations: 43.83 kB / 434.1 MB, free: 37.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.3766, allocations: 54.89 kB / 434.1 MB, free: 37.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.207e-05/0.3767, allocations: 32.38 kB / 434.1 MB, free: 37.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3778, allocations: 0.7327 MB / 434.9 MB, free: 37.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3778, allocations: 1.406 kB / 434.9 MB, free: 37.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001074/0.3789, allocations: 300.1 kB / 435.2 MB, free: 37 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/0.3799, allocations: 467.9 kB / 435.6 MB, free: 36.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3814, allocations: 0.7821 MB / 436.4 MB, free: 36.54 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3814, allocations: 1.031 kB / 436.4 MB, free: 36.54 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006884/0.3821, allocations: 405.8 kB / 436.8 MB, free: 36.4 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.3834, allocations: 336.2 kB / 437.1 MB, free: 36.28 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004581/0.388, allocations: 2.781 MB / 439.9 MB, free: 34.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009159/0.3889, allocations: 1.18 MB / 441.1 MB, free: 33.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009709/0.3899, allocations: 220.7 kB / 441.3 MB, free: 33.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/0.3902, allocations: 110.6 kB / 441.4 MB, free: 33.8 MB / 318.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3902, allocations: 0 / 441.4 MB, free: 33.8 MB / 318.1 MB Notification: Performance of Templates: time 0.02513/0.4153, allocations: 16.35 MB / 457.8 MB, free: 22.54 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: