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.001284/0.001284, allocations: 108 kB / 15.6 MB, free: 132 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.001405/0.001405, allocations: 191 kB / 16.53 MB, free: 6.391 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.268/1.268, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05163/0.05163, allocations: 11.84 MB / 281.6 MB, free: 9.441 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.001412/0.001412, allocations: 75.48 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07179/0.07321, allocations: 49.22 MB / 391.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003816/0.07706, allocations: 2.718 MB / 393.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.07902, allocations: 1.504 MB / 395.4 MB, free: 364 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.07915, allocations: 4 kB / 395.4 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.07931, allocations: 35.64 kB / 395.4 MB, free: 324 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002922/0.07961, allocations: 115.1 kB / 395.5 MB, free: 208 kB / 286.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.0006302/0.08025, allocations: 319 kB / 395.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.08056, allocations: 310.5 kB / 396.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000165/0.08073, allocations: 81.14 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.08088, allocations: 107.6 kB / 396.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.08106, allocations: 131.4 kB / 396.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.0811, allocations: 20 kB / 396.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003316/0.08144, allocations: 223.6 kB / 396.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.605e-05/0.0815, allocations: 47.84 kB / 396.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.08162, allocations: 131.4 kB / 396.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004377/0.08206, allocations: 387.1 kB / 397.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.08207, allocations: 0 / 397.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.08208, allocations: 4 kB / 397.2 MB, free: 14.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.08209, allocations: 0 / 397.2 MB, free: 14.47 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007612/0.08286, allocations: 0.534 MB / 397.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.0829, allocations: 11.89 kB / 397.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.116e-05/0.08296, allocations: 54.73 kB / 397.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.08306, allocations: 24.66 kB / 397.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.0833, allocations: 247.5 kB / 398.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.08332, allocations: 16.38 kB / 398.1 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.08336, allocations: 20 kB / 398.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.08371, allocations: 218.6 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.08373, allocations: 0 / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.08375, allocations: 8 kB / 398.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.08377, allocations: 4 kB / 398.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.08403, allocations: 143.3 kB / 398.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.08526, allocations: 1.11 MB / 399.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.08555, allocations: 146.5 kB / 399.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.08568, allocations: 60.83 kB / 399.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000237/0.08592, allocations: 332.6 kB / 400.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.08595, allocations: 42.5 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.08596, allocations: 3.938 kB / 400.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.001574/0.08754, allocations: 0.671 MB / 400.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.08758, allocations: 51.41 kB / 400.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.08778, allocations: 215.2 kB / 401.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.08781, allocations: 25.7 kB / 401.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.0879, allocations: 144.3 kB / 401.3 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.5e-05/0.08796, allocations: 59.09 kB / 401.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-05/0.08803, allocations: 41.7 kB / 401.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.08815, allocations: 326.8 kB / 401.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.0883, allocations: 68.75 kB / 401.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.08846, allocations: 106 kB / 401.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.08875, allocations: 173.9 kB / 402.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.08876, allocations: 0 / 402.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003701/0.08913, allocations: 217.3 kB / 402.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.08916, allocations: 4 kB / 402.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.08918, allocations: 7.969 kB / 402.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.0892, allocations: 4 kB / 402.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.08942, allocations: 55.91 kB / 402.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.08944, allocations: 4 kB / 402.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.08955, allocations: 15.92 kB / 402.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.08958, allocations: 8 kB / 402.4 MB, free: 8.867 MB / 302.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.0001561/0.08974, allocations: 145.9 kB / 402.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.08979, allocations: 15.81 kB / 402.5 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.09021, allocations: 215.1 kB / 402.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.09022, allocations: 4 kB / 402.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.09023, allocations: 0 / 402.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.09024, allocations: 7.922 kB / 402.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006829/0.09093, allocations: 0.549 MB / 403.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.09094, allocations: 0 / 403.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002284/0.09118, allocations: 55.91 kB / 403.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.09119, allocations: 0 / 403.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.09122, allocations: 11.94 kB / 403.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.09122, allocations: 0 / 403.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.09123, allocations: 0 / 403.4 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005053/0.09174, allocations: 355.1 kB / 403.7 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.09187, allocations: 116.8 kB / 403.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.09191, allocations: 4 kB / 403.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.09205, allocations: 16 kB / 403.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.655e-05/0.09212, allocations: 11.97 kB / 403.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.09214, allocations: 8.062 kB / 403.9 MB, free: 7.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001491/0.09229, allocations: 167.1 kB / 404 MB, free: 7.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0923, allocations: 0 / 404 MB, free: 7.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.09266, allocations: 95.92 kB / 404.1 MB, free: 7.012 MB / 302.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.0009274/0.0936, allocations: 0.9534 MB / 405.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003631/0.09397, allocations: 155.8 kB / 405.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.09398, allocations: 0 / 405.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.09412, allocations: 79.84 kB / 405.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.09453, allocations: 60.89 kB / 405.4 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.09745, allocations: 2.555 MB / 407.9 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.09774, allocations: 0.7479 MB / 408.7 MB, free: 2.301 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001193/0.09786, allocations: 34.27 kB / 408.7 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.09797, allocations: 71.41 kB / 408.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.09798, allocations: 3.938 kB / 408.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.1221, allocations: 6.032 MB / 414.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.935/7.057, allocations: 15.94 kB / 414.8 MB, free: 12.14 MB / 318.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)