Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.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.WallFrictionTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest") translateModel(OpenHydraulics.DevelopmentTests.WallFrictionTest,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 98.16 kB / 16.29 MB, free: 6.016 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.0009965/0.0009965, allocations: 185.8 kB / 17.22 MB, free: 5.625 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.273/1.273, allocations: 205.1 MB / 223.1 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05532/0.05532, allocations: 11.84 MB / 282.3 MB, free: 308 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.001478/0.001478, allocations: 71.81 kB / 342.6 MB, free: 3.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2121, allocations: 49.21 MB / 391.8 MB, free: 49.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003579/0.2157, allocations: 2.711 MB / 394.5 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.2176, allocations: 1.497 MB / 396 MB, free: 46.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.2178, allocations: 7.438 kB / 396 MB, free: 46.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.2179, allocations: 31.73 kB / 396 MB, free: 46.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.2182, allocations: 110 kB / 396.1 MB, free: 46.03 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Basic/BaseClasses/massFlowRate_dp_WallFriction.mo:82:9-82:71:writable] Warning: Re was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0006469/0.2189, allocations: 323.5 kB / 396.4 MB, free: 45.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003261/0.2192, allocations: 315.7 kB / 396.7 MB, free: 45.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2194, allocations: 86.47 kB / 396.8 MB, free: 45.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.2196, allocations: 106 kB / 396.9 MB, free: 45.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.2198, allocations: 129.2 kB / 397.1 MB, free: 45.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.2198, allocations: 20.16 kB / 397.1 MB, free: 45.58 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.2202, allocations: 220.8 kB / 397.3 MB, free: 45.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.967e-05/0.2202, allocations: 49.12 kB / 397.3 MB, free: 45.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.2204, allocations: 126.8 kB / 397.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000483/0.2209, allocations: 387 kB / 397.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2209, allocations: 0.6094 kB / 397.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2209, allocations: 1.062 kB / 397.8 MB, free: 45.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.2209, allocations: 0 / 397.8 MB, free: 45.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006946/0.2216, allocations: 0.5408 MB / 398.4 MB, free: 44.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.2217, allocations: 16.98 kB / 398.4 MB, free: 44.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.2218, allocations: 27.69 kB / 398.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.222, allocations: 250.7 kB / 398.7 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.222, allocations: 11.53 kB / 398.7 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.2221, allocations: 20.38 kB / 398.7 MB, free: 44.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.2224, allocations: 211.4 kB / 398.9 MB, free: 44.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.2225, allocations: 0 / 398.9 MB, free: 44.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.2225, allocations: 11.53 kB / 398.9 MB, free: 44.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.2225, allocations: 3.656 kB / 398.9 MB, free: 44.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002635/0.2228, allocations: 148.3 kB / 399.1 MB, free: 44.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.2239, allocations: 1.11 MB / 400.2 MB, free: 43.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.2242, allocations: 141.9 kB / 400.3 MB, free: 43.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2243, allocations: 64.95 kB / 400.4 MB, free: 43.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/0.2245, allocations: 331.4 kB / 400.7 MB, free: 42.87 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.2246, allocations: 39.62 kB / 400.7 MB, free: 42.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.2246, allocations: 0 / 400.7 MB, free: 42.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.001509/0.2261, allocations: 0.6618 MB / 401.4 MB, free: 42.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.972e-05/0.2261, allocations: 57.53 kB / 401.5 MB, free: 42.28 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.2263, allocations: 222.7 kB / 401.7 MB, free: 42.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.2263, allocations: 30.89 kB / 401.7 MB, free: 42.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.2264, allocations: 130.2 kB / 401.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.2264, allocations: 65.69 kB / 401.9 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/0.2265, allocations: 36.11 kB / 401.9 MB, free: 41.87 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.478e-05/0.2265, allocations: 330.4 kB / 402.3 MB, free: 41.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001326/0.2266, allocations: 71.17 kB / 402.3 MB, free: 41.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.2268, allocations: 104.8 kB / 402.4 MB, free: 41.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.2271, allocations: 165.8 kB / 402.6 MB, free: 41.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2271, allocations: 1 kB / 402.6 MB, free: 41.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003459/0.2274, allocations: 225 kB / 402.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2274, allocations: 5.781 kB / 402.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2275, allocations: 2.406 kB / 402.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2275, allocations: 2.281 kB / 402.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/0.2277, allocations: 56.19 kB / 402.9 MB, free: 41.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2277, allocations: 6.844 kB / 402.9 MB, free: 41.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.2279, allocations: 12.89 kB / 402.9 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.2279, allocations: 10.38 kB / 402.9 MB, free: 41.14 MB / 318.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: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001254/0.228, allocations: 146.5 kB / 403.1 MB, free: 41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.2281, allocations: 16.78 kB / 403.1 MB, free: 40.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004173/0.2285, allocations: 208.9 kB / 403.3 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.2285, allocations: 3.344 kB / 403.3 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2285, allocations: 7.984 kB / 403.3 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.2285, allocations: 3.938 kB / 403.3 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006261/0.2292, allocations: 0.5539 MB / 403.8 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2292, allocations: 1.406 kB / 403.8 MB, free: 40.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.2294, allocations: 53.38 kB / 403.9 MB, free: 40.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2294, allocations: 2.172 kB / 403.9 MB, free: 40.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.2295, allocations: 12.95 kB / 403.9 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.2295, allocations: 1.125 kB / 403.9 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2295, allocations: 3.984 kB / 403.9 MB, free: 40.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004642/0.2299, allocations: 357.7 kB / 404.3 MB, free: 40.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.98e-05/0.23, allocations: 111.8 kB / 404.4 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.2301, allocations: 10.06 kB / 404.4 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.2302, allocations: 8.656 kB / 404.4 MB, free: 39.97 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.2303, allocations: 19 kB / 404.4 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.2303, allocations: 3.594 kB / 404.4 MB, free: 39.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000113/0.2304, allocations: 167.1 kB / 404.6 MB, free: 39.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2304, allocations: 0 / 404.6 MB, free: 39.84 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003802/0.2308, allocations: 98.58 kB / 404.7 MB, free: 39.81 MB / 318.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 (20): * Single equations (assignments): 20 * 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.0002311/0.231, allocations: 166.4 kB / 404.8 MB, free: 39.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.2314, allocations: 146.1 kB / 405 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2314, allocations: 0 / 405 MB, free: 39.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.2315, allocations: 78.12 kB / 405.1 MB, free: 39.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.2319, allocations: 60.41 kB / 405.1 MB, free: 39.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008311/0.2328, allocations: 0.5479 MB / 405.7 MB, free: 39.18 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.2329, allocations: 0.7498 MB / 406.4 MB, free: 38.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.233, allocations: 22.11 kB / 406.4 MB, free: 38.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.2331, allocations: 29.52 kB / 406.5 MB, free: 38.42 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2331, allocations: 1.312 kB / 406.5 MB, free: 38.42 MB / 318.1 MB Notification: Performance of Templates: time 0.006608/0.2397, allocations: 3.769 MB / 410.2 MB, free: 36.15 MB / 318.1 MB make -j1 -f OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.makefile (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.sim & ./OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe 2>&1)