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.00499/0.00499, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001267/0.001267, allocations: 197.4 kB / 16.67 MB, free: 5.934 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.376/1.376, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05488/0.05488, allocations: 11.85 MB / 281.8 MB, free: 9.355 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.002362/0.002362, allocations: 67.91 kB / 391.8 MB, free: 3.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2741, allocations: 49.24 MB / 441.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.DirectionalValveTest): time 0.006601/0.2807, allocations: 6.083 MB / 447.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006211/0.287, allocations: 3.277 MB / 450.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009751/0.288, allocations: 20.94 kB / 450.5 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007677/0.2888, allocations: 286.6 kB / 450.7 MB, free: 13.26 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.001645/0.2905, allocations: 0.6141 MB / 451.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.2926, allocations: 0.8357 MB / 452.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002116/0.2948, allocations: 1.859 MB / 454.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007177/0.2955, allocations: 0.5528 MB / 454.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.2965, allocations: 0.6464 MB / 455.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009234/0.2974, allocations: 0.7345 MB / 456 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.2976, allocations: 125 kB / 456.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008827/0.2985, allocations: 395.7 kB / 456.5 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003071/0.2988, allocations: 348.2 kB / 456.8 MB, free: 9.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007212/0.2996, allocations: 0.7339 MB / 457.6 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002433/0.302, allocations: 1.978 MB / 459.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.302, allocations: 7.984 kB / 459.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.302, allocations: 0 / 459.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.17e-05/0.3021, allocations: 1.469 kB / 459.6 MB, free: 7.512 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.002955/0.305, allocations: 1.645 MB / 461.2 MB, free: 6.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3051, allocations: 13.02 kB / 461.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001789/0.3053, allocations: 149.6 kB / 461.4 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003622/0.3056, allocations: 163.5 kB / 461.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.3069, allocations: 0.8413 MB / 462.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.473e-05/0.307, allocations: 74.91 kB / 462.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.3071, allocations: 95.62 kB / 462.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.309, allocations: 1.116 MB / 463.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.309, allocations: 1.406 kB / 463.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/0.3091, allocations: 39.69 kB / 463.7 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.709e-05/0.3091, allocations: 26.75 kB / 463.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.3108, allocations: 1.012 MB / 464.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006662/0.3175, allocations: 6.012 MB / 470.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.3187, allocations: 0.7407 MB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006793/0.3194, allocations: 394.6 kB / 471.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002457/0.3196, allocations: 194.8 kB / 472.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.3197, allocations: 39.22 kB / 472.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.966e-06/0.3197, allocations: 0 / 472.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=76): time 0.004932/0.3246, allocations: 2.287 MB / 474.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.3247, allocations: 60.06 kB / 474.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.3262, allocations: 1.066 MB / 475.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.3263, allocations: 33.7 kB / 475.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004167/0.3267, allocations: 0.5513 MB / 476.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.3269, allocations: 277.6 kB / 476.4 MB, free: 7.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002703/0.3272, allocations: 166.5 kB / 476.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3273, allocations: 349.9 kB / 476.9 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/0.328, allocations: 344.7 kB / 477.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007015/0.3287, allocations: 0.496 MB / 477.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005561/0.3342, allocations: 1.804 MB / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.3343, allocations: 0 / 479.5 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001824/0.3361, allocations: 1.024 MB / 480.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.3361, allocations: 11.98 kB / 480.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.3362, allocations: 11.92 kB / 480.5 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.3362, allocations: 8 kB / 480.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008676/0.3371, allocations: 223.7 kB / 480.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.381e-05/0.3371, allocations: 12 kB / 480.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.3378, allocations: 28.05 kB / 480.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.078e-05/0.3379, allocations: 47.98 kB / 480.9 MB, free: 2.434 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.0006941/0.3386, allocations: 370.7 kB / 481.2 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002756/0.3389, allocations: 115.2 kB / 481.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/0.3408, allocations: 0.9543 MB / 482.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3409, allocations: 8 kB / 482.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.3409, allocations: 0 / 482.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.3409, allocations: 3.984 kB / 482.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.3449, allocations: 2.319 MB / 484.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.345, allocations: 0 / 484.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007969/0.3458, allocations: 187.8 kB / 484.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/0.3458, allocations: 4.219 kB / 484.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.062e-05/0.3459, allocations: 31.98 kB / 484.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-05/0.3459, allocations: 7.984 kB / 484.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.3459, allocations: 11.88 kB / 484.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.3481, allocations: 1.373 MB / 486.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/0.3486, allocations: 272.3 kB / 486.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/0.3489, allocations: 20 kB / 486.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005197/0.3494, allocations: 27.98 kB / 486.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3495, allocations: 60.52 kB / 486.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.872e-05/0.3496, allocations: 31.98 kB / 486.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.3507, allocations: 0.7408 MB / 487.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3507, allocations: 0 / 487.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00112/0.3518, allocations: 303.7 kB / 487.7 MB, free: 11.43 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.003612/0.3555, allocations: 2.293 MB / 490 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001516/0.357, allocations: 0.7867 MB / 490.7 MB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.357, allocations: 3.938 kB / 490.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006191/0.3576, allocations: 400.9 kB / 491.1 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/0.3593, allocations: 339.6 kB / 491.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.3738, allocations: 9.254 MB / 0.489 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008891/0.3748, allocations: 1.159 MB / 0.4901 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007841/0.3756, allocations: 216.1 kB / 0.4903 GB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006834/0.3763, allocations: 471.2 kB / 0.4908 GB, free: 12.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.555e-06/0.3763, allocations: 0 / 0.4908 GB, free: 12.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06068/0.437, allocations: 28.79 MB / 0.5189 GB, free: 15.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.651/10.09, allocations: 7.719 kB / 0.5189 GB, free: 15.34 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)