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.007878/0.007877, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.002054/0.002054, allocations: 197.9 kB / 16.67 MB, free: 5.973 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.378/1.378, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.08872/0.08872, allocations: 11.86 MB / 281.8 MB, free: 9.336 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.002254/0.002254, allocations: 71.89 kB / 391.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2407, allocations: 49.24 MB / 441.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.00583/0.2466, allocations: 6.098 MB / 447.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005819/0.2524, allocations: 3.275 MB / 450.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007926/0.2533, allocations: 19.91 kB / 450.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000742/0.2541, allocations: 283.4 kB / 450.7 MB, free: 13.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.001558/0.2556, allocations: 0.5876 MB / 451.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002164/0.2578, allocations: 0.8389 MB / 452.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.2601, allocations: 1.849 MB / 454 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007633/0.2608, allocations: 0.55 MB / 454.6 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.2619, allocations: 0.6424 MB / 455.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.263, allocations: 0.7379 MB / 456 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002126/0.2632, allocations: 125.1 kB / 456.1 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009636/0.2641, allocations: 396.3 kB / 456.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003449/0.2645, allocations: 344.1 kB / 456.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008513/0.2654, allocations: 0.7337 MB / 457.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002698/0.2681, allocations: 1.977 MB / 459.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2681, allocations: 1.156 kB / 459.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2681, allocations: 0 / 459.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.417e-05/0.2682, allocations: 0 / 459.5 MB, free: 7.555 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.003291/0.2715, allocations: 1.654 MB / 461.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2715, allocations: 12.89 kB / 461.2 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001906/0.2717, allocations: 152.5 kB / 461.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003947/0.2721, allocations: 160.4 kB / 461.5 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.2734, allocations: 0.838 MB / 462.3 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.101e-05/0.2735, allocations: 73.78 kB / 462.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.2737, allocations: 94.97 kB / 462.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.2757, allocations: 1.121 MB / 463.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.734e-05/0.2757, allocations: 1.281 kB / 463.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.185e-05/0.2758, allocations: 35.66 kB / 463.6 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.2758, allocations: 22.78 kB / 463.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.2777, allocations: 1.013 MB / 464.7 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007462/0.2852, allocations: 6.02 MB / 470.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/0.2865, allocations: 0.7406 MB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007383/0.2873, allocations: 398.6 kB / 471.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002623/0.2876, allocations: 186.8 kB / 472 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.2876, allocations: 39.22 kB / 472 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.838e-06/0.2876, allocations: 3.938 kB / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.005222/0.2929, allocations: 2.291 MB / 474.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.2929, allocations: 60.06 kB / 474.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.2944, allocations: 1.066 MB / 475.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.16e-05/0.2945, allocations: 33.7 kB / 475.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004499/0.295, allocations: 0.5513 MB / 476.1 MB, free: 7.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.2952, allocations: 277.6 kB / 476.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002729/0.2955, allocations: 170.5 kB / 476.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2957, allocations: 341.9 kB / 476.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006184/0.2963, allocations: 348.6 kB / 477.2 MB, free: 6.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007194/0.297, allocations: 499.9 kB / 477.7 MB, free: 5.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005859/0.3029, allocations: 1.811 MB / 479.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3029, allocations: 0 / 479.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001895/0.3048, allocations: 1.02 MB / 480.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3049, allocations: 4 kB / 480.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.3049, allocations: 11.94 kB / 480.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.32e-05/0.3049, allocations: 8 kB / 480.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008862/0.3058, allocations: 228.2 kB / 480.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.166e-05/0.3058, allocations: 15.98 kB / 480.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006533/0.3065, allocations: 24 kB / 480.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.257e-05/0.3066, allocations: 47.97 kB / 480.8 MB, free: 2.484 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.0006574/0.3072, allocations: 374.7 kB / 481.2 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.3075, allocations: 115.2 kB / 481.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.3093, allocations: 0.9505 MB / 482.2 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.3093, allocations: 11.94 kB / 482.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3093, allocations: 0 / 482.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.3094, allocations: 3.984 kB / 482.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003858/0.3132, allocations: 2.316 MB / 484.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3133, allocations: 0 / 484.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008105/0.3141, allocations: 196 kB / 484.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.979e-06/0.3141, allocations: 4 kB / 484.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.19e-05/0.3142, allocations: 31.92 kB / 484.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.038e-05/0.3142, allocations: 7.938 kB / 484.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3142, allocations: 7.938 kB / 484.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.3165, allocations: 1.373 MB / 486.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005257/0.317, allocations: 276.3 kB / 486.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.3172, allocations: 20 kB / 486.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005335/0.3178, allocations: 31.98 kB / 486.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3179, allocations: 56.52 kB / 486.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.293e-05/0.318, allocations: 27.98 kB / 486.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.3192, allocations: 0.7369 MB / 487.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3192, allocations: 4 kB / 487.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001166/0.3204, allocations: 307.7 kB / 487.6 MB, free: 11.47 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.004238/0.3246, allocations: 2.289 MB / 489.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.3263, allocations: 0.7878 MB / 490.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3263, allocations: 0 / 490.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007067/0.327, allocations: 403.8 kB / 491.1 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/0.3288, allocations: 339.8 kB / 491.4 MB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/0.3445, allocations: 9.258 MB / 0.489 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009746/0.3455, allocations: 1.155 MB / 0.4901 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008872/0.3464, allocations: 216.1 kB / 0.4903 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008006/0.3473, allocations: 471.2 kB / 0.4907 GB, free: 12.28 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3473, allocations: 3.938 kB / 0.4907 GB, free: 12.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06655/0.4138, allocations: 28.78 MB / 0.5189 GB, free: 15.4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.71, allocations: 3.781 kB / 0.5189 GB, free: 15.4 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)