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.0007898/0.0007899, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005349/0.005349, allocations: 172 kB / 16.27 MB, free: 6.367 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.473/1.473, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05323/0.05323, allocations: 11.86 MB / 282.6 MB, free: 9.367 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.0005644/0.0005645, allocations: 18.34 kB / 343.5 MB, free: 22.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09535, allocations: 50.22 MB / 393.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005418/0.1008, allocations: 5.153 MB / 398.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00457/0.1054, allocations: 2.825 MB / 401.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005667/0.106, allocations: 8 kB / 401.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005258/0.1066, allocations: 127.3 kB / 401.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009004/0.1075, allocations: 302.1 kB / 402.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.1089, allocations: 476.9 kB / 402.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.1102, allocations: 1.094 MB / 403.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004143/0.1106, allocations: 288.1 kB / 404 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004119/0.1111, allocations: 330.6 kB / 404.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004333/0.1115, allocations: 394.2 kB / 404.7 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.756e-05/0.1116, allocations: 36 kB / 404.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000449/0.112, allocations: 247.8 kB / 405 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.1122, allocations: 151.3 kB / 405.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.1125, allocations: 399.7 kB / 405.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1135, allocations: 1.106 MB / 406.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1136, allocations: 8 kB / 406.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1136, allocations: 0 / 406.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.1136, allocations: 0 / 406.6 MB, free: 6.902 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.00168/0.1153, allocations: 0.9447 MB / 407.6 MB, free: 5.902 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.1153, allocations: 12.03 kB / 407.6 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002418/0.1156, allocations: 80 kB / 407.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006791/0.1163, allocations: 0.5092 MB / 408.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.1163, allocations: 49.25 kB / 408.2 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1164, allocations: 59.91 kB / 408.3 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.1176, allocations: 0.6792 MB / 409 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.1177, allocations: 3.984 kB / 409 MB, free: 4.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.161e-05/0.1177, allocations: 28 kB / 409 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.1177, allocations: 12 kB / 409 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009566/0.1187, allocations: 0.5439 MB / 409.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004261/0.123, allocations: 3.414 MB / 413 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009228/0.1239, allocations: 0.5113 MB / 413.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/0.1243, allocations: 188.8 kB / 413.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.1244, allocations: 93.66 kB / 413.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.807e-05/0.1244, allocations: 42.5 kB / 413.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.1244, allocations: 0 / 413.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.003147/0.1276, allocations: 1.487 MB / 415.3 MB, free: 13.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.1277, allocations: 85.09 kB / 415.4 MB, free: 13.53 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006861/0.1284, allocations: 0.5693 MB / 415.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.1284, allocations: 37.7 kB / 416 MB, free: 12.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.1287, allocations: 300.7 kB / 416.3 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1288, allocations: 157.8 kB / 416.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.111e-05/0.1289, allocations: 49.69 kB / 416.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.129, allocations: 366.8 kB / 416.8 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/0.1294, allocations: 189.9 kB / 417 MB, free: 11.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.1297, allocations: 273.9 kB / 417.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002864/0.1326, allocations: 1.072 MB / 418.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1326, allocations: 4 kB / 418.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000974/0.1336, allocations: 0.5758 MB / 418.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.7e-05/0.1337, allocations: 36.58 kB / 419 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1337, allocations: 8 kB / 419 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002054/0.1339, allocations: 92.81 kB / 419.1 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000411/0.1343, allocations: 99.83 kB / 419.2 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.1361, allocations: 1.631 MB / 420.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.1366, allocations: 68.03 kB / 420.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.028e-05/0.1367, allocations: 20 kB / 420.9 MB, free: 7.707 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.0004648/0.1372, allocations: 312.3 kB / 421.2 MB, free: 7.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.949e-05/0.1373, allocations: 59.25 kB / 421.2 MB, free: 7.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.1383, allocations: 0.5527 MB / 421.8 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1383, allocations: 4 kB / 421.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.1383, allocations: 0 / 421.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.1383, allocations: 7.984 kB / 421.8 MB, free: 6.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.1403, allocations: 1.28 MB / 423.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1403, allocations: 0 / 423.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004005/0.1407, allocations: 83.98 kB / 423.2 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/0.1409, allocations: 80.81 kB / 423.2 MB, free: 5.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.765e-05/0.1409, allocations: 15.94 kB / 423.3 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.1423, allocations: 1.507 MB / 424.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1423, allocations: 0 / 424.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.1436, allocations: 0.8208 MB / 425.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.1438, allocations: 200.2 kB / 425.8 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.262e-05/0.1439, allocations: 24.06 kB / 425.8 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.1444, allocations: 55.94 kB / 425.9 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.1446, allocations: 119.8 kB / 426 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.1446, allocations: 15.98 kB / 426 MB, free: 2.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004814/0.1451, allocations: 414.8 kB / 426.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1451, allocations: 0 / 426.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007017/0.1458, allocations: 200 kB / 426.6 MB, free: 1.691 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.0009712/0.1468, allocations: 440.2 kB / 427 MB, free: 1.363 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009558/0.1478, allocations: 0.5795 MB / 427.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1478, allocations: 0 / 427.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004868/0.1483, allocations: 397.8 kB / 428 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009047/0.1492, allocations: 178.6 kB / 428.2 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1825/0.3317, allocations: 1.639 MB / 429.8 MB, free: 35.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.3322, allocations: 0.9276 MB / 430.7 MB, free: 34.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004659/0.3327, allocations: 90.62 kB / 430.8 MB, free: 34.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001506/0.3329, allocations: 51.91 kB / 430.9 MB, free: 34.58 MB / 318.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3329, allocations: 0 / 430.9 MB, free: 34.58 MB / 318.1 MB Notification: Performance of Templates: time 0.02145/0.3543, allocations: 11.23 MB / 442.1 MB, free: 31.48 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: