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.005365/0.005366, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.001382/0.001382, allocations: 202.1 kB / 16.68 MB, free: 5.965 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.341/1.341, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05823/0.05824, allocations: 11.85 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.002128/0.002128, allocations: 75.89 kB / 391.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2459, allocations: 49.23 MB / 441.1 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest): time 0.004423/0.2503, allocations: 3.248 MB / 444.3 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.2527, allocations: 1.827 MB / 446.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.253, allocations: 4.188 kB / 446.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003695/0.2534, allocations: 115.6 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.0004381/0.2538, allocations: 191.9 kB / 446.5 MB, free: 412 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006851/0.2545, allocations: 323.6 kB / 446.8 MB, free: 244 kB / 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.0) as default value. Notification: Performance of NFFlatten.flatten: time 0.0005243/0.255, allocations: 0.4883 MB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.2553, allocations: 131.1 kB / 447.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.2556, allocations: 177.1 kB / 447.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003527/0.2559, allocations: 204.1 kB / 447.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.96e-05/0.256, allocations: 31.41 kB / 447.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005122/0.2565, allocations: 230.5 kB / 448 MB, free: 15.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2566, allocations: 93.56 kB / 448.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.2569, allocations: 198.4 kB / 448.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009255/0.2578, allocations: 0.5831 MB / 448.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2579, allocations: 3.812 kB / 448.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2579, allocations: 0 / 448.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.2579, allocations: 0 / 448.9 MB, free: 15.19 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.001195/0.2591, allocations: 0.7049 MB / 449.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.2591, allocations: 13.77 kB / 449.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.016e-05/0.2592, allocations: 63.66 kB / 449.7 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.2594, allocations: 45.78 kB / 449.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.2598, allocations: 338.8 kB / 450 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.2599, allocations: 21.03 kB / 450.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.2599, allocations: 25.91 kB / 450.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.2605, allocations: 321.2 kB / 450.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.2605, allocations: 0 / 450.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.2606, allocations: 14.72 kB / 450.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2606, allocations: 6.219 kB / 450.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004946/0.2611, allocations: 256.5 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.002176/0.2633, allocations: 1.474 MB / 452.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.2638, allocations: 221.9 kB / 452.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.264, allocations: 94.19 kB / 452.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.2641, allocations: 95.86 kB / 452.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.2642, allocations: 35.88 kB / 452.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.823e-06/0.2642, allocations: 1.344 kB / 452.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002434/0.2666, allocations: 0.8666 MB / 453.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.2667, allocations: 62.19 kB / 453.5 MB, free: 11.42 MB / 334.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.0004922/0.2672, allocations: 376 kB / 453.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.2673, allocations: 30.77 kB / 453.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.2674, allocations: 191 kB / 454.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.522e-05/0.2675, allocations: 93.8 kB / 454.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.2676, allocations: 66.95 kB / 454.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2678, allocations: 342.9 kB / 454.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.268, allocations: 104.6 kB / 454.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.2683, allocations: 149.3 kB / 454.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004917/0.2688, allocations: 263.3 kB / 455.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2688, allocations: 1.094 kB / 455.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006606/0.2695, allocations: 313 kB / 455.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/0.2695, allocations: 14.56 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.2695, allocations: 2.312 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2695, allocations: 3.219 kB / 455.4 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/0.2699, allocations: 76.58 kB / 455.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.2699, allocations: 7.75 kB / 455.5 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.2702, allocations: 14.7 kB / 455.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.2702, allocations: 13.06 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.0002551/0.2705, allocations: 177.8 kB / 455.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.924e-05/0.2705, allocations: 39.48 kB / 455.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007011/0.2712, allocations: 311.5 kB / 456.1 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2713, allocations: 6.391 kB / 456.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2713, allocations: 5.125 kB / 456.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2713, allocations: 0 / 456.1 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.2725, allocations: 0.7541 MB / 456.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2725, allocations: 0 / 456.8 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000347/0.2729, allocations: 70.17 kB / 456.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.2729, allocations: 1.375 kB / 456.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.2729, allocations: 10.55 kB / 456.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2729, allocations: 1.031 kB / 456.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2729, allocations: 5.406 kB / 456.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008857/0.2738, allocations: 0.5007 MB / 457.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.274, allocations: 134.8 kB / 457.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.566e-05/0.2741, allocations: 10.52 kB / 457.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.2743, allocations: 14.14 kB / 457.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.2743, allocations: 21.72 kB / 457.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.2744, allocations: 9.469 kB / 457.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003166/0.2747, allocations: 271.3 kB / 457.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.347e-06/0.2747, allocations: 0 / 457.9 MB, free: 8.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005032/0.2752, allocations: 121.9 kB / 458 MB, free: 8.246 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.002488/0.2777, allocations: 1.346 MB / 459.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005515/0.2783, allocations: 234.8 kB / 459.5 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2783, allocations: 1.125 kB / 459.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.2785, allocations: 125.2 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.0005605/0.2791, allocations: 98.92 kB / 459.8 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.2839, allocations: 3.505 MB / 463.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.2843, allocations: 0.7973 MB / 464.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002415/0.2846, allocations: 63.17 kB / 464.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001935/0.2848, allocations: 119.4 kB / 464.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2848, allocations: 4 kB / 464.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.3188, allocations: 9.843 MB / 474.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.088/8.407, allocations: 4.688 kB / 474.1 MB, free: 9.656 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)