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.001211/0.001211, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001164/0.001164, allocations: 192.7 kB / 16.25 MB, free: 6.617 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.199/1.199, allocations: 205.1 MB / 222.1 MB, free: 4.703 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04979/0.04979, allocations: 11.83 MB / 281.3 MB, free: 9.598 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.001308/0.001308, allocations: 75.44 kB / 341.4 MB, free: 22.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06642/0.06773, allocations: 49.21 MB / 390.6 MB, free: 4.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005707/0.07347, allocations: 5.569 MB / 396.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.07695, allocations: 2.813 MB / 399 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003498/0.07732, allocations: 11.94 kB / 399 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003891/0.07775, allocations: 119.3 kB / 399.1 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006005/0.07836, allocations: 310.1 kB / 399.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009698/0.07934, allocations: 0.5026 MB / 400 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008829/0.08023, allocations: 1.102 MB / 401.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003783/0.08062, allocations: 328.6 kB / 401.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000375/0.081, allocations: 398.6 kB / 401.8 MB, free: 9.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004168/0.08143, allocations: 458.1 kB / 402.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.003e-05/0.08153, allocations: 88 kB / 402.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004214/0.08195, allocations: 303.8 kB / 402.6 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.08213, allocations: 203.3 kB / 402.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003229/0.08246, allocations: 442 kB / 403.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009814/0.08344, allocations: 1.169 MB / 404.4 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.08346, allocations: 3.938 kB / 404.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08347, allocations: 0 / 404.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.08348, allocations: 4 kB / 404.4 MB, free: 7.121 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.001584/0.08507, allocations: 1.073 MB / 405.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.08511, allocations: 19.83 kB / 405.5 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.887e-05/0.08522, allocations: 98.7 kB / 405.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.0854, allocations: 83.98 kB / 405.7 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.08597, allocations: 0.5091 MB / 406.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.08601, allocations: 53.28 kB / 406.2 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.729e-05/0.08611, allocations: 56 kB / 406.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.08712, allocations: 0.6753 MB / 407 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/0.08715, allocations: 0 / 407 MB, free: 4.434 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.08722, allocations: 27.94 kB / 407 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.08723, allocations: 12 kB / 407 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008618/0.0881, allocations: 0.5439 MB / 407.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.0917, allocations: 3.386 MB / 410.9 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008299/0.09254, allocations: 0.5002 MB / 411.4 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.09286, allocations: 192.8 kB / 411.6 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.09298, allocations: 93.09 kB / 411.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.09301, allocations: 30.56 kB / 411.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.09301, allocations: 3.938 kB / 411.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.00276/0.09578, allocations: 1.448 MB / 413.2 MB, free: 13.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/0.09584, allocations: 89.11 kB / 413.3 MB, free: 13.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005745/0.09642, allocations: 0.5809 MB / 413.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.09647, allocations: 37.7 kB / 413.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.09668, allocations: 304.8 kB / 414.2 MB, free: 12.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.09679, allocations: 145.9 kB / 414.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.09693, allocations: 94.14 kB / 414.4 MB, free: 12.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.09708, allocations: 366.8 kB / 414.8 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002945/0.09738, allocations: 194.4 kB / 415 MB, free: 11.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.09772, allocations: 266 kB / 415.2 MB, free: 11.54 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.1004, allocations: 1.04 MB / 416.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1005, allocations: 0 / 416.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008962/0.1014, allocations: 0.5797 MB / 416.9 MB, free: 9.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.1014, allocations: 37.69 kB / 416.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.1014, allocations: 3.984 kB / 416.9 MB, free: 9.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.1016, allocations: 96.83 kB / 417 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.102, allocations: 104.2 kB / 417.1 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.1037, allocations: 1.771 MB / 418.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.1041, allocations: 59.97 kB / 418.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.1042, allocations: 20 kB / 418.9 MB, free: 7.602 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.0003804/0.1045, allocations: 311.8 kB / 419.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.588e-05/0.1046, allocations: 59.25 kB / 419.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000957/0.1056, allocations: 0.5488 MB / 419.9 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1056, allocations: 7.938 kB / 419.9 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1056, allocations: 7.984 kB / 419.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1056, allocations: 4 kB / 419.9 MB, free: 6.648 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.1074, allocations: 1.28 MB / 421.2 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1074, allocations: 3.938 kB / 421.2 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004/0.1078, allocations: 87.98 kB / 421.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/0.108, allocations: 84.86 kB / 421.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.108, allocations: 8 kB / 421.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.1093, allocations: 1.594 MB / 422.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1093, allocations: 3.938 kB / 422.9 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.1104, allocations: 0.821 MB / 423.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.1107, allocations: 196.3 kB / 423.9 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.665e-05/0.1108, allocations: 12 kB / 424 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.1111, allocations: 47.95 kB / 424 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002348/0.1114, allocations: 127.7 kB / 424.1 MB, free: 2.117 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.1114, allocations: 12 kB / 424.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004182/0.1118, allocations: 414.8 kB / 424.5 MB, free: 1.703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1119, allocations: 3.938 kB / 424.6 MB, free: 1.699 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006115/0.1125, allocations: 195.9 kB / 424.7 MB, free: 1.508 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.125/0.2375, allocations: 1.691 MB / 426.4 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.2387, allocations: 0.6093 MB / 427 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.2387, allocations: 0 / 427 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004092/0.2391, allocations: 399 kB / 427.4 MB, free: 41.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00089/0.24, allocations: 182.5 kB / 427.6 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.2467, allocations: 5.965 MB / 433.6 MB, free: 38.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.247, allocations: 0.9281 MB / 434.5 MB, free: 37.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003554/0.2474, allocations: 88.84 kB / 434.6 MB, free: 37.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.2477, allocations: 226.2 kB / 434.8 MB, free: 37.36 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2477, allocations: 1.344 kB / 434.8 MB, free: 37.36 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04868/0.2964, allocations: 17.66 MB / 452.5 MB, free: 27.32 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/0.2965, allocations: 279.9 kB / 452.7 MB, free: 26.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.263, allocations: 0 / 452.7 MB, free: 26.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)