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.WaterIF97_pT.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.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.574/1.574, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2537/0.2537, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002904/0.002904, allocations: 86.78 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1607, allocations: 62.44 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.3324/0.4931, allocations: 39.19 MB / 0.5072 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.5127, allocations: 20.16 MB / 0.5269 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007077/0.5135, allocations: 18.91 kB / 0.5269 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.5146, allocations: 445.8 kB / 0.5274 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.5281, allocations: 5.124 MB / 0.5324 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007428/0.5355, allocations: 2.565 MB / 0.5349 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002486/0.538, allocations: 1.966 MB / 0.5368 GB, free: 7.398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007057/0.5387, allocations: 481.8 kB / 0.5372 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009038/0.5478, allocations: 4.149 MB / 0.5413 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0104/0.5582, allocations: 5.431 MB / 0.5466 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002472/0.5585, allocations: 66 kB / 0.5467 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01498/0.5735, allocations: 7.085 MB / 0.5536 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004937/0.574, allocations: 275.2 kB / 0.5538 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007569/0.5748, allocations: 446 kB / 0.5543 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.5868, allocations: 4.978 MB / 0.5591 GB, free: 6.738 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.5869, allocations: 0 / 0.5591 GB, free: 6.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5869, allocations: 4 kB / 0.5591 GB, free: 6.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.228e-05/0.5869, allocations: 0 / 0.5591 GB, free: 6.734 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004346/0.5913, allocations: 1.626 MB / 0.5607 GB, free: 5.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.5913, allocations: 12.03 kB / 0.5607 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.5915, allocations: 114.7 kB / 0.5608 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.593, allocations: 215.8 kB / 0.5611 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008821/0.5939, allocations: 0.5403 MB / 0.5616 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.5941, allocations: 113.4 kB / 0.5617 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.94e-05/0.5942, allocations: 63.94 kB / 0.5617 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.5961, allocations: 1.071 MB / 0.5628 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.5962, allocations: 7.938 kB / 0.5628 GB, free: 2.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-05/0.5963, allocations: 27.98 kB / 0.5628 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-05/0.5964, allocations: 45.84 kB / 0.5629 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.5981, allocations: 0.8193 MB / 0.5637 GB, free: 1.883 MB / 398.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.00661/0.6047, allocations: 5.575 MB / 0.5691 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.606, allocations: 0.5308 MB / 0.5696 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.6064, allocations: 222.4 kB / 0.5698 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1098/0.7162, allocations: 52.58 MB / 0.6212 GB, free: 15.94 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/0.7163, allocations: 38.56 kB / 0.6212 GB, free: 15.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=39): time 2.374e-06/0.7163, allocations: 0 / 0.6212 GB, free: 15.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=44): time 0.00658/0.7229, allocations: 2.129 MB / 0.6233 GB, free: 13.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.7231, allocations: 199.7 kB / 0.6235 GB, free: 13.46 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008592/0.7239, allocations: 0.6406 MB / 0.6241 GB, free: 12.82 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.724, allocations: 29.7 kB / 0.6242 GB, free: 12.79 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.7243, allocations: 403.3 kB / 0.6245 GB, free: 12.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.7245, allocations: 165.7 kB / 0.6247 GB, free: 12.22 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.7248, allocations: 154.5 kB / 0.6248 GB, free: 12.06 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.725, allocations: 378.8 kB / 0.6252 GB, free: 11.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.7254, allocations: 229.9 kB / 0.6254 GB, free: 11.46 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/0.7261, allocations: 0.59 MB / 0.626 GB, free: 10.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.7274, allocations: 0.8675 MB / 0.6268 GB, free: 9.664 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.7274, allocations: 7.938 kB / 0.6269 GB, free: 9.656 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001748/0.7291, allocations: 0.9038 MB / 0.6277 GB, free: 8.742 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/0.7292, allocations: 12 kB / 0.6277 GB, free: 8.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.7292, allocations: 12 kB / 0.6278 GB, free: 8.719 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003373/0.7326, allocations: 272.5 kB / 0.628 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.7339, allocations: 283.9 kB / 0.6283 GB, free: 8.172 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.7362, allocations: 2.117 MB / 0.6304 GB, free: 5.891 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007262/0.7369, allocations: 31.98 kB / 0.6304 GB, free: 5.859 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.278e-05/0.737, allocations: 43.98 kB / 0.6304 GB, free: 5.816 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004725/0.7375, allocations: 269.5 kB / 0.6307 GB, free: 5.543 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.7377, allocations: 71.16 kB / 0.6308 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002484/0.7402, allocations: 2.014 MB / 0.6327 GB, free: 3.438 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.869e-05/0.7402, allocations: 27.91 kB / 0.6327 GB, free: 3.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.7402, allocations: 0 / 0.6327 GB, free: 3.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.7402, allocations: 3.984 kB / 0.6328 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003732/0.744, allocations: 3.002 MB / 0.6357 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.744, allocations: 0 / 0.6357 GB, free: 340 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009685/0.745, allocations: 183.8 kB / 0.6359 GB, free: 152 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001759/0.7467, allocations: 303.9 kB / 0.6361 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.7468, allocations: 11.94 kB / 0.6362 GB, free: 15.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.7488, allocations: 2.184 MB / 0.6383 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7488, allocations: 0 / 0.6383 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.7511, allocations: 1.94 MB / 0.6402 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/0.7515, allocations: 231.6 kB / 0.6404 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.7516, allocations: 31.69 kB / 0.6404 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.752, allocations: 16 kB / 0.6405 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.003e-05/0.7521, allocations: 32.39 kB / 0.6405 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.7522, allocations: 20.05 kB / 0.6405 GB, free: 11.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007927/0.753, allocations: 0.5693 MB / 0.6411 GB, free: 10.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.753, allocations: 0 / 0.6411 GB, free: 10.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003034/0.756, allocations: 1.093 MB / 0.6421 GB, free: 9.523 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007316/0.7634, allocations: 3.597 MB / 0.6456 GB, free: 5.902 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002615/0.766, allocations: 0.9988 MB / 0.6466 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.766, allocations: 4 kB / 0.6466 GB, free: 4.898 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.7673, allocations: 0.6477 MB / 0.6473 GB, free: 4.254 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.7696, allocations: 400 kB / 0.6476 GB, free: 3.883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01342/0.783, allocations: 8.581 MB / 0.656 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007527/0.7838, allocations: 1.097 MB / 0.6571 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009724/0.7848, allocations: 338.3 kB / 0.6574 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004984/0.7853, allocations: 379.3 kB / 0.6578 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of SimCode: time 7.21e-07/0.7853, allocations: 0 / 0.6578 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/0.8982, allocations: 55.52 MB / 0.712 GB, free: 1.695 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.3/15.2, allocations: 5.5 kB / 0.712 GB, free: 1.691 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_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_WaterIF97_pT.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)