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.005969/0.005969, allocations: 101.2 kB / 15.73 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.001207/0.001207, allocations: 196.2 kB / 16.67 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.286/1.286, 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.05627/0.05627, allocations: 11.84 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.001653/0.001653, allocations: 75.89 kB / 391.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2564, allocations: 49.22 MB / 441.1 MB, free: 4.172 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.004964/0.2614, allocations: 4.357 MB / 445.4 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003285/0.2647, allocations: 2.157 MB / 447.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004037/0.2651, allocations: 8.688 kB / 447.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005198/0.2657, allocations: 179.5 kB / 447.8 MB, free: 15.47 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.0008411/0.2665, allocations: 349 kB / 448.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.2677, allocations: 458.8 kB / 448.6 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001123/0.2688, allocations: 1.015 MB / 449.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000428/0.2693, allocations: 307.7 kB / 449.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004448/0.2697, allocations: 364.3 kB / 450.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.2702, allocations: 415.2 kB / 450.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.552e-05/0.2703, allocations: 65.41 kB / 450.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005068/0.2708, allocations: 272.5 kB / 451 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.271, allocations: 181.6 kB / 451.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003528/0.2713, allocations: 416.6 kB / 451.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.2724, allocations: 1.048 MB / 452.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2725, allocations: 5.375 kB / 452.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2725, allocations: 0 / 452.6 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2725, allocations: 0 / 452.6 MB, free: 12.57 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.001639/0.2741, allocations: 1.037 MB / 453.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2742, allocations: 13.52 kB / 453.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.2743, allocations: 94.02 kB / 453.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.2745, allocations: 98.98 kB / 453.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.2753, allocations: 0.4973 MB / 454.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.2753, allocations: 44.94 kB / 454.4 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.568e-05/0.2754, allocations: 55.66 kB / 454.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.2765, allocations: 0.5587 MB / 455 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.2765, allocations: 5.188 kB / 455 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/0.2766, allocations: 20.69 kB / 455 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.2766, allocations: 16.88 kB / 455 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009427/0.2775, allocations: 0.5253 MB / 455.6 MB, free: 10.48 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.003676/0.2812, allocations: 2.834 MB / 458.4 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007309/0.282, allocations: 439.3 kB / 458.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.2823, allocations: 198.2 kB / 459 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001121/0.2824, allocations: 93.45 kB / 459.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2825, allocations: 44.88 kB / 459.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.325e-06/0.2825, allocations: 0 / 459.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.002678/0.2852, allocations: 1.234 MB / 460.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.461e-05/0.2852, allocations: 60.62 kB / 460.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009009/0.2861, allocations: 0.6517 MB / 461.1 MB, free: 6.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.731e-05/0.2862, allocations: 31.23 kB / 461.1 MB, free: 6.125 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.2865, allocations: 321.1 kB / 461.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.2866, allocations: 146.7 kB / 461.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.2868, allocations: 91.45 kB / 461.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.2869, allocations: 371.1 kB / 462 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.2873, allocations: 157.7 kB / 462.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.2877, allocations: 261.5 kB / 462.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003198/0.2909, allocations: 0.9408 MB / 463.4 MB, free: 4.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2909, allocations: 3.938 kB / 463.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009817/0.2919, allocations: 0.5346 MB / 463.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2919, allocations: 8 kB / 463.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.292, allocations: 7.984 kB / 463.9 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.292, allocations: 7.938 kB / 463.9 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004746/0.2925, allocations: 111.9 kB / 464.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.2925, allocations: 11.92 kB / 464.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.2929, allocations: 16 kB / 464.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.149e-05/0.2929, allocations: 23.98 kB / 464.1 MB, free: 3.758 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.0004199/0.2933, allocations: 241.6 kB / 464.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.2935, allocations: 59.25 kB / 464.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.2945, allocations: 0.53 MB / 464.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2945, allocations: 11.98 kB / 464.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.2945, allocations: 0 / 464.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2945, allocations: 0 / 464.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.2964, allocations: 1.229 MB / 466.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2965, allocations: 0 / 466.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004671/0.2969, allocations: 111.9 kB / 466.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.297, allocations: 3.984 kB / 466.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.297, allocations: 8 kB / 466.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.297, allocations: 4 kB / 466.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.297, allocations: 0 / 466.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.2982, allocations: 0.7761 MB / 467.1 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.2985, allocations: 188.3 kB / 467.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/0.2986, allocations: 11.98 kB / 467.3 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.2988, allocations: 16 kB / 467.3 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.967e-05/0.2989, allocations: 28.39 kB / 467.3 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.147e-05/0.2989, allocations: 19.98 kB / 467.3 MB, free: 432 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005536/0.2995, allocations: 471 kB / 467.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2995, allocations: 0 / 467.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000609/0.3001, allocations: 176 kB / 468 MB, free: 15.8 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.002356/0.3025, allocations: 1.641 MB / 469.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000803/0.3033, allocations: 414.2 kB / 470 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3033, allocations: 0 / 470 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.3037, allocations: 215.1 kB / 470.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000918/0.3046, allocations: 214.6 kB / 470.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007405/0.312, allocations: 5.707 MB / 476.1 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.3126, allocations: 0.9293 MB / 477.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004172/0.313, allocations: 125.2 kB / 477.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000324/0.3133, allocations: 243.3 kB / 477.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3134, allocations: 0 / 477.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04083/0.3542, allocations: 17.2 MB / 494.6 MB, free: 4.938 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.858/9.212, allocations: 0 / 494.6 MB, free: 4.938 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_CheckValveTest2.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest2.pipe 2>&1)