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.007887/0.007887, allocations: 95.02 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.00224/0.00224, allocations: 195.3 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.406/1.406, allocations: 205.1 MB / 222.6 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05446/0.05446, allocations: 11.85 MB / 281.8 MB, free: 9.414 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.0015/0.0015, allocations: 67.91 kB / 391.8 MB, free: 4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.258, allocations: 49.23 MB / 441.1 MB, free: 4.16 MB / 318.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) as default value. Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest): time 0.004527/0.2626, allocations: 3.249 MB / 444.3 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.2653, allocations: 1.84 MB / 446.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003361/0.2657, allocations: 4.031 kB / 446.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004566/0.2662, allocations: 106.9 kB / 446.3 MB, free: 0.5273 MB / 318.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.0006044/0.2668, allocations: 198.8 kB / 446.5 MB, free: 408 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.2678, allocations: 331.8 kB / 446.8 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007561/0.2686, allocations: 0.4908 MB / 447.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.2689, allocations: 120.4 kB / 447.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.2692, allocations: 178.6 kB / 447.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.2695, allocations: 204.5 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.534e-05/0.2696, allocations: 30.75 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005085/0.2701, allocations: 226.7 kB / 448 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2702, allocations: 89.36 kB / 448.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.2705, allocations: 206.5 kB / 448.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009325/0.2714, allocations: 0.5774 MB / 448.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2714, allocations: 0 / 448.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.2714, allocations: 7.219 kB / 448.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.2715, allocations: 0 / 448.9 MB, free: 15.2 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001188/0.2726, allocations: 0.7057 MB / 449.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.2727, allocations: 14.89 kB / 449.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.903e-05/0.2728, allocations: 65.62 kB / 449.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.2729, allocations: 42.17 kB / 449.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.2734, allocations: 344 kB / 450.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/0.2735, allocations: 23.91 kB / 450.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.2735, allocations: 25.75 kB / 450.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005847/0.2741, allocations: 317.2 kB / 450.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.2741, allocations: 0 / 450.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.2742, allocations: 11.38 kB / 450.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.2742, allocations: 6.719 kB / 450.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004985/0.2747, allocations: 267.8 kB / 450.7 MB, free: 13.78 MB / 334.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.002061/0.2768, allocations: 1.469 MB / 452.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004208/0.2772, allocations: 225.9 kB / 452.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.2774, allocations: 98.19 kB / 452.5 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.33e-05/0.2775, allocations: 87.97 kB / 452.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.2776, allocations: 33.31 kB / 452.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.2776, allocations: 0 / 452.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002149/0.2797, allocations: 0.8694 MB / 453.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.2798, allocations: 63.09 kB / 453.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.2802, allocations: 372.1 kB / 453.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.2802, allocations: 35.06 kB / 453.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.2804, allocations: 189.2 kB / 454.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.13e-05/0.2804, allocations: 98.11 kB / 454.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.2806, allocations: 56.06 kB / 454.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.2807, allocations: 346.6 kB / 454.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.2809, allocations: 103.7 kB / 454.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.2812, allocations: 154.3 kB / 454.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.2817, allocations: 255.4 kB / 455.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2817, allocations: 0 / 455.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006296/0.2824, allocations: 318.8 kB / 455.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.2824, allocations: 13.33 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2824, allocations: 2.156 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.2824, allocations: 3.281 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.2828, allocations: 81.52 kB / 455.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.2828, allocations: 3.219 kB / 455.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.283, allocations: 18.05 kB / 455.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.51e-05/0.2831, allocations: 9.562 kB / 455.5 MB, free: 9.938 MB / 334.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.0002543/0.2833, allocations: 170.1 kB / 455.7 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.382e-05/0.2834, allocations: 44.42 kB / 455.7 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006916/0.2841, allocations: 313.7 kB / 456.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2841, allocations: 3.828 kB / 456.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2841, allocations: 3.984 kB / 456.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2841, allocations: 5.422 kB / 456.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.2853, allocations: 0.7499 MB / 456.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2853, allocations: 3.938 kB / 456.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003542/0.2857, allocations: 77.98 kB / 456.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2857, allocations: 1.156 kB / 456.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.2857, allocations: 6.219 kB / 456.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2857, allocations: 2.438 kB / 456.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2857, allocations: 0 / 456.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008244/0.2865, allocations: 0.5055 MB / 457.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.2867, allocations: 139.3 kB / 457.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.2868, allocations: 9.484 kB / 457.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.287, allocations: 13.33 kB / 457.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.783e-05/0.2871, allocations: 18.39 kB / 457.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.2871, allocations: 9.766 kB / 457.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.2874, allocations: 275 kB / 457.9 MB, free: 8.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2874, allocations: 3.938 kB / 457.9 MB, free: 8.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005197/0.2879, allocations: 114.7 kB / 458 MB, free: 8.242 MB / 334.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.001909/0.2898, allocations: 1.342 MB / 459.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005861/0.2904, allocations: 234.7 kB / 459.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2904, allocations: 0 / 459.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002413/0.2907, allocations: 127 kB / 459.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.2913, allocations: 102 kB / 459.8 MB, free: 6.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.2958, allocations: 3.497 MB / 463.3 MB, free: 4.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.2962, allocations: 0.8025 MB / 464.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002407/0.2964, allocations: 59.23 kB / 464.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.2966, allocations: 123.4 kB / 464.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2966, allocations: 3.938 kB / 464.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3253, allocations: 9.846 MB / 474.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.047/8.373, allocations: 0.625 kB / 474.1 MB, free: 9.676 MB / 350.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)