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.001347/0.001347, allocations: 105 kB / 16.41 MB, free: 6.465 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.001477/0.001477, allocations: 187 kB / 17.34 MB, free: 5.719 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.343/1.343, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05448/0.05448, 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.001476/0.001476, allocations: 73.56 kB / 393 MB, free: 45.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08159/0.08307, allocations: 49.23 MB / 442.2 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004935/0.08805, allocations: 4.406 MB / 446.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003558/0.09163, allocations: 2.692 MB / 449.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.0919, allocations: 11.94 kB / 449.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004453/0.09236, allocations: 154.8 kB / 449.5 MB, free: 10.77 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.0006243/0.093, allocations: 341.7 kB / 449.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009721/0.09398, allocations: 0.5647 MB / 450.4 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000968/0.09496, allocations: 1.102 MB / 451.5 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004214/0.09539, allocations: 324.6 kB / 451.8 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004006/0.0958, allocations: 410.6 kB / 452.2 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005058/0.09631, allocations: 446.2 kB / 452.7 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.09643, allocations: 84 kB / 452.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004738/0.09691, allocations: 307.8 kB / 453 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.0971, allocations: 203.3 kB / 453.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003697/0.09747, allocations: 442 kB / 453.7 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.09861, allocations: 1.172 MB / 454.8 MB, free: 5.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.09862, allocations: 3.984 kB / 454.8 MB, free: 5.402 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09863, allocations: 0 / 454.8 MB, free: 5.402 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.09865, allocations: 0 / 454.8 MB, free: 5.402 MB / 334.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.001716/0.1004, allocations: 1.085 MB / 455.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1004, allocations: 11.89 kB / 455.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.1006, allocations: 84 kB / 456 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.1012, allocations: 0.5015 MB / 456.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.1013, allocations: 45.25 kB / 456.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.893e-05/0.1014, allocations: 67.98 kB / 456.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.1025, allocations: 0.683 MB / 457.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.1025, allocations: 7.906 kB / 457.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.765e-05/0.1026, allocations: 20 kB / 457.3 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.1026, allocations: 12 kB / 457.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009128/0.1035, allocations: 0.54 MB / 457.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003872/0.1074, allocations: 3.382 MB / 461.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008788/0.1083, allocations: 0.5109 MB / 461.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.1086, allocations: 200.6 kB / 462 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.1087, allocations: 89.09 kB / 462.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.1087, allocations: 38.56 kB / 462.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.723e-06/0.1088, allocations: 3.938 kB / 462.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002912/0.1117, allocations: 1.453 MB / 463.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.1117, allocations: 85.11 kB / 463.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006328/0.1124, allocations: 0.5809 MB / 464.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.1124, allocations: 37.7 kB / 464.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.1127, allocations: 300.7 kB / 464.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.1128, allocations: 149.9 kB / 464.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.1129, allocations: 94.14 kB / 464.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1131, allocations: 370.7 kB / 465.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003243/0.1134, allocations: 182.9 kB / 465.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.1138, allocations: 269.9 kB / 465.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002797/0.1166, allocations: 1.037 MB / 466.6 MB, free: 8.809 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1166, allocations: 4 kB / 466.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009397/0.1176, allocations: 0.5681 MB / 467.2 MB, free: 8.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.1176, allocations: 37.7 kB / 467.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1176, allocations: 4 kB / 467.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.1178, allocations: 105.1 kB / 467.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.1182, allocations: 95.89 kB / 467.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001742/0.12, allocations: 1.779 MB / 469.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003914/0.1204, allocations: 39.95 kB / 469.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.1204, allocations: 28.03 kB / 469.3 MB, free: 5.988 MB / 350.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 = 0.0 start = idealPump.fluidPower2MechRot.p_init unit = "Pa" fixed = true nominal = 1e5 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.0003772/0.1208, allocations: 281.1 kB / 469.6 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-05/0.1209, allocations: 59.25 kB / 469.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009982/0.1219, allocations: 0.5453 MB / 470.2 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1219, allocations: 4 kB / 470.2 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1219, allocations: 7.938 kB / 470.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.122, allocations: 3.984 kB / 470.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.1238, allocations: 1.285 MB / 471.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.1238, allocations: 0 / 471.5 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.1242, allocations: 83.89 kB / 471.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.1244, allocations: 80.86 kB / 471.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.1244, allocations: 15.98 kB / 471.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.1259, allocations: 1.59 MB / 473.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1259, allocations: 8 kB / 473.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1271, allocations: 0.8153 MB / 474.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002215/0.1273, allocations: 192.4 kB / 474.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.476e-05/0.1274, allocations: 19.98 kB / 474.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.1278, allocations: 35.97 kB / 474.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/0.128, allocations: 131.7 kB / 474.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.157e-05/0.1281, allocations: 16 kB / 474.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004703/0.1286, allocations: 414.8 kB / 474.9 MB, free: 136 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1286, allocations: 0 / 474.9 MB, free: 136 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006483/0.1292, allocations: 196.2 kB / 475 MB, free: 15.94 MB / 366.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.0009927/0.1302, allocations: 443.4 kB / 475.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.1312, allocations: 0.5976 MB / 476.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1312, allocations: 0 / 476.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004797/0.1317, allocations: 381.9 kB / 476.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008038/0.1325, allocations: 191 kB / 476.6 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002021/0.1346, allocations: 1.324 MB / 478 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.1351, allocations: 0.922 MB / 478.9 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.1352, allocations: 63.36 kB / 478.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1352, allocations: 0 / 478.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01555/0.1508, allocations: 13.06 MB / 492 MB, free: 14.99 MB / 382.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)