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: "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.WallFrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.WallFrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest",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.005382/0.005382, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001046/0.001046, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.299/1.299, allocations: 205.1 MB / 222.6 MB, free: 4.375 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05447/0.05447, allocations: 11.85 MB / 281.8 MB, free: 9.188 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.001484/0.001484, allocations: 80.05 kB / 391.9 MB, free: 3.945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2319, allocations: 49.22 MB / 441.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003532/0.2354, allocations: 2.712 MB / 443.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.2374, allocations: 1.504 MB / 445.3 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.2376, allocations: 7.5 kB / 445.3 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.2377, allocations: 32.22 kB / 445.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003614/0.2381, allocations: 119.1 kB / 445.4 MB, free: 1.062 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.000783/0.2389, allocations: 329.2 kB / 445.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.2393, allocations: 314.2 kB / 446.1 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001806/0.2395, allocations: 85.33 kB / 446.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.2396, allocations: 110.6 kB / 446.3 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.2398, allocations: 126.2 kB / 446.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.431e-05/0.2399, allocations: 23.44 kB / 446.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000394/0.2403, allocations: 220.3 kB / 446.6 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.2403, allocations: 48.83 kB / 446.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.2405, allocations: 130.5 kB / 446.8 MB, free: 448 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000549/0.241, allocations: 386.1 kB / 447.2 MB, free: 308 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.241, allocations: 0 / 447.2 MB, free: 308 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.241, allocations: 1.125 kB / 447.2 MB, free: 308 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.2411, allocations: 0 / 447.2 MB, free: 308 kB / 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.0007971/0.2419, allocations: 0.5469 MB / 447.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.2419, allocations: 14.17 kB / 447.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.797e-05/0.242, allocations: 57.84 kB / 447.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.2421, allocations: 31.2 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.2424, allocations: 252.1 kB / 448.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.2424, allocations: 12.19 kB / 448.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.242e-05/0.2425, allocations: 20.78 kB / 448.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004229/0.2429, allocations: 209.7 kB / 448.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.2429, allocations: 1.375 kB / 448.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.2429, allocations: 9.312 kB / 448.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.243, allocations: 8.656 kB / 448.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003022/0.2433, allocations: 144.4 kB / 448.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.2446, allocations: 1.111 MB / 449.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003219/0.245, allocations: 137.6 kB / 449.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2451, allocations: 61.39 kB / 449.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002607/0.2454, allocations: 334.8 kB / 450.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.2454, allocations: 35.56 kB / 450.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.2454, allocations: 0 / 450.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001688/0.2471, allocations: 0.6584 MB / 450.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.2471, allocations: 56.78 kB / 450.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002097/0.2474, allocations: 220.1 kB / 451.1 MB, free: 13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.2474, allocations: 29.7 kB / 451.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.187e-05/0.2475, allocations: 137.6 kB / 451.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.992e-05/0.2475, allocations: 68.38 kB / 451.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.686e-05/0.2476, allocations: 38.08 kB / 451.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2477, allocations: 332.2 kB / 451.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.2479, allocations: 74.95 kB / 451.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/0.2481, allocations: 99.12 kB / 451.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.2484, allocations: 175.2 kB / 452 MB, free: 12.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2484, allocations: 0 / 452 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004077/0.2488, allocations: 213.6 kB / 452.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2488, allocations: 6.875 kB / 452.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2488, allocations: 1.375 kB / 452.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.2488, allocations: 2.75 kB / 452.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.2491, allocations: 55.91 kB / 452.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.2491, allocations: 6.734 kB / 452.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.2492, allocations: 12.06 kB / 452.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.2493, allocations: 10.88 kB / 452.3 MB, free: 12.02 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: 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.0001765/0.2494, allocations: 142.2 kB / 452.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.2495, allocations: 21.48 kB / 452.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004522/0.25, allocations: 215.8 kB / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.25, allocations: 3.031 kB / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.25, allocations: 0 / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.25, allocations: 4.781 kB / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007888/0.2508, allocations: 0.549 MB / 453.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2508, allocations: 1.125 kB / 453.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.2511, allocations: 58.25 kB / 453.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.2511, allocations: 1.469 kB / 453.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.2511, allocations: 5.453 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.2511, allocations: 5.422 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2511, allocations: 3.984 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000586/0.2517, allocations: 363.7 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2518, allocations: 111.8 kB / 453.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.207e-05/0.2519, allocations: 13.25 kB / 453.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.252, allocations: 9.484 kB / 453.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.2521, allocations: 17.42 kB / 453.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.2521, allocations: 4.125 kB / 453.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.2523, allocations: 175.2 kB / 454 MB, free: 10.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2523, allocations: 1.375 kB / 454 MB, free: 10.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.2528, allocations: 93.88 kB / 454.1 MB, free: 10.68 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 (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.001042/0.2538, allocations: 0.9519 MB / 455 MB, free: 9.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003754/0.2542, allocations: 145.3 kB / 455.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2542, allocations: 0 / 455.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.2544, allocations: 72.88 kB / 455.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.2548, allocations: 67.44 kB / 455.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/0.258, allocations: 2.552 MB / 457.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.2583, allocations: 0.741 MB / 458.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.2584, allocations: 30.52 kB / 458.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2585, allocations: 73.19 kB / 458.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2585, allocations: 1.188 kB / 458.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02411/0.2827, allocations: 6.138 MB / 464.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.232, allocations: 7.938 kB / 464.8 MB, free: 2.875 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe 2>&1)