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.007459/0.007459, allocations: 100.3 kB / 15.73 MB, free: 6.484 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.002351/0.002351, allocations: 189 kB / 16.68 MB, free: 6.367 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.388/1.388, allocations: 205.1 MB / 222.6 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05578/0.05578, 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.001816/0.001816, allocations: 64.56 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.286, allocations: 49.22 MB / 441.1 MB, free: 4.156 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.CheckValveTest2): time 0.005764/0.2918, allocations: 4.349 MB / 445.4 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003749/0.2956, allocations: 2.168 MB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003733/0.296, allocations: 11.72 kB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005241/0.2965, allocations: 175.3 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.0007987/0.2973, allocations: 361.9 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.2984, allocations: 462.2 kB / 448.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.2995, allocations: 1.027 MB / 449.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000433/0.3, allocations: 298.7 kB / 449.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004197/0.3004, allocations: 361 kB / 450.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.3009, allocations: 420.1 kB / 450.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.248e-05/0.301, allocations: 65.06 kB / 450.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000489/0.3015, allocations: 270.5 kB / 451 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3016, allocations: 179.1 kB / 451.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.302, allocations: 417.3 kB / 451.6 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001185/0.3032, allocations: 1.048 MB / 452.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3032, allocations: 4 kB / 452.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3033, allocations: 1.375 kB / 452.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.3033, allocations: 3.938 kB / 452.6 MB, free: 12.54 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.001643/0.3049, allocations: 1.059 MB / 453.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.305, allocations: 13.17 kB / 453.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.3051, allocations: 105 kB / 453.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.3053, allocations: 91.86 kB / 453.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006969/0.306, allocations: 0.4982 MB / 454.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.84e-05/0.306, allocations: 45.41 kB / 454.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.161e-05/0.3061, allocations: 58.67 kB / 454.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009796/0.3071, allocations: 0.5561 MB / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.3072, allocations: 0 / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.355e-05/0.3072, allocations: 24.39 kB / 455.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.3072, allocations: 17.22 kB / 455.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009419/0.3082, allocations: 0.5261 MB / 455.6 MB, free: 10.42 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.003505/0.3117, allocations: 2.834 MB / 458.4 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.3125, allocations: 445 kB / 458.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/0.3128, allocations: 192.8 kB / 459.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.313, allocations: 94.36 kB / 459.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.313, allocations: 45.12 kB / 459.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.313, allocations: 0 / 459.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.002641/0.3156, allocations: 1.245 MB / 460.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.3157, allocations: 64.41 kB / 460.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007971/0.3165, allocations: 0.6446 MB / 461.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/0.3166, allocations: 31.08 kB / 461.2 MB, free: 6.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.3168, allocations: 329.2 kB / 461.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.3169, allocations: 159.9 kB / 461.7 MB, free: 5.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.3171, allocations: 96.38 kB / 461.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3172, allocations: 370.2 kB / 462.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.3176, allocations: 161.1 kB / 462.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.318, allocations: 261.7 kB / 462.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003197/0.3212, allocations: 0.9345 MB / 463.5 MB, free: 4.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.3212, allocations: 7.922 kB / 463.5 MB, free: 4.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001017/0.3223, allocations: 0.5356 MB / 464 MB, free: 3.828 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.3223, allocations: 8 kB / 464 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3223, allocations: 0 / 464 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.415e-05/0.3223, allocations: 8 kB / 464 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.3228, allocations: 123.8 kB / 464.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3229, allocations: 7.984 kB / 464.2 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.3232, allocations: 19.94 kB / 464.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.3232, allocations: 19.98 kB / 464.2 MB, free: 3.645 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.0003871/0.3236, allocations: 245.7 kB / 464.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.3238, allocations: 67.58 kB / 464.5 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.3248, allocations: 0.5261 MB / 465 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.3248, allocations: 4 kB / 465 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.3249, allocations: 0 / 465 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.3249, allocations: 3.984 kB / 465 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.3269, allocations: 1.221 MB / 466.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.3269, allocations: 4 kB / 466.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.3274, allocations: 111.9 kB / 466.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.3274, allocations: 4 kB / 466.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.415e-05/0.3274, allocations: 8 kB / 466.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.3275, allocations: 0 / 466.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.3275, allocations: 0 / 466.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.3288, allocations: 0.7805 MB / 467.2 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003403/0.3292, allocations: 196.7 kB / 467.4 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.889e-05/0.3293, allocations: 11.94 kB / 467.4 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.3296, allocations: 12 kB / 467.4 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-05/0.3297, allocations: 36.33 kB / 467.4 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.609e-05/0.3297, allocations: 15.98 kB / 467.4 MB, free: 308 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006526/0.3304, allocations: 475 kB / 467.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3304, allocations: 0 / 467.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006976/0.3311, allocations: 179.8 kB / 468.1 MB, free: 15.67 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.00257/0.3337, allocations: 1.644 MB / 469.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008929/0.3346, allocations: 414.2 kB / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.3346, allocations: 0 / 470.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.335, allocations: 219 kB / 470.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009701/0.336, allocations: 210.6 kB / 470.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.3435, allocations: 5.729 MB / 476.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.344, allocations: 0.9332 MB / 477.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004298/0.3445, allocations: 121.2 kB / 477.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003375/0.3448, allocations: 251.3 kB / 477.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3448, allocations: 0 / 477.6 MB, free: 6.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.3814, allocations: 16.99 MB / 494.6 MB, free: 4.984 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.456/8.837, allocations: 4 kB / 494.6 MB, free: 4.98 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)