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.001145/0.001145, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001305/0.001305, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05181/0.05181, allocations: 11.84 MB / 282.2 MB, free: 9.379 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.000564/0.0005642, allocations: 16.22 kB / 343 MB, free: 22.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08685, allocations: 50.21 MB / 393.2 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.004938/0.09184, allocations: 4.437 MB / 397.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003947/0.09582, allocations: 2.637 MB / 400.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004096/0.09627, allocations: 15.88 kB / 400.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004477/0.09673, allocations: 131.2 kB / 400.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008585/0.0976, allocations: 450.6 kB / 400.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.09862, allocations: 398.8 kB / 401.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007987/0.09942, allocations: 0.7021 MB / 402 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003766/0.09981, allocations: 247.7 kB / 402.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003582/0.1002, allocations: 310.9 kB / 402.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004142/0.1006, allocations: 358.6 kB / 402.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.41e-05/0.1007, allocations: 36 kB / 402.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004604/0.1012, allocations: 223.8 kB / 403.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.1013, allocations: 147.4 kB / 403.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1015, allocations: 173.3 kB / 403.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000891/0.1024, allocations: 0.8806 MB / 404.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1024, allocations: 0 / 404.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1024, allocations: 0 / 404.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1024, allocations: 0 / 404.3 MB, free: 8.996 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.0017/0.1041, allocations: 0.9562 MB / 405.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1042, allocations: 8.031 kB / 405.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.1043, allocations: 102.5 kB / 405.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.1045, allocations: 83.06 kB / 405.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007121/0.1052, allocations: 488.7 kB / 405.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.1053, allocations: 45.31 kB / 406 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.1054, allocations: 56 kB / 406 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.1065, allocations: 0.6752 MB / 406.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.1065, allocations: 11.95 kB / 406.7 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.808e-05/0.1066, allocations: 23.98 kB / 406.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.1066, allocations: 12 kB / 406.7 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009483/0.1076, allocations: 0.5439 MB / 407.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00431/0.1119, allocations: 3.418 MB / 410.7 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.1129, allocations: 0.527 MB / 411.2 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.1131, allocations: 101.1 kB / 411.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1131, allocations: 34.56 kB / 411.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.455e-06/0.1131, allocations: 0 / 411.4 MB, free: 1.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003191/0.1163, allocations: 1.492 MB / 412.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.1164, allocations: 85.11 kB / 412.9 MB, free: 15.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.1171, allocations: 0.5654 MB / 413.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/0.1171, allocations: 41.69 kB / 413.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002312/0.1174, allocations: 304.7 kB / 413.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.1175, allocations: 145.9 kB / 414 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.1175, allocations: 12 kB / 414 MB, free: 14.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1177, allocations: 362.8 kB / 414.3 MB, free: 14.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/0.118, allocations: 185.8 kB / 414.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.1184, allocations: 269.9 kB / 414.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.1187, allocations: 199.1 kB / 415 MB, free: 13.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.1187, allocations: 0 / 415 MB, free: 13.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009938/0.1197, allocations: 0.5761 MB / 415.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.1198, allocations: 41.59 kB / 415.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.1198, allocations: 0 / 415.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00021/0.12, allocations: 100.8 kB / 415.7 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/0.1204, allocations: 99.88 kB / 415.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/0.1222, allocations: 1.635 MB / 417.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.1227, allocations: 68.08 kB / 417.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.1228, allocations: 23.98 kB / 417.5 MB, free: 10.87 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.valvePosition:VARIABLE(start = 0.0 fixed = true ) "Normalized valve position (between 0 and 1)" 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 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,$PRE.idealPump.mechanicalPumpLosses.startForward,idealPump.mechanicalPumpLosses.startForward,$PRE.idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.startBackward,idealPump.mechanicalPumpLosses.locked,$PRE.idealPump.mechanicalPumpLosses.mode,idealPump.mechanicalPumpLosses.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004554/0.1232, allocations: 302.8 kB / 417.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1233, allocations: 63.23 kB / 417.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.1244, allocations: 0.5512 MB / 418.4 MB, free: 9.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1244, allocations: 4 kB / 418.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.1244, allocations: 3.938 kB / 418.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.1244, allocations: 3.984 kB / 418.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.1263, allocations: 1.284 MB / 419.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.1264, allocations: 0 / 419.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004133/0.1268, allocations: 83.89 kB / 419.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001578/0.127, allocations: 80.78 kB / 419.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.127, allocations: 11.98 kB / 419.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.1284, allocations: 1.519 MB / 421.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1284, allocations: 0 / 421.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.1296, allocations: 0.8459 MB / 422.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.1299, allocations: 200.3 kB / 422.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.244e-05/0.13, allocations: 20 kB / 422.5 MB, free: 5.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004091/0.1304, allocations: 59.94 kB / 422.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.1307, allocations: 139.7 kB / 422.7 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.1307, allocations: 16 kB / 422.7 MB, free: 5.391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004749/0.1312, allocations: 410.8 kB / 423.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1312, allocations: 4 kB / 423.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007052/0.1319, allocations: 200 kB / 423.3 MB, free: 4.793 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002346/0.1343, allocations: 1.929 MB / 425.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009654/0.1352, allocations: 0.5783 MB / 425.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1353, allocations: 0 / 425.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004828/0.1357, allocations: 386.8 kB / 426.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007506/0.1365, allocations: 182 kB / 426.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1461/0.2826, allocations: 5.65 MB / 432 MB, free: 33.51 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.2831, allocations: 0.9386 MB / 432.9 MB, free: 32.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004493/0.2836, allocations: 89.09 kB / 433 MB, free: 32.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.2839, allocations: 222.7 kB / 433.2 MB, free: 32.8 MB / 318.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2839, allocations: 0 / 433.2 MB, free: 32.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.3133, allocations: 16.56 MB / 449.8 MB, free: 27.25 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/0.3135, allocations: 247.3 kB / 450 MB, free: 26.94 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.264, allocations: 4 kB / 450.1 MB, free: 26.93 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/linux/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) Environment - environmentSimulation: