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.WaterIF97OnePhase_ph.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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001352, allocations: 103.9 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.001294/0.001294, allocations: 210.4 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.472/1.472, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2533/0.2533, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.002855/0.002855, allocations: 76.64 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1293, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.3034/0.4328, allocations: 39.18 MB / 0.5072 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02644/0.4593, allocations: 20.16 MB / 0.5269 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.4607, allocations: 23.72 kB / 0.5269 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.4624, allocations: 441.7 kB / 0.5274 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01972/0.4821, allocations: 5.128 MB / 0.5324 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009365/0.4915, allocations: 2.57 MB / 0.5349 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002843/0.4943, allocations: 1.999 MB / 0.5368 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008647/0.4952, allocations: 0.4885 MB / 0.5373 GB, free: 7.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01087/0.5061, allocations: 4.167 MB / 0.5414 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01168/0.5178, allocations: 5.44 MB / 0.5467 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003413/0.5182, allocations: 71.47 kB / 0.5468 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02169/0.5399, allocations: 7.23 MB / 0.5538 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007263/0.5407, allocations: 291.1 kB / 0.5541 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009529/0.5417, allocations: 458 kB / 0.5545 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01449/0.5562, allocations: 5.122 MB / 0.5595 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.5562, allocations: 0 / 0.5595 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5562, allocations: 0 / 0.5595 GB, free: 6.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.5562, allocations: 0 / 0.5595 GB, free: 6.367 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.004844/0.5611, allocations: 1.671 MB / 0.5612 GB, free: 4.648 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.5612, allocations: 8.031 kB / 0.5612 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.5613, allocations: 114.7 kB / 0.5613 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002182/0.5635, allocations: 307.6 kB / 0.5616 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009872/0.5645, allocations: 0.556 MB / 0.5621 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.5647, allocations: 117.4 kB / 0.5622 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001035/0.5648, allocations: 63.88 kB / 0.5623 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/0.568, allocations: 1.158 MB / 0.5634 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.5681, allocations: 4 kB / 0.5634 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.814e-05/0.5682, allocations: 32 kB / 0.5635 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.757e-05/0.5682, allocations: 49.22 kB / 0.5635 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001836/0.5701, allocations: 0.8401 MB / 0.5643 GB, free: 1.262 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.008205/0.5783, allocations: 5.501 MB / 0.5697 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.5797, allocations: 0.5845 MB / 0.5703 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.5801, allocations: 225.6 kB / 0.5705 GB, free: 10.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1128/0.6928, allocations: 51.32 MB / 0.6206 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.425e-05/0.6929, allocations: 43.06 kB / 0.6206 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.083e-06/0.6929, allocations: 0 / 0.6206 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.006327/0.6993, allocations: 1.923 MB / 0.6225 GB, free: 14.86 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.6995, allocations: 170.2 kB / 0.6227 GB, free: 14.65 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.7005, allocations: 0.6171 MB / 0.6233 GB, free: 14.03 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 8.569e-05/0.7006, allocations: 37.7 kB / 0.6233 GB, free: 13.99 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003848/0.701, allocations: 399.2 kB / 0.6237 GB, free: 13.59 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.7012, allocations: 169.7 kB / 0.6239 GB, free: 13.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.7015, allocations: 150.5 kB / 0.624 GB, free: 13.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002127/0.7017, allocations: 382.8 kB / 0.6244 GB, free: 12.89 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/0.7022, allocations: 225.9 kB / 0.6246 GB, free: 12.67 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007702/0.7029, allocations: 0.5678 MB / 0.6251 GB, free: 11.94 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.7042, allocations: 0.8407 MB / 0.626 GB, free: 10.95 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.7042, allocations: 4 kB / 0.626 GB, free: 10.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001701/0.7059, allocations: 0.8675 MB / 0.6268 GB, free: 10.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.706, allocations: 12 kB / 0.6268 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.706, allocations: 8 kB / 0.6268 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000328/0.7063, allocations: 60.83 kB / 0.6269 GB, free: 9.984 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.7076, allocations: 287.5 kB / 0.6272 GB, free: 9.703 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.7098, allocations: 2.076 MB / 0.6292 GB, free: 7.469 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000604/0.7104, allocations: 35.94 kB / 0.6292 GB, free: 7.434 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.7105, allocations: 40 kB / 0.6293 GB, free: 7.395 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004898/0.711, allocations: 277.6 kB / 0.6295 GB, free: 7.113 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.7112, allocations: 71.16 kB / 0.6296 GB, free: 7.043 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002945/0.7142, allocations: 2.216 MB / 0.6318 GB, free: 4.812 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.482e-05/0.7142, allocations: 31.89 kB / 0.6318 GB, free: 4.781 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.7142, allocations: 3.938 kB / 0.6318 GB, free: 4.777 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.7142, allocations: 8.016 kB / 0.6318 GB, free: 4.77 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004461/0.7187, allocations: 3.288 MB / 0.635 GB, free: 1.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.7187, allocations: 3.938 kB / 0.635 GB, free: 1.406 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009805/0.7197, allocations: 191.8 kB / 0.6352 GB, free: 1.219 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003739/0.7201, allocations: 84.78 kB / 0.6353 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-05/0.7202, allocations: 12 kB / 0.6353 GB, free: 1.121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.7221, allocations: 2.09 MB / 0.6373 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.7222, allocations: 0 / 0.6373 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002882/0.725, allocations: 1.986 MB / 0.6393 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004813/0.7255, allocations: 243.4 kB / 0.6395 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.7257, allocations: 31.77 kB / 0.6395 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005793/0.7263, allocations: 35.97 kB / 0.6396 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.7264, allocations: 32.45 kB / 0.6396 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.7265, allocations: 23.98 kB / 0.6396 GB, free: 12.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008691/0.7274, allocations: 0.5146 MB / 0.6401 GB, free: 11.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.655e-06/0.7274, allocations: 0 / 0.6401 GB, free: 11.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003646/0.731, allocations: 1.089 MB / 0.6412 GB, free: 10.87 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008157/0.7392, allocations: 3.662 MB / 0.6448 GB, free: 7.195 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.742, allocations: 1.022 MB / 0.6458 GB, free: 6.172 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.173e-06/0.742, allocations: 4.062 kB / 0.6458 GB, free: 6.168 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.7434, allocations: 0.6754 MB / 0.6464 GB, free: 5.492 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.7457, allocations: 387.6 kB / 0.6468 GB, free: 5.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.7599, allocations: 8.242 MB / 0.6548 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.761, allocations: 1.113 MB / 0.6559 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001171/0.7622, allocations: 457 kB / 0.6564 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007213/0.7629, allocations: 395.3 kB / 0.6567 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of SimCode: time 1.803e-06/0.7629, allocations: 0 / 0.6567 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/0.8754, allocations: 56.32 MB / 0.7117 GB, free: 2.445 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.19/15.07, allocations: 8.156 kB / 0.7117 GB, free: 2.438 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_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_WaterIF97OnePhase_ph.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)