Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.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: translateModel(OpenHydraulics.DevelopmentTests.CheckValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest") translateModel(OpenHydraulics.DevelopmentTests.CheckValveTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 110.4 kB / 16.41 MB, free: 6.496 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.001219/0.001219, allocations: 183.1 kB / 17.34 MB, free: 5.762 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.304/1.304, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05299/0.05299, allocations: 11.84 MB / 282.4 MB, free: 224 kB / 222.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.001512/0.001512, allocations: 69.58 kB / 393 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08293/0.08445, allocations: 49.23 MB / 442.2 MB, free: 2.09 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.CheckValveTest): time 0.004046/0.08853, allocations: 3.258 MB / 445.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002532/0.09108, allocations: 1.828 MB / 447.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001982/0.09129, allocations: 4 kB / 447.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003739/0.09167, allocations: 99.31 kB / 447.4 MB, free: 12.87 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.0004457/0.09213, allocations: 202.7 kB / 447.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.09281, allocations: 326.6 kB / 447.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.0933, allocations: 0.4977 MB / 448.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.09353, allocations: 123.4 kB / 448.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.09375, allocations: 175.3 kB / 448.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.09403, allocations: 203.1 kB / 448.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.09409, allocations: 28 kB / 449 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003683/0.09447, allocations: 231.8 kB / 449.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.994e-05/0.09457, allocations: 91.62 kB / 449.3 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.09473, allocations: 199 kB / 449.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006619/0.0954, allocations: 0.5842 MB / 450 MB, free: 10.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.09542, allocations: 0 / 450 MB, free: 10.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.09543, allocations: 0 / 450 MB, free: 10.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.09545, allocations: 0 / 450 MB, free: 10.24 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001003/0.09646, allocations: 0.6896 MB / 450.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.09651, allocations: 11.89 kB / 450.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.09664, allocations: 44.47 kB / 450.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.09702, allocations: 327.4 kB / 451.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.09706, allocations: 28.5 kB / 451.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.999e-05/0.09712, allocations: 27.94 kB / 451.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000516/0.09764, allocations: 319.6 kB / 451.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.09766, allocations: 0 / 451.5 MB, free: 8.707 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.0977, allocations: 8 kB / 451.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.09771, allocations: 8 kB / 451.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004574/0.09817, allocations: 266 kB / 451.8 MB, free: 8.434 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.001754/0.09994, allocations: 1.469 MB / 453.2 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.1003, allocations: 230.4 kB / 453.4 MB, free: 6.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1005, allocations: 96.83 kB / 453.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.771e-05/0.1006, allocations: 89.08 kB / 453.6 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.1007, allocations: 42.5 kB / 453.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.1007, allocations: 0 / 453.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001989/0.1027, allocations: 0.8629 MB / 454.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.1027, allocations: 59.34 kB / 454.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.1031, allocations: 373.7 kB / 455 MB, free: 4.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.1031, allocations: 29.7 kB / 455 MB, free: 4.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.1032, allocations: 192.5 kB / 455.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.297e-05/0.1033, allocations: 86.66 kB / 455.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.186e-05/0.1034, allocations: 65.88 kB / 455.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1035, allocations: 342.8 kB / 455.7 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.1037, allocations: 101.9 kB / 455.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.104, allocations: 156.7 kB / 455.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004132/0.1044, allocations: 249 kB / 456.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1044, allocations: 0 / 456.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005393/0.1049, allocations: 316.8 kB / 456.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.105, allocations: 4.438 kB / 456.5 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.105, allocations: 7.938 kB / 456.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.105, allocations: 4 kB / 456.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.1054, allocations: 87.81 kB / 456.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.1054, allocations: 8.156 kB / 456.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.1055, allocations: 12 kB / 456.6 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.1056, allocations: 19.98 kB / 456.6 MB, free: 3.215 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (checkValve.variableRestriction.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.000199/0.1058, allocations: 173 kB / 456.8 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-05/0.1059, allocations: 35.53 kB / 456.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.1065, allocations: 313.4 kB / 457.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1065, allocations: 4 kB / 457.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.1065, allocations: 0 / 457.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1065, allocations: 3.984 kB / 457.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.1075, allocations: 0.7494 MB / 457.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1075, allocations: 0 / 457.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.1079, allocations: 87.88 kB / 458 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1079, allocations: 0 / 458 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.1079, allocations: 8 kB / 458 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1079, allocations: 0 / 458 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1079, allocations: 0 / 458 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007565/0.1087, allocations: 0.4961 MB / 458.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.1088, allocations: 144.7 kB / 458.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.149e-05/0.1089, allocations: 11.98 kB / 458.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1091, allocations: 12 kB / 458.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.1092, allocations: 19.91 kB / 458.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1092, allocations: 15.94 kB / 458.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.1095, allocations: 275.2 kB / 458.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1095, allocations: 0 / 458.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004271/0.1099, allocations: 119.9 kB / 459 MB, free: 0.668 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * 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 (30): * Single equations (assignments): 30 * 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.0009176/0.1108, allocations: 402.2 kB / 459.4 MB, free: 412 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005044/0.1113, allocations: 231.8 kB / 459.7 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1114, allocations: 4 kB / 459.7 MB, free: 176 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.1116, allocations: 123.8 kB / 459.8 MB, free: 52 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005945/0.1122, allocations: 105.6 kB / 459.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.1137, allocations: 0.8062 MB / 460.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.1141, allocations: 0.8028 MB / 461.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001215/0.1142, allocations: 39.42 kB / 461.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1142, allocations: 0 / 461.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of Templates: time 0.01002/0.1243, allocations: 5.86 MB / 467.4 MB, free: 8.398 MB / 350.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.CheckValveTest.pipe 2>&1)