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.00691/0.00691, allocations: 102 kB / 15.73 MB, free: 6.039 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.001173/0.001173, allocations: 194.2 kB / 16.67 MB, free: 5.961 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.265/1.265, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05219/0.05219, allocations: 11.85 MB / 281.8 MB, free: 9.324 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.001432/0.001432, allocations: 72.55 kB / 391.8 MB, free: 3.961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2512, allocations: 49.23 MB / 441.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest2): time 0.004896/0.2561, allocations: 4.351 MB / 445.4 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003223/0.2594, allocations: 2.158 MB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002908/0.2597, allocations: 12.09 kB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000539/0.2603, allocations: 174.9 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.000781/0.2611, allocations: 353.5 kB / 448.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.2621, allocations: 458.4 kB / 448.6 MB, free: 14.97 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.001035/0.2632, allocations: 1.012 MB / 449.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004044/0.2636, allocations: 315.9 kB / 449.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000428/0.264, allocations: 365 kB / 450.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004758/0.2645, allocations: 415.7 kB / 450.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.2646, allocations: 63.56 kB / 450.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004678/0.2651, allocations: 263.2 kB / 451 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.2653, allocations: 186.9 kB / 451.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003766/0.2657, allocations: 413 kB / 451.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.2668, allocations: 1.047 MB / 452.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2668, allocations: 5.375 kB / 452.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2668, allocations: 0 / 452.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.2668, allocations: 0 / 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.001635/0.2685, allocations: 1.037 MB / 453.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.2685, allocations: 13.83 kB / 453.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.2686, allocations: 96.92 kB / 453.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002045/0.2688, allocations: 91.25 kB / 453.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006831/0.2695, allocations: 0.5099 MB / 454.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.097e-05/0.2696, allocations: 44.59 kB / 454.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-05/0.2697, allocations: 55.38 kB / 454.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009289/0.2706, allocations: 0.5552 MB / 455 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.2707, allocations: 1.031 kB / 455 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.434e-05/0.2707, allocations: 28.59 kB / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.2707, allocations: 13.03 kB / 455 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009105/0.2717, allocations: 0.5212 MB / 455.6 MB, free: 10.45 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.003308/0.275, allocations: 2.834 MB / 458.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007576/0.2757, allocations: 443.5 kB / 458.8 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.2761, allocations: 192.7 kB / 459 MB, free: 7.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001095/0.2762, allocations: 98.72 kB / 459.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.2763, allocations: 41.38 kB / 459.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.2763, allocations: 0 / 459.1 MB, free: 7.371 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.00244/0.2787, allocations: 1.233 MB / 460.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.2788, allocations: 60.12 kB / 460.4 MB, free: 6.508 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.0007868/0.2796, allocations: 0.648 MB / 461.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.2796, allocations: 36.36 kB / 461.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002272/0.2798, allocations: 319.5 kB / 461.4 MB, free: 5.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.28, allocations: 152.9 kB / 461.6 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.2801, allocations: 90.86 kB / 461.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.2803, allocations: 374.4 kB / 462 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.2806, allocations: 157.6 kB / 462.2 MB, free: 5.184 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003643/0.281, allocations: 249.1 kB / 462.4 MB, free: 4.992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.284, allocations: 0.9529 MB / 463.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.284, allocations: 7.938 kB / 463.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009035/0.2849, allocations: 0.5312 MB / 463.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.2849, allocations: 8 kB / 463.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.285, allocations: 4 kB / 463.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.285, allocations: 7.984 kB / 463.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.2855, allocations: 115.8 kB / 464.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.2855, allocations: 7.984 kB / 464.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.2858, allocations: 19.94 kB / 464.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.2858, allocations: 23.98 kB / 464.1 MB, free: 3.703 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.0003432/0.2862, allocations: 237.7 kB / 464.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2863, allocations: 59.25 kB / 464.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009785/0.2873, allocations: 0.5339 MB / 464.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.2873, allocations: 8 kB / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2873, allocations: 0 / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.2873, allocations: 0 / 464.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.2891, allocations: 1.225 MB / 466.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2891, allocations: 0 / 466.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.2896, allocations: 107.9 kB / 466.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.2896, allocations: 4 kB / 466.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/0.2896, allocations: 15.98 kB / 466.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2896, allocations: 4 kB / 466.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2896, allocations: 0 / 466.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.2908, allocations: 0.7761 MB / 467.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.291, allocations: 188.3 kB / 467.3 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.715e-05/0.2911, allocations: 8 kB / 467.3 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.2914, allocations: 15.98 kB / 467.3 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.946e-05/0.2915, allocations: 32.39 kB / 467.3 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.2915, allocations: 15.98 kB / 467.3 MB, free: 384 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005105/0.292, allocations: 475 kB / 467.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.292, allocations: 0 / 467.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.2926, allocations: 172 kB / 468 MB, free: 15.75 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.002222/0.2949, allocations: 1.638 MB / 469.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007358/0.2956, allocations: 414.2 kB / 470 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2956, allocations: 0.6875 kB / 470 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.296, allocations: 210.4 kB / 470.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008452/0.2968, allocations: 218.6 kB / 470.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006872/0.3037, allocations: 5.703 MB / 476.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.3042, allocations: 0.941 MB / 477.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.3046, allocations: 117.2 kB / 477.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003157/0.3049, allocations: 247.3 kB / 477.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3049, allocations: 0 / 477.4 MB, free: 6.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.3428, allocations: 17.2 MB / 494.6 MB, free: 4.895 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.523/8.866, allocations: 0 / 494.6 MB, free: 4.895 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)