Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.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.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") translateModel(OpenHydraulics.DevelopmentTests.ReliefValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001033, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001065/0.001065, allocations: 192.4 kB / 16.13 MB, free: 6.699 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.416/1.416, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.052/0.052, allocations: 11.84 MB / 281.2 MB, free: 9.641 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.001334/0.001334, allocations: 71.56 kB / 341.1 MB, free: 22.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09481/0.09616, allocations: 49.23 MB / 390.4 MB, free: 5.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.006755/0.103, allocations: 5.569 MB / 395.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004591/0.1076, allocations: 2.883 MB / 398.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007146/0.1083, allocations: 8 kB / 398.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.1089, allocations: 123.2 kB / 398.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007865/0.1097, allocations: 302.2 kB / 399.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.111, allocations: 482.7 kB / 399.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.112, allocations: 1.086 MB / 400.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004243/0.1124, allocations: 292 kB / 401.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004225/0.1129, allocations: 346.6 kB / 401.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.1133, allocations: 422.2 kB / 401.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.151e-05/0.1134, allocations: 44 kB / 401.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004779/0.1139, allocations: 255.8 kB / 402.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1141, allocations: 155.3 kB / 402.3 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003306/0.1144, allocations: 398 kB / 402.7 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009708/0.1154, allocations: 1.13 MB / 403.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1154, allocations: 0 / 403.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1154, allocations: 0 / 403.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1154, allocations: 0 / 403.8 MB, free: 7.656 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.001977/0.1174, allocations: 1.077 MB / 404.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1174, allocations: 8.031 kB / 404.9 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.1177, allocations: 91.89 kB / 405 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.1183, allocations: 0.4937 MB / 405.5 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.651e-05/0.1183, allocations: 49.25 kB / 405.5 MB, free: 5.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.31e-05/0.1184, allocations: 67.89 kB / 405.6 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.1195, allocations: 0.6753 MB / 406.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.1195, allocations: 0 / 406.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.896e-05/0.1196, allocations: 24 kB / 406.3 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1196, allocations: 16 kB / 406.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009355/0.1206, allocations: 0.54 MB / 406.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004027/0.1246, allocations: 3.39 MB / 410.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008706/0.1255, allocations: 0.4996 MB / 410.7 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/0.1258, allocations: 196.8 kB / 410.9 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001262/0.126, allocations: 93.08 kB / 411 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.126, allocations: 39.12 kB / 411 MB, free: 15.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 2.013e-06/0.126, allocations: 3.938 kB / 411 MB, free: 15.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002979/0.129, allocations: 1.448 MB / 412.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.129, allocations: 81.11 kB / 412.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000717/0.1298, allocations: 0.5771 MB / 413.1 MB, free: 13.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.1298, allocations: 41.64 kB / 413.2 MB, free: 13.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.13, allocations: 300.7 kB / 413.5 MB, free: 13.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.1302, allocations: 157.8 kB / 413.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1304, allocations: 98.14 kB / 413.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1305, allocations: 362.8 kB / 414.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.1309, allocations: 186.5 kB / 414.3 MB, free: 12.49 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000366/0.1312, allocations: 273.9 kB / 414.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002988/0.1342, allocations: 1.048 MB / 415.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1343, allocations: 0 / 415.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001087/0.1353, allocations: 0.5758 MB / 416.2 MB, free: 10.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.1354, allocations: 33.69 kB / 416.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1354, allocations: 4 kB / 416.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001995/0.1356, allocations: 96.83 kB / 416.3 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.1361, allocations: 108.2 kB / 416.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.138, allocations: 1.607 MB / 418 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004803/0.1385, allocations: 51.94 kB / 418.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.239e-05/0.1386, allocations: 20 kB / 418.1 MB, free: 8.414 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: constantSpeed.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real reliefValve.variableRestriction.port_a.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, max(0.0, 0.0))))))))))))))))) start = idealPump.fluidPower2MechRot.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real reliefValve.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (reliefValve.variableRestriction.data.zetaLaminarKnown,idealPump.mechanicalPumpLosses.free,idealPump.mechanicalPumpLosses.mode,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.startBackward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005204/0.1391, allocations: 308.4 kB / 418.4 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.1392, allocations: 59.25 kB / 418.4 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001201/0.1404, allocations: 0.5526 MB / 419 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1404, allocations: 4 kB / 419 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.1405, allocations: 0 / 419 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1405, allocations: 3.984 kB / 419 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.1427, allocations: 1.288 MB / 420.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1427, allocations: 0 / 420.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004104/0.1431, allocations: 83.89 kB / 420.4 MB, free: 6.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.1433, allocations: 80.92 kB / 420.4 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.252e-05/0.1433, allocations: 24.02 kB / 420.5 MB, free: 5.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.145, allocations: 1.476 MB / 421.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.145, allocations: 7.969 kB / 422 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.1464, allocations: 0.8248 MB / 422.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002699/0.1467, allocations: 188.3 kB / 423 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.1468, allocations: 24.05 kB / 423 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003891/0.1472, allocations: 43.95 kB / 423 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.1475, allocations: 115.8 kB / 423.1 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.711e-05/0.1475, allocations: 19.98 kB / 423.2 MB, free: 3.031 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000639/0.1482, allocations: 410.8 kB / 423.6 MB, free: 2.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1482, allocations: 4 kB / 423.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007491/0.1489, allocations: 204 kB / 423.8 MB, free: 2.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (reliefValve.variableRestriction.port_a.p,reliefValve.valvePosition,circuitTank.volumeOpen.m,constantSpeed.phi) * Number of discrete variables: 4 (idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,idealPump.mechanicalPumpLosses.mode) * Number of discrete states: 3 (idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009887/0.1499, allocations: 431.4 kB / 424.2 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.1511, allocations: 0.5791 MB / 424.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1511, allocations: 3.938 kB / 424.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000525/0.1516, allocations: 386.8 kB / 425.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009824/0.1526, allocations: 190.1 kB / 425.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1668/0.3195, allocations: 1.551 MB / 426.9 MB, free: 40.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.3199, allocations: 0.9209 MB / 427.8 MB, free: 39.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005123/0.3205, allocations: 93.39 kB / 427.9 MB, free: 39.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.3206, allocations: 55.11 kB / 427.9 MB, free: 39.98 MB / 318.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3206, allocations: 7.25 kB / 428 MB, free: 39.98 MB / 318.1 MB Notification: Performance of Templates: time 0.02199/0.3426, allocations: 11.27 MB / 439.2 MB, free: 36.8 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)