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: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ReliefValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05729/0.05729, allocations: 11.85 MB / 281.6 MB, free: 9.449 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.001786/0.001786, allocations: 67.56 kB / 341.9 MB, free: 21.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09468, allocations: 49.22 MB / 391.2 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.006646/0.1014, allocations: 4.411 MB / 395.6 MB, free: 200 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004448/0.1058, allocations: 2.689 MB / 398.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006077/0.1065, allocations: 11.94 kB / 398.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00066/0.1072, allocations: 154.8 kB / 398.4 MB, free: 13.34 MB / 302.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.001205/0.1084, allocations: 337.7 kB / 398.7 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.1099, allocations: 0.5683 MB / 399.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001383/0.1113, allocations: 1.102 MB / 400.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005371/0.1118, allocations: 336.6 kB / 400.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006633/0.1125, allocations: 394.6 kB / 401.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007479/0.1133, allocations: 442.3 kB / 401.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001904/0.1135, allocations: 88 kB / 401.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006654/0.1141, allocations: 303.8 kB / 401.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.1144, allocations: 199.3 kB / 402.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005709/0.115, allocations: 450 kB / 402.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00137/0.1164, allocations: 1.165 MB / 403.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1164, allocations: 0 / 403.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1164, allocations: 0 / 403.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.1164, allocations: 7.922 kB / 403.8 MB, free: 7.98 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.002002/0.1184, allocations: 1.081 MB / 404.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.1185, allocations: 15.89 kB / 404.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.1186, allocations: 94.7 kB / 404.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.1189, allocations: 84 kB / 405 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007028/0.1196, allocations: 0.5052 MB / 405.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.173e-05/0.1196, allocations: 45.31 kB / 405.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.676e-05/0.1197, allocations: 59.94 kB / 405.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.1209, allocations: 0.6831 MB / 406.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.1209, allocations: 3.938 kB / 406.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.121, allocations: 20 kB / 406.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.121, allocations: 16 kB / 406.4 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.122, allocations: 0.5439 MB / 406.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004291/0.1263, allocations: 3.386 MB / 410.3 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009554/0.1273, allocations: 0.5035 MB / 410.8 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003547/0.1277, allocations: 192.9 kB / 411 MB, free: 240 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001188/0.1278, allocations: 101.1 kB / 411.1 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.1278, allocations: 35.12 kB / 411.1 MB, free: 76 kB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.824e-06/0.1279, allocations: 0 / 411.1 MB, free: 76 kB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.00323/0.1311, allocations: 1.454 MB / 412.6 MB, free: 14.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.1312, allocations: 89.09 kB / 412.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006966/0.1319, allocations: 0.5809 MB / 413.2 MB, free: 13.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/0.1319, allocations: 37.7 kB / 413.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.1322, allocations: 292.8 kB / 413.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1323, allocations: 153.8 kB / 413.7 MB, free: 13.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.1325, allocations: 94.14 kB / 413.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1327, allocations: 362.8 kB / 414.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/0.1331, allocations: 190.5 kB / 414.3 MB, free: 12.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004192/0.1335, allocations: 277.9 kB / 414.6 MB, free: 12.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003015/0.1365, allocations: 1.036 MB / 415.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1365, allocations: 0 / 415.6 MB, free: 11.28 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001051/0.1376, allocations: 0.5877 MB / 416.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.1376, allocations: 29.7 kB / 416.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1376, allocations: 4 kB / 416.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.1379, allocations: 96.81 kB / 416.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.1383, allocations: 99.83 kB / 416.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.1402, allocations: 1.779 MB / 418.2 MB, free: 8.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.1406, allocations: 39.91 kB / 418.3 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.1407, allocations: 23.98 kB / 418.3 MB, free: 8.453 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 = 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.0004054/0.1411, allocations: 274.3 kB / 418.6 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.1412, allocations: 63.25 kB / 418.6 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.1423, allocations: 0.5449 MB / 419.2 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1423, allocations: 11.94 kB / 419.2 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1423, allocations: 4 kB / 419.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1423, allocations: 0 / 419.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.1443, allocations: 1.28 MB / 420.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1443, allocations: 4.094 kB / 420.5 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.1447, allocations: 87.89 kB / 420.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001581/0.1449, allocations: 80.86 kB / 420.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.145, allocations: 19.92 kB / 420.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001551/0.1465, allocations: 1.578 MB / 422.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.396e-05/0.1466, allocations: 11.91 kB / 422.2 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1479, allocations: 0.8171 MB / 423.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.1481, allocations: 192.3 kB / 423.3 MB, free: 3.199 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.1483, allocations: 19.98 kB / 423.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.1486, allocations: 35.97 kB / 423.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/0.1489, allocations: 135.7 kB / 423.4 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.149, allocations: 12 kB / 423.5 MB, free: 3 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000466/0.1495, allocations: 418.8 kB / 423.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.1495, allocations: 0 / 423.9 MB, free: 2.594 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006712/0.1501, allocations: 195.9 kB / 424.1 MB, free: 2.402 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.002516/0.1527, allocations: 1.695 MB / 425.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.1539, allocations: 0.6141 MB / 426.4 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1539, allocations: 0 / 426.4 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1427/0.2966, allocations: 383.7 kB / 426.7 MB, free: 41.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009549/0.2976, allocations: 186.8 kB / 426.9 MB, free: 41.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006514/0.3042, allocations: 5.761 MB / 432.7 MB, free: 38.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3045, allocations: 0.9215 MB / 433.6 MB, free: 37.73 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.3049, allocations: 91.33 kB / 433.7 MB, free: 37.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.3052, allocations: 221.9 kB / 433.9 MB, free: 37.55 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3052, allocations: 0 / 433.9 MB, free: 37.55 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.757/4.062, allocations: 17.69 MB / 451.6 MB, free: 27.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/19.19, allocations: 12.91 kB / 451.6 MB, free: 27.95 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)