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.005433/0.005433, allocations: 105.6 kB / 15.74 MB, free: 6.047 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.001376/0.001377, allocations: 188.4 kB / 16.67 MB, free: 5.965 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.333/1.333, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05792/0.05792, allocations: 11.85 MB / 281.8 MB, free: 212 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.002306/0.002306, allocations: 74.38 kB / 391.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07547/0.07779, allocations: 49.24 MB / 441.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.WallFrictionTest): time 0.003502/0.08132, allocations: 2.712 MB / 443.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.08357, allocations: 1.497 MB / 445.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.08373, allocations: 4 kB / 445.3 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.08391, allocations: 31.66 kB / 445.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.08424, allocations: 111.2 kB / 445.4 MB, free: 14.2 MB / 334.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.0006814/0.08493, allocations: 321.8 kB / 445.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.08531, allocations: 322.4 kB / 446.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.0855, allocations: 85.36 kB / 446.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.08566, allocations: 107.6 kB / 446.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.08587, allocations: 127.5 kB / 446.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.057e-05/0.08591, allocations: 16 kB / 446.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003733/0.08629, allocations: 223.6 kB / 446.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.198e-05/0.08636, allocations: 51.83 kB / 446.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.0865, allocations: 131.3 kB / 446.8 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005632/0.08707, allocations: 382.7 kB / 447.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.08709, allocations: 0 / 447.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.0871, allocations: 0 / 447.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.08711, allocations: 0 / 447.2 MB, free: 12.46 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.000867/0.08798, allocations: 0.5529 MB / 447.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.08803, allocations: 15.83 kB / 447.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.0881, allocations: 58.73 kB / 447.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.08821, allocations: 28.8 kB / 447.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.08852, allocations: 251.5 kB / 448.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.08854, allocations: 8.375 kB / 448.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.519e-05/0.08859, allocations: 31.98 kB / 448.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/0.08898, allocations: 214.6 kB / 448.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.089, allocations: 0 / 448.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.08903, allocations: 8 kB / 448.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.08905, allocations: 8 kB / 448.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002793/0.08933, allocations: 143.3 kB / 448.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.09073, allocations: 1.103 MB / 449.6 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.09107, allocations: 138.6 kB / 449.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.0912, allocations: 60.83 kB / 449.8 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002736/0.09148, allocations: 332.6 kB / 450.1 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.09152, allocations: 34.56 kB / 450.1 MB, free: 9.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/0.09153, allocations: 4 kB / 450.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001706/0.09324, allocations: 0.6605 MB / 450.8 MB, free: 8.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.0933, allocations: 59.34 kB / 450.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.09354, allocations: 231 kB / 451.1 MB, free: 8.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.09358, allocations: 29.7 kB / 451.1 MB, free: 8.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.09369, allocations: 136.5 kB / 451.2 MB, free: 7.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.172e-05/0.09375, allocations: 59.44 kB / 451.3 MB, free: 7.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.057e-05/0.09383, allocations: 41.7 kB / 451.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.094, allocations: 330.8 kB / 451.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.09415, allocations: 68.77 kB / 451.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.09433, allocations: 103.7 kB / 451.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.09465, allocations: 177.8 kB / 452 MB, free: 7.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.09466, allocations: 0 / 452 MB, free: 7.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000425/0.09509, allocations: 209.4 kB / 452.2 MB, free: 6.934 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.09512, allocations: 8 kB / 452.2 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.09513, allocations: 3.938 kB / 452.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.09516, allocations: 4.047 kB / 452.2 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.0954, allocations: 63.89 kB / 452.3 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.425e-05/0.09543, allocations: 7.984 kB / 452.3 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.09554, allocations: 7.938 kB / 452.3 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.09557, allocations: 8 kB / 452.3 MB, free: 6.832 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.0001956/0.09577, allocations: 141.9 kB / 452.4 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.09583, allocations: 27.8 kB / 452.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.0963, allocations: 214.7 kB / 452.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.09631, allocations: 4 kB / 452.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.09632, allocations: 0 / 452.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.09633, allocations: 3.938 kB / 452.7 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007611/0.0971, allocations: 0.549 MB / 453.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.09711, allocations: 0 / 453.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.09736, allocations: 55.97 kB / 453.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.09737, allocations: 0 / 453.3 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.0974, allocations: 15.94 kB / 453.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.0974, allocations: 3.938 kB / 453.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.09741, allocations: 3.984 kB / 453.3 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005503/0.09796, allocations: 351.3 kB / 453.6 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.926e-05/0.09807, allocations: 113 kB / 453.8 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.09812, allocations: 11.88 kB / 453.8 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001342/0.09826, allocations: 8 kB / 453.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.09832, allocations: 15.97 kB / 453.8 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.09834, allocations: 4 kB / 453.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.09849, allocations: 171.2 kB / 454 MB, free: 5.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0985, allocations: 0 / 454 MB, free: 5.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003692/0.09887, allocations: 95.75 kB / 454.1 MB, free: 4.961 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.000993/0.09987, allocations: 0.9496 MB / 455 MB, free: 3.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.1002, allocations: 151.9 kB / 455.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1002, allocations: 0 / 455.2 MB, free: 3.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.1004, allocations: 71.91 kB / 455.2 MB, free: 3.766 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.1008, allocations: 64.89 kB / 455.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.104, allocations: 2.56 MB / 457.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.1044, allocations: 0.7441 MB / 458.6 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1045, allocations: 34.25 kB / 458.6 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.1046, allocations: 71.41 kB / 458.7 MB, free: 160 kB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1046, allocations: 0 / 458.7 MB, free: 160 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.1354, allocations: 6.132 MB / 464.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.128, allocations: 11.72 kB / 464.8 MB, free: 10.07 MB / 350.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)