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.001125/0.001125, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001121/0.001121, allocations: 199.3 kB / 16.14 MB, free: 6.664 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.105/1.105, allocations: 205.1 MB / 222 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04844/0.04844, allocations: 11.85 MB / 281.2 MB, free: 9.645 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.001305/0.001305, allocations: 63.34 kB / 341.2 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06251/0.06382, allocations: 49.22 MB / 390.5 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005575/0.06943, allocations: 5.569 MB / 396 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.07315, allocations: 2.88 MB / 398.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004515/0.07363, allocations: 15.94 kB / 398.9 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004109/0.07405, allocations: 127.3 kB / 399.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006634/0.07473, allocations: 298.1 kB / 399.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009573/0.07569, allocations: 478.5 kB / 399.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000938/0.07664, allocations: 1.086 MB / 400.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.07699, allocations: 295.8 kB / 401.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003111/0.07731, allocations: 342.6 kB / 401.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.0777, allocations: 426.1 kB / 401.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.458e-05/0.07778, allocations: 40 kB / 402 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004068/0.07819, allocations: 251.8 kB / 402.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001433/0.07834, allocations: 163.3 kB / 402.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003147/0.07866, allocations: 394 kB / 402.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000896/0.07957, allocations: 1.13 MB / 403.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.07958, allocations: 0 / 403.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.07959, allocations: 0 / 403.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.0796, allocations: 0 / 403.9 MB, free: 7.562 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.001529/0.08113, allocations: 1.085 MB / 405 MB, free: 6.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.08117, allocations: 8.031 kB / 405 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.08128, allocations: 102.7 kB / 405.1 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.08145, allocations: 80 kB / 405.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005507/0.082, allocations: 0.5129 MB / 405.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.08205, allocations: 45.31 kB / 405.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-05/0.08213, allocations: 52 kB / 405.8 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009936/0.08313, allocations: 0.687 MB / 406.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.08316, allocations: 0 / 406.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.658e-05/0.08322, allocations: 27.94 kB / 406.5 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.08323, allocations: 12 kB / 406.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.0841, allocations: 0.54 MB / 407 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003476/0.08759, allocations: 3.386 MB / 410.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008074/0.0884, allocations: 0.5002 MB / 410.9 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.08873, allocations: 196.8 kB / 411.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.922e-05/0.08884, allocations: 85.11 kB / 411.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.08887, allocations: 42.56 kB / 411.2 MB, free: 15.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.593e-06/0.08888, allocations: 3.938 kB / 411.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002686/0.09157, allocations: 1.448 MB / 412.7 MB, free: 14.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.09162, allocations: 85.11 kB / 412.8 MB, free: 14.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005735/0.0922, allocations: 0.577 MB / 413.4 MB, free: 13.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.09225, allocations: 41.7 kB / 413.4 MB, free: 13.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.09244, allocations: 296.8 kB / 413.7 MB, free: 13.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.09255, allocations: 157.8 kB / 413.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.09269, allocations: 94.16 kB / 413.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.09283, allocations: 366.8 kB / 414.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.09314, allocations: 186.4 kB / 414.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003425/0.09349, allocations: 273.9 kB / 414.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002629/0.09612, allocations: 1.04 MB / 415.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.09614, allocations: 4 kB / 415.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000881/0.09703, allocations: 0.58 MB / 416.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.09706, allocations: 33.7 kB / 416.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.09708, allocations: 4 kB / 416.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001649/0.09725, allocations: 92.81 kB / 416.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.09764, allocations: 103.8 kB / 416.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.09913, allocations: 1.615 MB / 418.2 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.09951, allocations: 52.05 kB / 418.3 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.722e-05/0.09956, allocations: 19.98 kB / 418.3 MB, free: 8.211 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.0003385/0.0999, allocations: 300.3 kB / 418.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1, allocations: 67.23 kB / 418.6 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009414/0.101, allocations: 0.5526 MB / 419.2 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.101, allocations: 4 kB / 419.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.101, allocations: 0 / 419.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.101, allocations: 0 / 419.2 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.1027, allocations: 1.284 MB / 420.5 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1027, allocations: 4 kB / 420.5 MB, free: 5.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.1031, allocations: 83.89 kB / 420.6 MB, free: 5.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000135/0.1032, allocations: 84.75 kB / 420.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.1033, allocations: 15.98 kB / 420.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001233/0.1045, allocations: 1.491 MB / 422.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1045, allocations: 0 / 422.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1057, allocations: 0.8249 MB / 423 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.1059, allocations: 192.3 kB / 423.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.926e-05/0.106, allocations: 16 kB / 423.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003639/0.1063, allocations: 43.95 kB / 423.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.1066, allocations: 119.8 kB / 423.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1066, allocations: 19.98 kB / 423.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004122/0.107, allocations: 418.8 kB / 423.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.107, allocations: 0 / 423.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005563/0.1076, allocations: 195.9 kB / 424 MB, free: 2.23 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.002095/0.1097, allocations: 1.694 MB / 425.7 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1084/0.2181, allocations: 0.5755 MB / 426.2 MB, free: 41.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.2181, allocations: 3.062 kB / 426.2 MB, free: 41.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005859/0.2187, allocations: 389.2 kB / 426.6 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009065/0.2196, allocations: 174.2 kB / 426.8 MB, free: 41.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006316/0.2259, allocations: 5.955 MB / 432.7 MB, free: 38.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.2263, allocations: 0.9255 MB / 433.7 MB, free: 37.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003284/0.2266, allocations: 95.56 kB / 433.8 MB, free: 37.78 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.2269, allocations: 223.4 kB / 434 MB, free: 37.62 MB / 318.1 MB Notification: Performance of SimCode: time 9.71e-07/0.2269, allocations: 1.281 kB / 434 MB, free: 37.62 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.2513, allocations: 17.14 MB / 451.1 MB, free: 28.55 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.2514, allocations: 275.7 kB / 451.4 MB, free: 28.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/2.106, allocations: 4 kB / 451.4 MB, free: 28.18 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)