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.005526/0.005526, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001087/0.001087, allocations: 188 kB / 16.67 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.292/1.292, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05362/0.05362, allocations: 11.84 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.001676/0.001676, allocations: 63.91 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.252, allocations: 49.23 MB / 441.1 MB, free: 4.141 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.004085/0.2561, allocations: 3.25 MB / 444.3 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.2584, allocations: 1.831 MB / 446.1 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.2586, allocations: 4.062 kB / 446.2 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003571/0.259, allocations: 102.9 kB / 446.3 MB, free: 0.5195 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.0004416/0.2595, allocations: 200.3 kB / 446.4 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006938/0.2602, allocations: 326.6 kB / 446.8 MB, free: 228 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005157/0.2607, allocations: 0.495 MB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002396/0.2609, allocations: 116.4 kB / 447.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002497/0.2612, allocations: 186 kB / 447.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.2615, allocations: 196 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.2616, allocations: 31.66 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004366/0.262, allocations: 231.3 kB / 448 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.877e-05/0.2621, allocations: 87.33 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.2623, allocations: 211.6 kB / 448.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007323/0.263, allocations: 0.5802 MB / 448.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2631, allocations: 0 / 448.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2631, allocations: 1.312 kB / 448.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2631, allocations: 0 / 448.9 MB, free: 15.18 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.001071/0.2642, allocations: 0.6878 MB / 449.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.019e-05/0.2642, allocations: 13.83 kB / 449.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.662e-05/0.2643, allocations: 71.69 kB / 449.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001802/0.2645, allocations: 42.41 kB / 449.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.265, allocations: 326.7 kB / 450 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.2651, allocations: 29.05 kB / 450 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.2651, allocations: 25.84 kB / 450.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.2658, allocations: 312.6 kB / 450.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.2658, allocations: 0 / 450.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.2658, allocations: 19.48 kB / 450.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.2658, allocations: 11.03 kB / 450.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005411/0.2664, allocations: 258.6 kB / 450.7 MB, free: 13.79 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.002079/0.2685, allocations: 1.466 MB / 452.1 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.2689, allocations: 221.4 kB / 452.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001789/0.2691, allocations: 99.56 kB / 452.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.2692, allocations: 90.53 kB / 452.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.2692, allocations: 37.31 kB / 452.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2692, allocations: 4 kB / 452.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002078/0.2713, allocations: 0.854 MB / 453.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.2714, allocations: 66.52 kB / 453.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.2718, allocations: 368.2 kB / 453.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.2719, allocations: 30.77 kB / 453.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.272, allocations: 202.3 kB / 454.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.966e-05/0.2721, allocations: 88.73 kB / 454.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.2722, allocations: 59.02 kB / 454.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2723, allocations: 347.9 kB / 454.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.2726, allocations: 104.5 kB / 454.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.2728, allocations: 152.7 kB / 454.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004754/0.2733, allocations: 259.4 kB / 455.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2733, allocations: 1.562 kB / 455.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006151/0.2739, allocations: 308.5 kB / 455.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.274, allocations: 10.56 kB / 455.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.274, allocations: 6.297 kB / 455.4 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.274, allocations: 3.406 kB / 455.4 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.2744, allocations: 88.42 kB / 455.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.2744, allocations: 3.688 kB / 455.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.2746, allocations: 14.89 kB / 455.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.2746, allocations: 21.33 kB / 455.5 MB, free: 9.941 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.000233/0.2749, allocations: 165 kB / 455.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.119e-05/0.2749, allocations: 40.03 kB / 455.7 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006759/0.2756, allocations: 314.5 kB / 456 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2756, allocations: 4.344 kB / 456 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2756, allocations: 0 / 456 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.2757, allocations: 3.984 kB / 456 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.2768, allocations: 0.7503 MB / 456.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2768, allocations: 0 / 456.8 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000352/0.2771, allocations: 77.77 kB / 456.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2772, allocations: 2.094 kB / 456.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2772, allocations: 6.219 kB / 456.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.2772, allocations: 1.156 kB / 456.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2772, allocations: 1.094 kB / 456.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008185/0.278, allocations: 0.5016 MB / 457.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.2782, allocations: 143.2 kB / 457.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.935e-05/0.2783, allocations: 9.406 kB / 457.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.2785, allocations: 9.062 kB / 457.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.2785, allocations: 17.31 kB / 457.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.2785, allocations: 14.3 kB / 457.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002954/0.2789, allocations: 275.6 kB / 457.8 MB, free: 8.289 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2789, allocations: 4.062 kB / 457.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005176/0.2794, allocations: 114.9 kB / 457.9 MB, free: 8.262 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.002026/0.2814, allocations: 1.338 MB / 459.3 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005472/0.282, allocations: 239.4 kB / 459.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.282, allocations: 0 / 459.5 MB, free: 7.129 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002284/0.2822, allocations: 122 kB / 459.6 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.2828, allocations: 102.9 kB / 459.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004831/0.2877, allocations: 3.476 MB / 463.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004065/0.2881, allocations: 0.809 MB / 464 MB, free: 3.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002582/0.2884, allocations: 55.23 kB / 464.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.2886, allocations: 119.4 kB / 464.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2886, allocations: 0 / 464.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02787/0.3164, allocations: 9.956 MB / 474.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.606/8.923, allocations: 12.53 kB / 474.1 MB, free: 9.613 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe 2>&1)