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.004917/0.004917, allocations: 96.61 kB / 15.73 MB, free: 6.039 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.001145/0.001145, allocations: 198.5 kB / 16.68 MB, free: 5.969 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.309/1.309, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.06113/0.06113, allocations: 11.84 MB / 281.8 MB, free: 9.344 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.001549/0.00155, allocations: 68.11 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2402, allocations: 49.23 MB / 441.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006236/0.2465, allocations: 6.093 MB / 447.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005689/0.2522, allocations: 3.268 MB / 450.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.2534, allocations: 20.75 kB / 450.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000944/0.2544, allocations: 289.8 kB / 450.7 MB, free: 13.13 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.001952/0.2563, allocations: 0.6122 MB / 451.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002497/0.2589, allocations: 0.8429 MB / 452.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002393/0.2613, allocations: 1.852 MB / 454.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009096/0.2622, allocations: 0.5443 MB / 454.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.2634, allocations: 0.6514 MB / 455.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.2647, allocations: 0.7336 MB / 456 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.2651, allocations: 125.5 kB / 456.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.2663, allocations: 399.7 kB / 456.5 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003287/0.2666, allocations: 344 kB / 456.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007791/0.2674, allocations: 0.7372 MB / 457.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002379/0.2698, allocations: 1.982 MB / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2698, allocations: 1.375 kB / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2698, allocations: 0 / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.54e-05/0.2699, allocations: 0 / 459.5 MB, free: 7.395 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: 241 * Number of variables: 241 Notification: Performance of Generate backend data structure: time 0.002856/0.2727, allocations: 1.649 MB / 461.2 MB, free: 6.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/0.2728, allocations: 13.3 kB / 461.2 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001897/0.273, allocations: 148.7 kB / 461.4 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000366/0.2733, allocations: 165 kB / 461.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.2746, allocations: 0.8376 MB / 462.4 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/0.2747, allocations: 74.12 kB / 462.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.2748, allocations: 95.66 kB / 462.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.2766, allocations: 1.119 MB / 463.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.2767, allocations: 1.062 kB / 463.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.63e-05/0.2767, allocations: 39.41 kB / 463.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.2768, allocations: 23.38 kB / 463.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.2785, allocations: 1.016 MB / 464.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006482/0.2849, allocations: 6.016 MB / 470.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.2861, allocations: 0.7368 MB / 471.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006631/0.2868, allocations: 402.6 kB / 471.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002248/0.287, allocations: 190.8 kB / 472.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.2871, allocations: 47.14 kB / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.234e-06/0.2871, allocations: 0 / 472.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004655/0.2917, allocations: 2.283 MB / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.2918, allocations: 60.06 kB / 474.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.2931, allocations: 1.066 MB / 475.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.2932, allocations: 41.7 kB / 475.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003717/0.2936, allocations: 0.5473 MB / 476.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/0.2938, allocations: 277.6 kB / 476.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/0.294, allocations: 174.5 kB / 476.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2941, allocations: 334 kB / 476.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006134/0.2948, allocations: 352.6 kB / 477.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007005/0.2955, allocations: 500 kB / 477.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00573/0.3012, allocations: 1.811 MB / 479.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3012, allocations: 0 / 479.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001839/0.3031, allocations: 1.016 MB / 480.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3031, allocations: 8 kB / 480.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3031, allocations: 7.938 kB / 480.5 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.3032, allocations: 8 kB / 480.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008861/0.3041, allocations: 232.2 kB / 480.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.3041, allocations: 8 kB / 480.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007463/0.3049, allocations: 35.98 kB / 480.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.914e-05/0.305, allocations: 43.92 kB / 480.9 MB, free: 2.324 MB / 350.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 = 1e5 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 = 1e5 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.0006428/0.3056, allocations: 366.8 kB / 481.2 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002903/0.3059, allocations: 119.2 kB / 481.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.3077, allocations: 0.9427 MB / 482.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.3077, allocations: 8 kB / 482.3 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3077, allocations: 4 kB / 482.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.3078, allocations: 3.984 kB / 482.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0039/0.3117, allocations: 2.319 MB / 484.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.3117, allocations: 0 / 484.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000813/0.3125, allocations: 192 kB / 484.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.325e-05/0.3125, allocations: 11.92 kB / 484.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.797e-05/0.3126, allocations: 27.98 kB / 484.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.3126, allocations: 7.938 kB / 484.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3126, allocations: 7.938 kB / 484.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/0.3147, allocations: 1.369 MB / 486.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005244/0.3153, allocations: 280.3 kB / 486.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002298/0.3155, allocations: 16 kB / 486.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005359/0.3161, allocations: 31.98 kB / 486.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.3162, allocations: 52.52 kB / 486.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.3162, allocations: 35.98 kB / 486.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001025/0.3173, allocations: 0.7369 MB / 487.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3173, allocations: 0 / 487.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001078/0.3184, allocations: 303.7 kB / 487.7 MB, free: 11.33 MB / 366.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.003386/0.3218, allocations: 2.298 MB / 490 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.3232, allocations: 0.7878 MB / 490.7 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3232, allocations: 0 / 490.7 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006308/0.3239, allocations: 407.8 kB / 491.1 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.3254, allocations: 343.7 kB / 491.5 MB, free: 7.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.3391, allocations: 9.25 MB / 0.489 GB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008064/0.34, allocations: 1.155 MB / 0.4901 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008436/0.3408, allocations: 224.1 kB / 0.4903 GB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007029/0.3415, allocations: 475.2 kB / 0.4908 GB, free: 12.12 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3416, allocations: 4 kB / 0.4908 GB, free: 12.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05547/0.397, allocations: 28.77 MB / 0.5189 GB, free: 15.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.575/9.972, allocations: 7.719 kB / 0.5189 GB, free: 15.25 MB / 414.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)