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.004975/0.004975, allocations: 103.6 kB / 15.74 MB, free: 6.449 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.001251/0.001251, allocations: 196.5 kB / 16.67 MB, free: 6.355 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.357/1.357, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05721/0.05721, allocations: 11.84 MB / 281.8 MB, free: 9.344 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.002068/0.002068, allocations: 75.02 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2683, allocations: 49.23 MB / 441.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest2): time 0.005196/0.2735, allocations: 4.355 MB / 445.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003056/0.2766, allocations: 2.157 MB / 447.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002394/0.2768, allocations: 14.84 kB / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00053/0.2774, allocations: 171.4 kB / 447.8 MB, free: 15.46 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.0007626/0.2781, allocations: 346 kB / 448.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.2792, allocations: 457.6 kB / 448.6 MB, free: 15 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.001173/0.2804, allocations: 1.02 MB / 449.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004297/0.2808, allocations: 308.5 kB / 449.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.2813, allocations: 360.8 kB / 450.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005481/0.2818, allocations: 412.5 kB / 450.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.2819, allocations: 64.12 kB / 450.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.2824, allocations: 275.3 kB / 451 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.2826, allocations: 183.1 kB / 451.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.2831, allocations: 412.7 kB / 451.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.2843, allocations: 1.054 MB / 452.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.2843, allocations: 1.25 kB / 452.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2843, allocations: 0 / 452.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2843, allocations: 0 / 452.6 MB, free: 12.58 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.001739/0.2861, allocations: 1.067 MB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.2861, allocations: 13.48 kB / 453.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.2863, allocations: 93.95 kB / 453.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.2865, allocations: 86.36 kB / 453.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007227/0.2872, allocations: 0.5186 MB / 454.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/0.2873, allocations: 44.44 kB / 454.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.966e-05/0.2874, allocations: 63.08 kB / 454.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.2884, allocations: 0.5519 MB / 455 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.2884, allocations: 1.188 kB / 455 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-05/0.2885, allocations: 24.38 kB / 455.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.2885, allocations: 13.53 kB / 455.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009888/0.2895, allocations: 0.5255 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.003602/0.2931, allocations: 2.831 MB / 458.4 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007745/0.2939, allocations: 447.8 kB / 458.9 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003486/0.2942, allocations: 193.2 kB / 459 MB, free: 7.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/0.2944, allocations: 97.67 kB / 459.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.2944, allocations: 41.25 kB / 459.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.523e-06/0.2944, allocations: 0 / 459.2 MB, free: 7.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=43): time 0.002592/0.297, allocations: 1.246 MB / 460.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.2971, allocations: 56.16 kB / 460.5 MB, free: 6.504 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.0008382/0.2979, allocations: 0.6479 MB / 461.1 MB, free: 6.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.298, allocations: 36.2 kB / 461.2 MB, free: 6.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.2983, allocations: 320.9 kB / 461.5 MB, free: 5.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.2984, allocations: 163.9 kB / 461.6 MB, free: 5.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.2986, allocations: 95.56 kB / 461.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2988, allocations: 374.4 kB / 462.1 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.2991, allocations: 157.8 kB / 462.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000409/0.2996, allocations: 262 kB / 462.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003181/0.3027, allocations: 0.937 MB / 463.4 MB, free: 4.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3028, allocations: 3.938 kB / 463.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009698/0.3037, allocations: 0.5352 MB / 464 MB, free: 3.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.3038, allocations: 8 kB / 464 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3038, allocations: 4 kB / 464 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3038, allocations: 4 kB / 464 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/0.3043, allocations: 120.1 kB / 464.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.3043, allocations: 8 kB / 464.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.3046, allocations: 23.92 kB / 464.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.3046, allocations: 20 kB / 464.2 MB, free: 3.695 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.0003214/0.305, allocations: 233.7 kB / 464.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.3051, allocations: 67.58 kB / 464.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.3061, allocations: 0.5339 MB / 465 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.3061, allocations: 4 kB / 465 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.3061, allocations: 4 kB / 465 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3062, allocations: 3.984 kB / 465 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.308, allocations: 1.225 MB / 466.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.308, allocations: 0 / 466.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.3085, allocations: 103.9 kB / 466.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.3085, allocations: 4 kB / 466.3 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.3086, allocations: 15.98 kB / 466.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3086, allocations: 0 / 466.4 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3086, allocations: 4 kB / 466.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.3099, allocations: 0.7805 MB / 467.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.3101, allocations: 188.6 kB / 467.3 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.237e-05/0.3102, allocations: 8 kB / 467.3 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.3105, allocations: 15.98 kB / 467.3 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.917e-05/0.3105, allocations: 36.33 kB / 467.4 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.3106, allocations: 12 kB / 467.4 MB, free: 368 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005679/0.3112, allocations: 479 kB / 467.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.884e-06/0.3112, allocations: 0 / 467.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005673/0.3117, allocations: 183.7 kB / 468 MB, free: 15.72 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.00285/0.3146, allocations: 1.643 MB / 469.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007935/0.3154, allocations: 418.2 kB / 470.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3154, allocations: 0 / 470.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000383/0.3158, allocations: 214.3 kB / 470.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008583/0.3167, allocations: 210.9 kB / 470.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.3245, allocations: 5.733 MB / 476.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005893/0.3251, allocations: 0.9371 MB / 477.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003676/0.3254, allocations: 121.2 kB / 477.3 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003644/0.3258, allocations: 247.3 kB / 477.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3258, allocations: 0 / 477.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04397/0.3698, allocations: 16.99 MB / 494.5 MB, free: 5.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.708/9.078, allocations: 0 / 494.5 MB, free: 5.031 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)