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.005498/0.005498, allocations: 100.7 kB / 15.73 MB, free: 5.961 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.001254/0.001254, allocations: 195.6 kB / 16.67 MB, free: 5.883 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.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05645/0.05645, allocations: 11.85 MB / 281.8 MB, free: 208 kB / 222.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.002072/0.002072, allocations: 73.59 kB / 391.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08252/0.0846, allocations: 49.23 MB / 441.1 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.005207/0.08986, allocations: 4.413 MB / 445.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004231/0.09411, allocations: 2.692 MB / 448.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000336/0.09447, allocations: 11.94 kB / 448.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005085/0.09501, allocations: 154.8 kB / 448.3 MB, free: 11.27 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.0007139/0.09574, allocations: 333.7 kB / 448.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.09691, allocations: 0.5757 MB / 449.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.09803, allocations: 1.09 MB / 450.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004584/0.09849, allocations: 324.7 kB / 450.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004593/0.09896, allocations: 410.5 kB / 451 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005453/0.09952, allocations: 442.3 kB / 451.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.09965, allocations: 88 kB / 451.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005333/0.1002, allocations: 307.8 kB / 451.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002207/0.1004, allocations: 203.3 kB / 452.1 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004485/0.1009, allocations: 442 kB / 452.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001374/0.1023, allocations: 1.176 MB / 453.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1023, allocations: 0 / 453.7 MB, free: 5.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1023, allocations: 3.938 kB / 453.7 MB, free: 5.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1023, allocations: 0 / 453.7 MB, free: 5.914 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.001985/0.1043, allocations: 1.111 MB / 454.8 MB, free: 4.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.1044, allocations: 15.89 kB / 454.8 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.1045, allocations: 98.69 kB / 454.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.1047, allocations: 88.42 kB / 455 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007531/0.1055, allocations: 0.5095 MB / 455.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.1055, allocations: 41.31 kB / 455.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.1057, allocations: 71.88 kB / 455.6 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.1068, allocations: 0.6792 MB / 456.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.1069, allocations: 0 / 456.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.747e-05/0.1069, allocations: 20 kB / 456.3 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.1069, allocations: 16 kB / 456.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.108, allocations: 0.5478 MB / 456.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004357/0.1123, allocations: 3.387 MB / 460.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009451/0.1133, allocations: 0.5066 MB / 460.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.1137, allocations: 200.6 kB / 461 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001218/0.1138, allocations: 89.09 kB / 461 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.1138, allocations: 39.12 kB / 461.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.1138, allocations: 0 / 461.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003235/0.1171, allocations: 1.478 MB / 462.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.1172, allocations: 81.11 kB / 462.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007218/0.1179, allocations: 0.5771 MB / 463.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.118, allocations: 37.7 kB / 463.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.1182, allocations: 305.2 kB / 463.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.1184, allocations: 162.7 kB / 463.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.1185, allocations: 90.2 kB / 463.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.1187, allocations: 370.8 kB / 464.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1191, allocations: 182.9 kB / 464.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004168/0.1195, allocations: 273.9 kB / 464.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002938/0.1225, allocations: 1.033 MB / 465.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1225, allocations: 0 / 465.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001044/0.1235, allocations: 0.58 MB / 466.2 MB, free: 8.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.1236, allocations: 34.08 kB / 466.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.1236, allocations: 8 kB / 466.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002077/0.1238, allocations: 96.81 kB / 466.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004017/0.1242, allocations: 103.8 kB / 466.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001949/0.1262, allocations: 1.775 MB / 468.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003959/0.1266, allocations: 51.92 kB / 468.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.1267, allocations: 20 kB / 468.3 MB, free: 6.32 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.0004148/0.1271, allocations: 277 kB / 468.6 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1272, allocations: 63.62 kB / 468.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.1283, allocations: 0.5414 MB / 469.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1283, allocations: 11.94 kB / 469.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1283, allocations: 0 / 469.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.1283, allocations: 7.922 kB / 469.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.1303, allocations: 1.289 MB / 470.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.1303, allocations: 0 / 470.5 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.1307, allocations: 79.91 kB / 470.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001536/0.1309, allocations: 84.75 kB / 470.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/0.1309, allocations: 20.08 kB / 470.7 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001644/0.1326, allocations: 1.582 MB / 472.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.1326, allocations: 11.91 kB / 472.3 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.1339, allocations: 0.8195 MB / 473.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002432/0.1341, allocations: 196.8 kB / 473.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.391e-05/0.1342, allocations: 20 kB / 473.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003623/0.1346, allocations: 31.95 kB / 473.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.1349, allocations: 131.7 kB / 473.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.1349, allocations: 15.98 kB / 473.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.1354, allocations: 414.8 kB / 473.9 MB, free: 468 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1355, allocations: 4 kB / 473.9 MB, free: 464 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006753/0.1361, allocations: 199.8 kB / 474.1 MB, free: 264 kB / 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.002969/0.1391, allocations: 1.697 MB / 475.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.1402, allocations: 0.5784 MB / 476.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1402, allocations: 4 kB / 476.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000536/0.1407, allocations: 385.9 kB / 476.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008139/0.1416, allocations: 194.2 kB / 476.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00777/0.1493, allocations: 5.565 MB / 482.5 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006019/0.15, allocations: 0.9298 MB / 483.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003437/0.1503, allocations: 85.03 kB / 483.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003402/0.1507, allocations: 231.3 kB / 483.7 MB, free: 6.418 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.1507, allocations: 4 kB / 483.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05079/0.2015, allocations: 18.01 MB / 0.49 GB, free: 4.375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.55, allocations: 12.64 kB / 0.49 GB, free: 4.363 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 & /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)