Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001391/0.001391, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2318/0.2318, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002417/0.002418, allocations: 82.69 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1251, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater): time 0.01937/0.1445, allocations: 16.53 MB / 496.7 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007866/0.1524, allocations: 5.474 MB / 0.4905 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007745/0.1533, allocations: 19.88 kB / 0.4905 GB, free: 15.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.1543, allocations: 310 kB / 0.4908 GB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001891/0.1562, allocations: 0.8316 MB / 0.4916 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002695/0.1589, allocations: 1.002 MB / 0.4926 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00221/0.1612, allocations: 1.782 MB / 0.4943 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006692/0.1618, allocations: 461.3 kB / 0.4947 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.1631, allocations: 0.7436 MB / 0.4955 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008968/0.164, allocations: 0.6149 MB / 0.4961 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.1642, allocations: 60 kB / 0.4961 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008972/0.1651, allocations: 363.5 kB / 0.4965 GB, free: 8.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.1654, allocations: 263.3 kB / 0.4967 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004179/0.1658, allocations: 394.2 kB / 0.4971 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.1672, allocations: 1.133 MB / 0.4982 GB, free: 7.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1672, allocations: 3.938 kB / 0.4982 GB, free: 7.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1672, allocations: 0 / 0.4982 GB, free: 7.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.1672, allocations: 0 / 0.4982 GB, free: 7.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.001917/0.1691, allocations: 1.048 MB / 0.4992 GB, free: 5.973 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1692, allocations: 12.03 kB / 0.4992 GB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000127/0.1693, allocations: 102.7 kB / 0.4993 GB, free: 5.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.1696, allocations: 88.08 kB / 0.4994 GB, free: 5.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007782/0.1704, allocations: 0.4976 MB / 0.4999 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.1706, allocations: 108.9 kB / 0.5 GB, free: 5.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.101e-05/0.1707, allocations: 52.12 kB / 0.5001 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.1719, allocations: 0.8449 MB / 0.5009 GB, free: 4.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.172, allocations: 7.938 kB / 0.5009 GB, free: 4.129 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/0.1721, allocations: 20 kB / 0.5009 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-05/0.1721, allocations: 36.98 kB / 0.5009 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.1732, allocations: 0.6399 MB / 0.5016 GB, free: 3.43 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2091/0.3823, allocations: 4.347 MB / 0.5058 GB, free: 41.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007431/0.3831, allocations: 347.7 kB / 0.5062 GB, free: 41.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.3834, allocations: 174.8 kB / 0.5063 GB, free: 41.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001773/0.3852, allocations: 1.702 MB / 0.508 GB, free: 39.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.3852, allocations: 44.55 kB / 0.508 GB, free: 39.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 1.864e-06/0.3853, allocations: 0.9062 kB / 0.508 GB, free: 39.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=37): time 0.003573/0.3888, allocations: 1.393 MB / 0.5094 GB, free: 39.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.3889, allocations: 132.8 kB / 0.5095 GB, free: 39.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007495/0.3897, allocations: 0.6288 MB / 0.5101 GB, free: 38.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.3897, allocations: 33.45 kB / 0.5102 GB, free: 38.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.3899, allocations: 399.6 kB / 0.5105 GB, free: 38.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.25e-05/0.39, allocations: 133.4 kB / 0.5107 GB, free: 38.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.3902, allocations: 145.1 kB / 0.5108 GB, free: 38.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3904, allocations: 376.3 kB / 0.5112 GB, free: 37.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.3907, allocations: 187 kB / 0.5113 GB, free: 37.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000455/0.3911, allocations: 0.5586 MB / 0.5119 GB, free: 37.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.3919, allocations: 0.788 MB / 0.5127 GB, free: 36.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3919, allocations: 4 kB / 0.5127 GB, free: 36.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001337/0.3933, allocations: 0.8316 MB / 0.5135 GB, free: 36.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3933, allocations: 12.97 kB / 0.5135 GB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.3933, allocations: 12.44 kB / 0.5135 GB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004396/0.3938, allocations: 101.6 kB / 0.5136 GB, free: 36.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/0.3944, allocations: 181.1 kB / 0.5138 GB, free: 36.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005202/0.395, allocations: 0.6633 MB / 0.5144 GB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.3955, allocations: 28.16 kB / 0.5144 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.61e-05/0.3956, allocations: 42.52 kB / 0.5145 GB, free: 35.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003479/0.396, allocations: 260.6 kB / 0.5147 GB, free: 35.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3961, allocations: 79.56 kB / 0.5148 GB, free: 35.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008859/0.397, allocations: 0.5069 MB / 0.5153 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.397, allocations: 3.031 kB / 0.5153 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.397, allocations: 2.906 kB / 0.5153 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.397, allocations: 8.984 kB / 0.5153 GB, free: 35.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001903/0.3989, allocations: 1.212 MB / 0.5165 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.3989, allocations: 6.672 kB / 0.5165 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.3993, allocations: 75.03 kB / 0.5166 GB, free: 34.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.3995, allocations: 40.39 kB / 0.5166 GB, free: 34.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.3996, allocations: 15.44 kB / 0.5166 GB, free: 34.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003019/0.3999, allocations: 0.5595 MB / 0.5172 GB, free: 33.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.3999, allocations: 7.344 kB / 0.5172 GB, free: 33.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.4009, allocations: 0.722 MB / 0.5179 GB, free: 33.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/0.4012, allocations: 190.5 kB / 0.5181 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.846e-05/0.4013, allocations: 15.47 kB / 0.5181 GB, free: 33.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.4017, allocations: 14.31 kB / 0.5181 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.4018, allocations: 34.05 kB / 0.5181 GB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.4018, allocations: 21.97 kB / 0.5181 GB, free: 33.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006321/0.4024, allocations: 474.7 kB / 0.5186 GB, free: 33.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4024, allocations: 0 / 0.5186 GB, free: 33.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001008/0.4035, allocations: 208.5 kB / 0.5188 GB, free: 33.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 1 (volume.medium.T) * 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 (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001604/0.4051, allocations: 1.407 MB / 0.5202 GB, free: 32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.4064, allocations: 0.5207 MB / 0.5207 GB, free: 31.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.4064, allocations: 1.062 kB / 0.5207 GB, free: 31.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.4068, allocations: 185.2 kB / 0.5209 GB, free: 31.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/0.4086, allocations: 361.7 kB / 0.5212 GB, free: 31.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008978/0.4176, allocations: 6.562 MB / 0.5276 GB, free: 27.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.4183, allocations: 0.9381 MB / 0.5285 GB, free: 26.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000984/0.4193, allocations: 210.8 kB / 0.5287 GB, free: 26.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.4196, allocations: 239 kB / 0.529 GB, free: 26.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4196, allocations: 7.938 kB / 0.529 GB, free: 26.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0499/0.4695, allocations: 20.38 MB / 0.5489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.29, allocations: 12.27 kB / 0.5489 GB, free: 10.24 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater.pipe 2>&1)