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.007877/0.007877, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001966/0.001966, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.378/1.378, 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.05902/0.05902, allocations: 11.85 MB / 281.8 MB, free: 9.203 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.002403/0.002403, allocations: 72.59 kB / 391.8 MB, free: 3.965 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2536, allocations: 49.22 MB / 441.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003458/0.2571, allocations: 2.717 MB / 443.8 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.2591, allocations: 1.503 MB / 445.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.2593, allocations: 8.219 kB / 445.3 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.2595, allocations: 32.05 kB / 445.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.2598, allocations: 109.1 kB / 445.4 MB, free: 1.078 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.0006926/0.2605, allocations: 326 kB / 445.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003343/0.2608, allocations: 317.1 kB / 446.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.261, allocations: 77.44 kB / 446.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.2612, allocations: 110.7 kB / 446.2 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.2614, allocations: 130.1 kB / 446.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.572e-05/0.2614, allocations: 20.19 kB / 446.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004013/0.2619, allocations: 219.5 kB / 446.6 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.769e-05/0.2619, allocations: 52.11 kB / 446.7 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.2621, allocations: 127.8 kB / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.2626, allocations: 388.5 kB / 447.2 MB, free: 328 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2626, allocations: 2.266 kB / 447.2 MB, free: 328 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2626, allocations: 0 / 447.2 MB, free: 328 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2626, allocations: 0 / 447.2 MB, free: 328 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.0008389/0.2635, allocations: 0.5471 MB / 447.7 MB, free: 15.83 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2635, allocations: 13.8 kB / 447.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.14e-05/0.2636, allocations: 54.11 kB / 447.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.2637, allocations: 26.73 kB / 447.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.2641, allocations: 260.9 kB / 448.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.2641, allocations: 11.69 kB / 448.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.2642, allocations: 24.8 kB / 448.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.2646, allocations: 218.6 kB / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2646, allocations: 0 / 448.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.2646, allocations: 9.281 kB / 448.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.2646, allocations: 5.5 kB / 448.3 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.2649, allocations: 141.7 kB / 448.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001499/0.2665, allocations: 1.111 MB / 449.6 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003095/0.2668, allocations: 137.4 kB / 449.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.2669, allocations: 56.3 kB / 449.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003093/0.2672, allocations: 335.7 kB / 450.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.2673, allocations: 39.72 kB / 450.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.2673, allocations: 0 / 450.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001718/0.269, allocations: 0.6582 MB / 450.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.269, allocations: 57.34 kB / 450.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.2693, allocations: 210 kB / 451 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.2693, allocations: 35.27 kB / 451.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2694, allocations: 141.4 kB / 451.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.599e-05/0.2695, allocations: 75.91 kB / 451.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.573e-05/0.2696, allocations: 42.27 kB / 451.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.2697, allocations: 327.8 kB / 451.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.2699, allocations: 66.5 kB / 451.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.27, allocations: 100.5 kB / 451.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.2703, allocations: 177.2 kB / 452 MB, free: 12.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2703, allocations: 5.375 kB / 452 MB, free: 12.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003879/0.2707, allocations: 205.6 kB / 452.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2708, allocations: 6.875 kB / 452.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.2708, allocations: 5.359 kB / 452.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.2708, allocations: 6.656 kB / 452.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.271, allocations: 59.34 kB / 452.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.2711, allocations: 7.062 kB / 452.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.2712, allocations: 12.52 kB / 452.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.2712, allocations: 10.69 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.0001813/0.2714, allocations: 137.5 kB / 452.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.903e-05/0.2714, allocations: 22.2 kB / 452.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004758/0.2719, allocations: 220.5 kB / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2719, allocations: 6.219 kB / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.272, allocations: 0 / 452.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.966e-06/0.272, allocations: 9.047 kB / 452.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008097/0.2728, allocations: 0.5377 MB / 453.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.2728, allocations: 0 / 453.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002407/0.273, allocations: 55.38 kB / 453.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.2731, allocations: 4 kB / 453.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2731, allocations: 14.69 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2731, allocations: 0 / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.2731, allocations: 1.438 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005563/0.2737, allocations: 354.5 kB / 453.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.2738, allocations: 113.2 kB / 453.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.2738, allocations: 13.25 kB / 453.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.274, allocations: 8.188 kB / 453.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.274, allocations: 18.84 kB / 453.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.274, allocations: 8.062 kB / 453.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001592/0.2742, allocations: 171.1 kB / 454 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2742, allocations: 0 / 454 MB, free: 10.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.2746, allocations: 94.48 kB / 454.1 MB, free: 10.69 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.001036/0.2757, allocations: 0.9556 MB / 455 MB, free: 9.875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000428/0.2761, allocations: 137.8 kB / 455.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.2761, allocations: 0 / 455.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.2763, allocations: 77.98 kB / 455.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.2767, allocations: 66.02 kB / 455.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.28, allocations: 2.551 MB / 457.8 MB, free: 7.762 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.2804, allocations: 0.7465 MB / 458.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.2806, allocations: 38.47 kB / 458.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001277/0.2807, allocations: 69.19 kB / 458.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2807, allocations: 0 / 458.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/0.3106, allocations: 6.138 MB / 464.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.332, allocations: 7.312 kB / 464.8 MB, free: 2.871 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 OpenHydraulics_OpenHydraulics_DevelopmentTests_WallFrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.WallFrictionTest.pipe 2>&1)