Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.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.CheckValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.CheckValveTest2,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2",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.007633/0.007633, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001989/0.001989, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.364/1.364, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05726/0.05726, allocations: 11.85 MB / 281.8 MB, free: 9.348 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.0021/0.0021, allocations: 72.53 kB / 391.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2295, allocations: 49.23 MB / 441.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest2): time 0.004733/0.2343, allocations: 4.351 MB / 445.4 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003567/0.2379, allocations: 2.157 MB / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004747/0.2384, allocations: 11.88 kB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00054/0.239, allocations: 182.8 kB / 447.8 MB, free: 15.45 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.0008524/0.2399, allocations: 341.4 kB / 448.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.2411, allocations: 462.2 kB / 448.6 MB, free: 14.98 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 NFFlatten.flatten: time 0.001245/0.2423, allocations: 1.009 MB / 449.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.2427, allocations: 306.6 kB / 449.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004658/0.2432, allocations: 367.7 kB / 450.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005005/0.2437, allocations: 410.7 kB / 450.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.994e-05/0.2438, allocations: 64.56 kB / 450.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005447/0.2444, allocations: 271.2 kB / 451 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.2446, allocations: 191.4 kB / 451.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003933/0.245, allocations: 416.7 kB / 451.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.2462, allocations: 1.047 MB / 452.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2462, allocations: 0 / 452.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2462, allocations: 1.375 kB / 452.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.2462, allocations: 0 / 452.6 MB, free: 12.56 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: 136 * Number of variables: 136 Notification: Performance of Generate backend data structure: time 0.001689/0.2479, allocations: 1.063 MB / 453.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2479, allocations: 17.72 kB / 453.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001097/0.2481, allocations: 96.86 kB / 453.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.2483, allocations: 88.27 kB / 453.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.249, allocations: 0.5096 MB / 454.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.249, allocations: 48.2 kB / 454.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.553e-05/0.2491, allocations: 59.39 kB / 454.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009561/0.2501, allocations: 0.5558 MB / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.2501, allocations: 0 / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.2502, allocations: 21.53 kB / 455.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.2502, allocations: 12.53 kB / 455.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009346/0.2511, allocations: 0.5252 MB / 455.6 MB, free: 10.43 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.003431/0.2546, allocations: 2.832 MB / 458.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007376/0.2553, allocations: 447.6 kB / 458.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003443/0.2557, allocations: 197.7 kB / 459.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.2558, allocations: 90.56 kB / 459.1 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.2558, allocations: 43.83 kB / 459.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.693e-06/0.2558, allocations: 3.938 kB / 459.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.002469/0.2583, allocations: 1.25 MB / 460.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.2584, allocations: 55.75 kB / 460.5 MB, free: 6.48 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.0007882/0.2592, allocations: 0.6452 MB / 461.1 MB, free: 6.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.2592, allocations: 30.89 kB / 461.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002613/0.2595, allocations: 329.3 kB / 461.5 MB, free: 5.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.2596, allocations: 159.8 kB / 461.6 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.2598, allocations: 95.73 kB / 461.7 MB, free: 5.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.26, allocations: 374.4 kB / 462.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.2603, allocations: 158.9 kB / 462.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.2607, allocations: 256.5 kB / 462.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003109/0.2638, allocations: 0.9396 MB / 463.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2638, allocations: 3.938 kB / 463.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009821/0.2648, allocations: 0.5392 MB / 464 MB, free: 3.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.2648, allocations: 4 kB / 464 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.2648, allocations: 4 kB / 464 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.2649, allocations: 4 kB / 464 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.2653, allocations: 124.1 kB / 464.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.2654, allocations: 15.94 kB / 464.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.2657, allocations: 11.98 kB / 464.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.2657, allocations: 20 kB / 464.2 MB, free: 3.672 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: j1.volumeClosed.port[2].p:VARIABLE(flow=false min = 0.0 start = j1.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: 12 * Number of states: 0 () * Number of discrete variables: 2 (checkValve1.variableRestriction.data.zetaLaminarKnown,checkValve.variableRestriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * 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.000348/0.2661, allocations: 241.6 kB / 464.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2662, allocations: 63.58 kB / 464.5 MB, free: 3.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.2672, allocations: 0.5261 MB / 465 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.2672, allocations: 4 kB / 465 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.2673, allocations: 0 / 465 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.2673, allocations: 7.922 kB / 465 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.2691, allocations: 1.225 MB / 466.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2692, allocations: 0 / 466.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.2696, allocations: 107.9 kB / 466.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.2696, allocations: 3.984 kB / 466.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.2697, allocations: 15.98 kB / 466.4 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.2697, allocations: 7.938 kB / 466.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2697, allocations: 0 / 466.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.2709, allocations: 0.7766 MB / 467.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.2712, allocations: 192.7 kB / 467.3 MB, free: 412 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.605e-05/0.2713, allocations: 8 kB / 467.3 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.2716, allocations: 15.98 kB / 467.4 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.241e-05/0.2716, allocations: 28.39 kB / 467.4 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-05/0.2717, allocations: 16 kB / 467.4 MB, free: 344 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005604/0.2722, allocations: 475 kB / 467.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2723, allocations: 0 / 467.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000593/0.2729, allocations: 183.8 kB / 468 MB, free: 15.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (circuitTank.volumeOpen.m,speed.phi,speed.w,j1.volumeClosed.port[2].p) * 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 (49): * Single equations (assignments): 49 * 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.002853/0.2757, allocations: 1.641 MB / 469.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008167/0.2765, allocations: 418.3 kB / 470.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2766, allocations: 4 kB / 470.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003812/0.2769, allocations: 214.3 kB / 470.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008667/0.2778, allocations: 215.1 kB / 470.5 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007706/0.2855, allocations: 5.717 MB / 476.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005483/0.2861, allocations: 0.9371 MB / 477.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.2865, allocations: 125.2 kB / 477.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.2869, allocations: 247.3 kB / 477.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2869, allocations: 0 / 477.5 MB, free: 6.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.3292, allocations: 16.99 MB / 494.5 MB, free: 5.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.689/9.018, allocations: 4.062 kB / 494.5 MB, free: 5.016 MB / 366.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2_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_CheckValveTest2.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe 2>&1)