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.00084/0.0008402, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004988/0.004988, allocations: 170 kB / 16.26 MB, free: 6.613 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.14/1.14, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04854/0.04854, allocations: 11.85 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.0005005/0.0005004, allocations: 20.22 kB / 343.6 MB, free: 22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06558/0.06609, allocations: 50.21 MB / 393.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004633/0.07074, allocations: 5.153 MB / 399 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003689/0.07445, allocations: 2.837 MB / 401.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003939/0.07486, allocations: 11.94 kB / 401.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000377/0.07525, allocations: 119.3 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006474/0.07591, allocations: 298.1 kB / 402.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000954/0.07687, allocations: 478.9 kB / 402.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009631/0.07784, allocations: 1.086 MB / 403.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.07822, allocations: 291.8 kB / 404.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003907/0.07861, allocations: 322.6 kB / 404.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004503/0.07907, allocations: 398.2 kB / 404.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.259e-05/0.07916, allocations: 32 kB / 404.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004231/0.07959, allocations: 247.8 kB / 405.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.07974, allocations: 155.4 kB / 405.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003383/0.08008, allocations: 411.7 kB / 405.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009387/0.08103, allocations: 1.098 MB / 406.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.08104, allocations: 0 / 406.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.08105, allocations: 0 / 406.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.08107, allocations: 0 / 406.7 MB, free: 6.805 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.001468/0.08254, allocations: 0.9486 MB / 407.7 MB, free: 5.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.08258, allocations: 16.03 kB / 407.7 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.08271, allocations: 102.7 kB / 407.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.08289, allocations: 80 kB / 407.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006018/0.0835, allocations: 0.509 MB / 408.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.08354, allocations: 45.31 kB / 408.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.08364, allocations: 59.91 kB / 408.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.08467, allocations: 0.6753 MB / 409.2 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.157e-05/0.0847, allocations: 7.984 kB / 409.2 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-05/0.08477, allocations: 31.94 kB / 409.2 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.08478, allocations: 15.98 kB / 409.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008753/0.08566, allocations: 0.54 MB / 409.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003626/0.0893, allocations: 3.414 MB / 413.2 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008283/0.09014, allocations: 0.508 MB / 413.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.09046, allocations: 192.8 kB / 413.9 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.218e-05/0.09056, allocations: 97 kB / 414 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.09059, allocations: 38.56 kB / 414 MB, free: 15 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.463e-06/0.0906, allocations: 0 / 414 MB, free: 15 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002774/0.09338, allocations: 1.483 MB / 415.5 MB, free: 13.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.09342, allocations: 81.11 kB / 415.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000587/0.09402, allocations: 0.5732 MB / 416.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.09407, allocations: 45.64 kB / 416.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.09427, allocations: 308.6 kB / 416.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.09438, allocations: 149.8 kB / 416.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.09445, allocations: 49.69 kB / 416.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.09459, allocations: 362.8 kB / 417 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.0949, allocations: 193.8 kB / 417.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003375/0.09525, allocations: 269.9 kB / 417.5 MB, free: 11.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002657/0.09791, allocations: 1.06 MB / 418.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.09793, allocations: 4 kB / 418.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008823/0.09882, allocations: 0.5799 MB / 419.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/0.09886, allocations: 40.34 kB / 419.2 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.09887, allocations: 4 kB / 419.2 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.09904, allocations: 88.83 kB / 419.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.09943, allocations: 103.8 kB / 419.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.101, allocations: 1.639 MB / 421 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.1014, allocations: 68.03 kB / 421.1 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.1015, allocations: 20 kB / 421.1 MB, free: 7.492 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.0003504/0.1018, allocations: 316 kB / 421.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.381e-05/0.1019, allocations: 59.25 kB / 421.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009635/0.1029, allocations: 0.5526 MB / 422 MB, free: 6.547 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1029, allocations: 4 kB / 422 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1029, allocations: 4 kB / 422 MB, free: 6.539 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1029, allocations: 3.984 kB / 422 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.1046, allocations: 1.276 MB / 423.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1046, allocations: 0 / 423.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003702/0.105, allocations: 83.89 kB / 423.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001272/0.1051, allocations: 84.77 kB / 423.4 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.1052, allocations: 11.98 kB / 423.5 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001289/0.1065, allocations: 1.511 MB / 425 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1065, allocations: 3.938 kB / 425 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.1076, allocations: 0.8211 MB / 425.8 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.1079, allocations: 196.3 kB / 426 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.305e-05/0.108, allocations: 20 kB / 426 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003819/0.1083, allocations: 55.95 kB / 426.1 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.1086, allocations: 119.8 kB / 426.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.1086, allocations: 15.98 kB / 426.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004106/0.109, allocations: 418.8 kB / 426.6 MB, free: 1.672 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.109, allocations: 0 / 426.6 MB, free: 1.672 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005496/0.1096, allocations: 195.9 kB / 426.8 MB, free: 1.48 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.1153/0.2249, allocations: 1.694 MB / 428.5 MB, free: 40.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.226, allocations: 0.5766 MB / 429.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.226, allocations: 0.7656 kB / 429.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004043/0.2264, allocations: 392.1 kB / 429.4 MB, free: 39.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009219/0.2273, allocations: 174.7 kB / 429.6 MB, free: 39.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006369/0.2337, allocations: 6.059 MB / 435.7 MB, free: 37.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.234, allocations: 0.9249 MB / 436.6 MB, free: 36.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003152/0.2344, allocations: 95 kB / 436.7 MB, free: 36.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.2346, allocations: 222.3 kB / 436.9 MB, free: 36.2 MB / 318.1 MB Notification: Performance of SimCode: time 4e-07/0.2346, allocations: 1.562 kB / 436.9 MB, free: 36.2 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.2595, allocations: 16.87 MB / 453.8 MB, free: 26.97 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.2596, allocations: 278.9 kB / 454 MB, free: 26.61 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.131, allocations: 0 / 454 MB, free: 26.61 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)