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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 106 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 207.6 MB / 229.8 MB, free: 4.242 MB / 174.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05874/0.05874, allocations: 12.01 MB / 293.7 MB, free: 4.453 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002234/0.002234, allocations: 78.48 kB / 411 MB, free: 11.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2447, allocations: 51.89 MB / 462.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ReliefValveTest): time 0.006469/0.2512, allocations: 4.445 MB / 467.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004475/0.2556, allocations: 2.71 MB / 470.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005168/0.2562, allocations: 15.56 kB / 470.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006233/0.2568, allocations: 151.8 kB / 470.2 MB, free: 9.539 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.001202/0.258, allocations: 351.4 kB / 470.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001421/0.2594, allocations: 0.5703 MB / 471.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001385/0.2608, allocations: 1.1 MB / 472.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004233/0.2612, allocations: 227.5 kB / 472.5 MB, free: 8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006139/0.2618, allocations: 401 kB / 472.9 MB, free: 7.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000605/0.2624, allocations: 455.7 kB / 473.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.2625, allocations: 84.28 kB / 473.4 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006271/0.2632, allocations: 301.8 kB / 473.7 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002105/0.2634, allocations: 205.3 kB / 473.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004488/0.2638, allocations: 441.2 kB / 474.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.2653, allocations: 1.181 MB / 475.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.2653, allocations: 7.984 kB / 475.5 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2653, allocations: 0 / 475.5 MB, free: 5.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.2653, allocations: 0 / 475.5 MB, free: 5.613 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.001973/0.2673, allocations: 1.111 MB / 476.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.2673, allocations: 15.89 kB / 476.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001369/0.2674, allocations: 98.7 kB / 476.7 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.2677, allocations: 84.42 kB / 476.8 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007924/0.2684, allocations: 0.5056 MB / 477.3 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.2685, allocations: 41.31 kB / 477.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.2686, allocations: 67.89 kB / 477.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.2698, allocations: 0.683 MB / 478.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.496e-05/0.2698, allocations: 7.922 kB / 478.1 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.848e-05/0.2699, allocations: 24 kB / 478.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.2699, allocations: 16 kB / 478.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.2709, allocations: 0.54 MB / 478.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004527/0.2754, allocations: 3.391 MB / 482.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009423/0.2764, allocations: 495.1 kB / 482.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.2767, allocations: 180.8 kB / 482.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001172/0.2768, allocations: 85.11 kB / 482.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.2768, allocations: 42.55 kB / 482.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.2768, allocations: 0 / 482.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003124/0.28, allocations: 1.463 MB / 484.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.28, allocations: 85.05 kB / 484.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007333/0.2808, allocations: 0.5771 MB / 485 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.096e-05/0.2808, allocations: 41.69 kB / 485 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.2811, allocations: 309.2 kB / 485.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.2812, allocations: 154.7 kB / 485.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.2814, allocations: 90.2 kB / 485.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.2816, allocations: 374.8 kB / 485.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.2819, allocations: 182.8 kB / 486.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004083/0.2823, allocations: 277.9 kB / 486.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.2853, allocations: 1.029 MB / 487.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2853, allocations: 4 kB / 487.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001092/0.2864, allocations: 0.5878 MB / 488 MB, free: 8.285 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.2864, allocations: 29.7 kB / 488 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2864, allocations: 4 kB / 488 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001952/0.2866, allocations: 96.81 kB / 488.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004384/0.2871, allocations: 104.2 kB / 488.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.289, allocations: 1.775 MB / 490 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.2894, allocations: 47.89 kB / 490.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.2894, allocations: 16 kB / 490.1 MB, free: 6.07 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.0004376/0.2899, allocations: 278.4 kB / 490.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.29, allocations: 59.62 kB / 490.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.2911, allocations: 0.5492 MB / 491 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.2911, allocations: 11.94 kB / 491 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2911, allocations: 0 / 491 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.2911, allocations: 3.984 kB / 491 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.2932, allocations: 1.281 MB / 492.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2932, allocations: 3.938 kB / 492.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004176/0.2936, allocations: 83.89 kB / 492.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001519/0.2937, allocations: 84.81 kB / 492.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.2938, allocations: 12 kB / 492.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.2954, allocations: 1.59 MB / 494 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.2954, allocations: 3.938 kB / 494 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.2967, allocations: 0.8197 MB / 494.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.297, allocations: 192.7 kB / 495 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.43e-05/0.2971, allocations: 16 kB / 495.1 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003698/0.2975, allocations: 43.95 kB / 495.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.2978, allocations: 123.8 kB / 495.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.2978, allocations: 19.98 kB / 495.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005161/0.2983, allocations: 414.8 kB / 495.6 MB, free: 216 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2983, allocations: 0 / 495.6 MB, free: 216 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007111/0.299, allocations: 203.7 kB / 495.8 MB, free: 12 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.003019/0.302, allocations: 1.691 MB / 497.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.3031, allocations: 0.5632 MB / 498.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3032, allocations: 8.25 kB / 498.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005387/0.3037, allocations: 369.9 kB / 498.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008566/0.3045, allocations: 187.1 kB / 498.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008011/0.3126, allocations: 5.562 MB / 0.4924 GB, free: 7.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.3131, allocations: 0.922 MB / 0.4933 GB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003616/0.3135, allocations: 97.02 kB / 0.4934 GB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.3138, allocations: 223.4 kB / 0.4936 GB, free: 6.156 MB / 366.1 MB Notification: Performance of SimCode: time 1.103e-06/0.3138, allocations: 0 / 0.4936 GB, free: 6.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05236/0.3662, allocations: 18.15 MB / 0.5113 GB, free: 3.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.12, allocations: 11.83 kB / 0.5113 GB, free: 3.898 MB / 382.1 MB " [Timeout remaining time 647] (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 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_ReliefValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ReliefValveTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.59196400642395] Failed to read output from testmodel.py, exit status != 0: 13.276393274776638 13.292704927 13.023857889 Calling exit ...