Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.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.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.DirectionalValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest",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.001092/0.001092, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 194.7 kB / 16.53 MB, free: 6.699 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.255/1.255, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05343/0.05343, allocations: 11.84 MB / 281.6 MB, free: 9.453 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.001464/0.001464, allocations: 72 kB / 341.9 MB, free: 21.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07583/0.07731, allocations: 49.22 MB / 391.2 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.00709/0.08443, allocations: 6.093 MB / 397.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005023/0.08949, allocations: 3.277 MB / 400.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007845/0.09029, allocations: 15.94 kB / 400.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007337/0.09107, allocations: 290 kB / 400.8 MB, free: 10.9 MB / 302.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.001462/0.09255, allocations: 0.59 MB / 401.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001802/0.09436, allocations: 0.8221 MB / 402.2 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.0965, allocations: 1.845 MB / 404.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008347/0.09735, allocations: 0.5544 MB / 404.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.09839, allocations: 0.6344 MB / 405.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.09943, allocations: 0.7352 MB / 406 MB, free: 5.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002786/0.09972, allocations: 124 kB / 406.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009172/0.1006, allocations: 399.8 kB / 406.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000382/0.101, allocations: 354.7 kB / 406.9 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001/0.102, allocations: 0.7347 MB / 407.6 MB, free: 4.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002061/0.1041, allocations: 1.951 MB / 409.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1041, allocations: 0 / 409.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1041, allocations: 3.938 kB / 409.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.398e-05/0.1042, allocations: 4 kB / 409.6 MB, free: 2.117 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002975/0.1072, allocations: 1.604 MB / 411.2 MB, free: 468 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.1072, allocations: 15.89 kB / 411.2 MB, free: 452 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001956/0.1074, allocations: 144.2 kB / 411.3 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003206/0.1078, allocations: 151.2 kB / 411.5 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1088, allocations: 0.8266 MB / 412.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/0.1089, allocations: 78 kB / 412.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.109, allocations: 96 kB / 412.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/0.1107, allocations: 1.114 MB / 413.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.1107, allocations: 4 kB / 413.6 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.799e-05/0.1108, allocations: 36 kB / 413.6 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.1108, allocations: 24 kB / 413.6 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.1124, allocations: 1.015 MB / 414.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006212/0.1187, allocations: 6.019 MB / 420.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.1199, allocations: 0.746 MB / 421.4 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006552/0.1205, allocations: 390.5 kB / 421.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002226/0.1208, allocations: 194.8 kB / 422 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1208, allocations: 39.22 kB / 422 MB, free: 4.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=72): time 2.675e-06/0.1208, allocations: 3.938 kB / 422 MB, free: 4.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=76): time 0.004559/0.1254, allocations: 2.273 MB / 424.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.1254, allocations: 64 kB / 424.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.1268, allocations: 1.062 MB / 425.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.1268, allocations: 41.7 kB / 425.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/0.1272, allocations: 0.5348 MB / 426 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.1274, allocations: 260.1 kB / 426.3 MB, free: 432 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/0.1277, allocations: 166.5 kB / 426.4 MB, free: 260 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.1338/0.2615, allocations: 342.4 kB / 426.8 MB, free: 40.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008821/0.2624, allocations: 345.8 kB / 427.1 MB, free: 40.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007384/0.2632, allocations: 0.489 MB / 427.6 MB, free: 40.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005588/0.2688, allocations: 1.819 MB / 429.4 MB, free: 39.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.2688, allocations: 1.625 kB / 429.4 MB, free: 39.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001792/0.2706, allocations: 1.01 MB / 430.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.2707, allocations: 8.844 kB / 430.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.2707, allocations: 8.406 kB / 430.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.894e-05/0.2707, allocations: 14.41 kB / 430.4 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008815/0.2716, allocations: 223.5 kB / 430.7 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.311e-05/0.2717, allocations: 15.66 kB / 430.7 MB, free: 39.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/0.2723, allocations: 35.95 kB / 430.7 MB, free: 39.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.829e-05/0.2724, allocations: 42.52 kB / 430.8 MB, free: 39.39 MB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real valve4_3pos.j2.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2A.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] valve4_3pos.j3.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = valve4_3pos.P2B.p_init unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.prefer ) "Pressure in the connection point" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 (valve4_3pos.A2T.data.zetaLaminarKnown,valve4_3pos.P2B.data.zetaLaminarKnown,valve4_3pos.B2T.data.zetaLaminarKnown,valve4_3pos.P2A.data.zetaLaminarKnown,restriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006294/0.273, allocations: 358.4 kB / 431.1 MB, free: 39.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.2733, allocations: 115.2 kB / 431.2 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/0.275, allocations: 0.9397 MB / 432.2 MB, free: 38.76 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.275, allocations: 13.03 kB / 432.2 MB, free: 38.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.275, allocations: 7.875 kB / 432.2 MB, free: 38.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.275, allocations: 4.969 kB / 432.2 MB, free: 38.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003446/0.2785, allocations: 2.315 MB / 434.5 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.2785, allocations: 1.75 kB / 434.5 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008141/0.2793, allocations: 196.8 kB / 434.7 MB, free: 37.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/0.2794, allocations: 9.047 kB / 434.7 MB, free: 37.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.2794, allocations: 30.47 kB / 434.7 MB, free: 37.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.667e-06/0.2794, allocations: 6.078 kB / 434.7 MB, free: 37.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2794, allocations: 3.719 kB / 434.7 MB, free: 37.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.2814, allocations: 1.366 MB / 436.1 MB, free: 36.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.2817, allocations: 277.4 kB / 436.4 MB, free: 36.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001354/0.2818, allocations: 18.84 kB / 436.4 MB, free: 36.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.2823, allocations: 25.81 kB / 436.4 MB, free: 36.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2824, allocations: 60.39 kB / 436.5 MB, free: 36.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.819e-05/0.2825, allocations: 31.16 kB / 436.5 MB, free: 36.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009736/0.2834, allocations: 0.737 MB / 437.2 MB, free: 36.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2835, allocations: 0 / 437.2 MB, free: 36.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009079/0.2844, allocations: 304 kB / 437.5 MB, free: 36.27 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (idealPump.phi,circuitTank.volumeOpen.m,valve4_3pos.j2.volumeClosed.port[2].p,valve4_3pos.j3.volumeClosed.port[2].p,valve4_3pos.dynamicResponse.y,valve4_3pos.dynamicResponse.yd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00279/0.2872, allocations: 2.276 MB / 439.8 MB, free: 34.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.2888, allocations: 0.8699 MB / 440.7 MB, free: 34.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2889, allocations: 3.969 kB / 440.7 MB, free: 34.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.2894, allocations: 395.7 kB / 441.1 MB, free: 34.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.2906, allocations: 365.7 kB / 441.4 MB, free: 34.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00979/0.3004, allocations: 9.85 MB / 451.3 MB, free: 27.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.3009, allocations: 1.155 MB / 452.4 MB, free: 26.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006652/0.3015, allocations: 224.1 kB / 452.7 MB, free: 26.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004699/0.302, allocations: 471.2 kB / 453.1 MB, free: 25.93 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.302, allocations: 0.6562 kB / 453.1 MB, free: 25.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04207/0.3441, allocations: 28.3 MB / 481.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.964, allocations: 7.719 kB / 481.4 MB, free: 13.53 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenHydraulics_OpenHydraulics_DevelopmentTests_DirectionalValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.DirectionalValveTest.pipe 2>&1)