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.007613/0.007613, allocations: 101.8 kB / 15.73 MB, free: 6.016 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.002079/0.002079, allocations: 194.1 kB / 16.68 MB, free: 5.934 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.364/1.364, allocations: 205.1 MB / 222.6 MB, free: 4.398 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05746/0.05746, allocations: 11.84 MB / 281.8 MB, free: 9.191 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.002136/0.002136, allocations: 72.12 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2263, allocations: 49.23 MB / 441.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005012/0.2314, allocations: 4.406 MB / 445.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004184/0.2356, allocations: 2.7 MB / 448.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005705/0.2362, allocations: 12.34 kB / 448.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005979/0.2368, allocations: 145.6 kB / 448.3 MB, free: 15.03 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.001099/0.238, allocations: 342.4 kB / 448.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.2395, allocations: 0.57 MB / 449.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001401/0.2409, allocations: 1.101 MB / 450.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004955/0.2414, allocations: 332.7 kB / 450.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006129/0.2421, allocations: 401.7 kB / 451.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007278/0.2428, allocations: 447.7 kB / 451.5 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.243, allocations: 84.16 kB / 451.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007028/0.2437, allocations: 304.7 kB / 451.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.2439, allocations: 201.7 kB / 452.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005902/0.2445, allocations: 444.9 kB / 452.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001609/0.2462, allocations: 1.183 MB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2462, allocations: 1.281 kB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2462, allocations: 0 / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.2462, allocations: 4 kB / 453.7 MB, free: 11.7 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.002195/0.2484, allocations: 1.099 MB / 454.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.2485, allocations: 13.55 kB / 454.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.2486, allocations: 102.1 kB / 454.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002322/0.2488, allocations: 90.47 kB / 455 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007519/0.2496, allocations: 0.5069 MB / 455.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.137e-05/0.2497, allocations: 48.59 kB / 455.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2498, allocations: 62.48 kB / 455.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.2509, allocations: 0.6821 MB / 456.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.251, allocations: 5.188 kB / 456.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.792e-05/0.251, allocations: 21.56 kB / 456.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.251, allocations: 14.12 kB / 456.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009993/0.252, allocations: 0.5461 MB / 456.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004338/0.2564, allocations: 3.384 MB / 460.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009308/0.2573, allocations: 0.502 MB / 460.8 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.2577, allocations: 193.3 kB / 461 MB, free: 5.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.2578, allocations: 101.6 kB / 461.1 MB, free: 5.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.2579, allocations: 33.25 kB / 461.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.2579, allocations: 0 / 461.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.003219/0.2611, allocations: 1.462 MB / 462.5 MB, free: 4.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.2612, allocations: 85.55 kB / 462.6 MB, free: 4.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007111/0.2619, allocations: 0.576 MB / 463.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.319e-05/0.262, allocations: 38.67 kB / 463.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002485/0.2622, allocations: 311.4 kB / 463.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.2624, allocations: 160.3 kB / 463.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.2625, allocations: 94.62 kB / 463.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2627, allocations: 368 kB / 464.2 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003533/0.2631, allocations: 190 kB / 464.3 MB, free: 3.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.2635, allocations: 276.7 kB / 464.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002965/0.2665, allocations: 1.039 MB / 465.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2665, allocations: 0 / 465.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001089/0.2676, allocations: 0.5802 MB / 466.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.76e-05/0.2676, allocations: 33.69 kB / 466.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.2677, allocations: 4 kB / 466.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.2679, allocations: 88.83 kB / 466.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004292/0.2683, allocations: 103.8 kB / 466.5 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001899/0.2702, allocations: 1.783 MB / 468.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004846/0.2707, allocations: 43.89 kB / 468.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/0.2708, allocations: 23.98 kB / 468.3 MB, free: 15.21 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.0004212/0.2712, allocations: 270.4 kB / 468.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.2713, allocations: 63.62 kB / 468.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.2724, allocations: 0.5491 MB / 469.2 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.2725, allocations: 15.94 kB / 469.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.2725, allocations: 0 / 469.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2725, allocations: 0 / 469.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.2746, allocations: 1.281 MB / 470.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2746, allocations: 0 / 470.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004188/0.275, allocations: 91.98 kB / 470.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001618/0.2752, allocations: 84.81 kB / 470.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.2752, allocations: 11.98 kB / 470.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.2769, allocations: 1.586 MB / 472.2 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.2769, allocations: 3.938 kB / 472.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2782, allocations: 0.8235 MB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.2785, allocations: 192.7 kB / 473.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.2786, allocations: 12 kB / 473.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.279, allocations: 35.95 kB / 473.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/0.2793, allocations: 127.8 kB / 473.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.2793, allocations: 23.92 kB / 473.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005171/0.2799, allocations: 414.8 kB / 473.9 MB, free: 9.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2799, allocations: 4 kB / 473.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007247/0.2806, allocations: 199.7 kB / 474.1 MB, free: 9.16 MB / 350.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.002959/0.2836, allocations: 1.702 MB / 475.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.2847, allocations: 0.5784 MB / 476.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2847, allocations: 0.75 kB / 476.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005446/0.2852, allocations: 394 kB / 476.7 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008879/0.2861, allocations: 186 kB / 476.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007935/0.2941, allocations: 5.562 MB / 482.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.2947, allocations: 0.9337 MB / 483.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.2951, allocations: 92.95 kB / 483.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/0.2954, allocations: 223.4 kB / 483.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2955, allocations: 0 / 483.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0494/0.3449, allocations: 18.02 MB / 0.49 GB, free: 13.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.75, allocations: 8.703 kB / 0.49 GB, free: 13.18 MB / 382.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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2e-05 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1)