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.001145/0.001145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05744/0.05744, allocations: 11.85 MB / 281.6 MB, free: 9.426 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.00171/0.00171, allocations: 74.95 kB / 341.9 MB, free: 21.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.09038, allocations: 49.22 MB / 391.2 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.CheckValveTest2): time 0.006622/0.09705, allocations: 4.364 MB / 395.5 MB, free: 236 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004197/0.1013, allocations: 2.155 MB / 397.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006217/0.1019, allocations: 8 kB / 397.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006689/0.1026, allocations: 178.7 kB / 397.9 MB, free: 13.89 MB / 302.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.001063/0.1037, allocations: 345.7 kB / 398.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.1049, allocations: 450 kB / 398.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.1062, allocations: 1.015 MB / 399.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005384/0.1067, allocations: 295.8 kB / 399.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006638/0.1074, allocations: 358.7 kB / 400.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006761/0.1081, allocations: 418.2 kB / 400.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002096/0.1083, allocations: 68 kB / 400.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006182/0.1089, allocations: 263.8 kB / 401 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.1092, allocations: 183.3 kB / 401.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005508/0.1097, allocations: 421.9 kB / 401.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.111, allocations: 1.032 MB / 402.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.111, allocations: 0 / 402.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.111, allocations: 0 / 402.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.986e-05/0.1111, allocations: 0 / 402.6 MB, free: 9.078 MB / 302.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.002151/0.1132, allocations: 1.044 MB / 403.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.1133, allocations: 15.89 kB / 403.7 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/0.1135, allocations: 94.7 kB / 403.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.1137, allocations: 84 kB / 403.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007744/0.1145, allocations: 0.5128 MB / 404.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.086e-05/0.1146, allocations: 41.31 kB / 404.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.1147, allocations: 52 kB / 404.5 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1157, allocations: 0.5648 MB / 405 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1158, allocations: 3.906 kB / 405.1 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.423e-05/0.1158, allocations: 20 kB / 405.1 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.1159, allocations: 19.94 kB / 405.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1169, allocations: 0.5244 MB / 405.6 MB, free: 6.004 MB / 302.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.003877/0.1208, allocations: 2.839 MB / 408.5 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007993/0.1216, allocations: 442.9 kB / 408.9 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003557/0.122, allocations: 204.7 kB / 409.1 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001329/0.1221, allocations: 93.09 kB / 409.2 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1221, allocations: 38.55 kB / 409.2 MB, free: 2.062 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.813e-06/0.1222, allocations: 3.938 kB / 409.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002697/0.1249, allocations: 1.247 MB / 410.5 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.1249, allocations: 55.41 kB / 410.5 MB, free: 0.6875 MB / 302.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.000816/0.1257, allocations: 0.6407 MB / 411.2 MB, free: 32 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.1258, allocations: 37.69 kB / 411.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.126, allocations: 324 kB / 411.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1262, allocations: 145.8 kB / 411.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.1263, allocations: 90.16 kB / 411.7 MB, free: 15.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.1265, allocations: 386.7 kB / 412.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.1268, allocations: 149 kB / 412.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004026/0.1272, allocations: 260.1 kB / 412.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003334/0.1306, allocations: 0.9411 MB / 413.5 MB, free: 13.63 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.1306, allocations: 7.938 kB / 413.5 MB, free: 13.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001015/0.1316, allocations: 0.5232 MB / 414 MB, free: 13.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.1316, allocations: 8 kB / 414 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.1317, allocations: 7.938 kB / 414 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.1317, allocations: 4.344 kB / 414 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.1322, allocations: 119.9 kB / 414.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.1322, allocations: 7.938 kB / 414.1 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.1325, allocations: 23.97 kB / 414.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.151e-05/0.1326, allocations: 20 kB / 414.2 MB, free: 12.9 MB / 318.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 = 100000.0 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.0003346/0.1329, allocations: 234.3 kB / 414.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.133, allocations: 67.16 kB / 414.5 MB, free: 12.6 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.1341, allocations: 0.5261 MB / 415 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1341, allocations: 8 kB / 415 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1342, allocations: 0 / 415 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.1342, allocations: 3.984 kB / 415 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.1361, allocations: 1.228 MB / 416.2 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.1361, allocations: 0 / 416.2 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.1367, allocations: 107.9 kB / 416.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1367, allocations: 4 kB / 416.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.853e-05/0.1367, allocations: 11.98 kB / 416.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1367, allocations: 4 kB / 416.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1367, allocations: 0 / 416.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.138, allocations: 0.7673 MB / 417.1 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002901/0.1383, allocations: 192.2 kB / 417.3 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.1385, allocations: 19.94 kB / 417.3 MB, free: 9.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/0.1387, allocations: 15.98 kB / 417.4 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.1388, allocations: 32.33 kB / 417.4 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.1389, allocations: 16 kB / 417.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006181/0.1395, allocations: 471 kB / 417.9 MB, free: 9.113 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1395, allocations: 3.938 kB / 417.9 MB, free: 9.109 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006479/0.1401, allocations: 179.9 kB / 418 MB, free: 8.934 MB / 318.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.002713/0.1429, allocations: 1.63 MB / 419.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.1439, allocations: 458 kB / 420.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1439, allocations: 0 / 420.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003941/0.1443, allocations: 215.1 kB / 420.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009395/0.1452, allocations: 215.6 kB / 420.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008799/0.1541, allocations: 5.931 MB / 426.5 MB, free: 444 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1526/0.3067, allocations: 0.9351 MB / 427.4 MB, free: 40.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006001/0.3074, allocations: 120.1 kB / 427.5 MB, free: 40.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.3077, allocations: 254.8 kB / 427.8 MB, free: 40.87 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3077, allocations: 0 / 427.8 MB, free: 40.87 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.328/3.636, allocations: 16.69 MB / 444.5 MB, free: 34.96 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/15.46, allocations: 3.969 kB / 444.5 MB, free: 34.96 MB / 318.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)