Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.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.CheckValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.CheckValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest",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.001262/0.001262, allocations: 108 kB / 15.6 MB, free: 132 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.001377/0.001378, allocations: 192 kB / 16.53 MB, free: 6.391 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.289/1.289, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05257/0.05257, allocations: 11.84 MB / 281.6 MB, free: 9.449 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.001573/0.001573, allocations: 71.72 kB / 341.9 MB, free: 21.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08474/0.08633, allocations: 49.22 MB / 391.2 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest): time 0.004895/0.09126, allocations: 3.259 MB / 394.4 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.09413, allocations: 1.82 MB / 396.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003042/0.09446, allocations: 7.938 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004321/0.09493, allocations: 99.31 kB / 396.3 MB, free: 15.41 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.0006037/0.09555, allocations: 210.6 kB / 396.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008055/0.09637, allocations: 319.2 kB / 396.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005752/0.09696, allocations: 497.8 kB / 397.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.0972, allocations: 119.5 kB / 397.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002843/0.09749, allocations: 179.3 kB / 397.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000317/0.09782, allocations: 195.2 kB / 397.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.84e-05/0.09789, allocations: 35.94 kB / 397.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004423/0.09834, allocations: 235.8 kB / 398.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.09845, allocations: 83.73 kB / 398.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.09866, allocations: 203 kB / 398.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007334/0.0994, allocations: 0.5687 MB / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.09941, allocations: 0 / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09942, allocations: 0 / 398.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.09944, allocations: 0 / 398.9 MB, free: 12.8 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001133/0.1006, allocations: 0.6934 MB / 399.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1006, allocations: 15.83 kB / 399.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.593e-05/0.1007, allocations: 62.72 kB / 399.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.1008, allocations: 44.47 kB / 399.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.1012, allocations: 339 kB / 400.1 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.1013, allocations: 20.56 kB / 400.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.1013, allocations: 32 kB / 400.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.1019, allocations: 323.6 kB / 400.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1019, allocations: 0 / 400.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.949e-05/0.1019, allocations: 12 kB / 400.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.759e-06/0.1019, allocations: 8 kB / 400.5 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004727/0.1024, allocations: 258.1 kB / 400.7 MB, free: 10.91 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.1044, allocations: 1.477 MB / 402.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004105/0.1048, allocations: 230.5 kB / 402.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.105, allocations: 92.83 kB / 402.5 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.1051, allocations: 89.53 kB / 402.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.1051, allocations: 30.56 kB / 402.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.1051, allocations: 0 / 402.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002084/0.1072, allocations: 0.8611 MB / 403.5 MB, free: 7.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.1073, allocations: 63.34 kB / 403.6 MB, free: 7.812 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter sinusoid.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004215/0.1077, allocations: 381.6 kB / 403.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1077, allocations: 29.7 kB / 404 MB, free: 7.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.1079, allocations: 188.6 kB / 404.1 MB, free: 7.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.064e-05/0.1079, allocations: 102.5 kB / 404.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/0.108, allocations: 49.98 kB / 404.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1082, allocations: 346.8 kB / 404.6 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.1084, allocations: 109.6 kB / 404.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.1086, allocations: 148.8 kB / 404.9 MB, free: 6.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004447/0.1091, allocations: 255.7 kB / 405.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1091, allocations: 0 / 405.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005895/0.1097, allocations: 312.9 kB / 405.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.1097, allocations: 14.44 kB / 405.5 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.1097, allocations: 3.984 kB / 405.5 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1097, allocations: 4 kB / 405.5 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.1101, allocations: 79.89 kB / 405.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.1101, allocations: 4.219 kB / 405.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000182/0.1103, allocations: 23.89 kB / 405.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.1103, allocations: 8 kB / 405.6 MB, free: 5.695 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (checkValve.variableRestriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001938/0.1105, allocations: 169.7 kB / 405.7 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.1106, allocations: 35.56 kB / 405.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006458/0.1113, allocations: 317.5 kB / 406.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.1113, allocations: 4 kB / 406.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1113, allocations: 0 / 406.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.1113, allocations: 3.984 kB / 406.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.1124, allocations: 0.7597 MB / 406.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1124, allocations: 4 kB / 406.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003291/0.1127, allocations: 71.95 kB / 406.9 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.168e-06/0.1128, allocations: 4 kB / 406.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.1128, allocations: 7.938 kB / 406.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1128, allocations: 4 kB / 406.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1128, allocations: 3.984 kB / 406.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007677/0.1136, allocations: 0.4955 MB / 407.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001429/0.1137, allocations: 136.7 kB / 407.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.6e-05/0.1138, allocations: 7.938 kB / 407.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.114, allocations: 12 kB / 407.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.769e-05/0.114, allocations: 19.97 kB / 407.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.1141, allocations: 11.98 kB / 407.6 MB, free: 3.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.1143, allocations: 267.2 kB / 407.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1143, allocations: 0 / 407.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00043/0.1148, allocations: 120 kB / 408 MB, free: 3.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * 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 (30): * Single equations (assignments): 30 * 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.001824/0.1166, allocations: 1.339 MB / 409.3 MB, free: 1.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005543/0.1172, allocations: 244.6 kB / 409.6 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1172, allocations: 4.062 kB / 409.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.1174, allocations: 131.8 kB / 409.7 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.118, allocations: 109.3 kB / 409.8 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.1225, allocations: 3.54 MB / 413.4 MB, free: 13.76 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.1229, allocations: 0.7989 MB / 414.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.1231, allocations: 59.23 kB / 414.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.1233, allocations: 123.3 kB / 414.3 MB, free: 12.76 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1233, allocations: 4 kB / 414.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.1529, allocations: 9.649 MB / 424 MB, free: 3.047 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.191/7.344, allocations: 7.938 kB / 424 MB, free: 3.039 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe 2>&1)