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.00129/0.00129, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 247 MB, free: 10.45 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.223/0.223, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.002316/0.002316, allocations: 83.86 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3334, allocations: 62.44 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.04505/0.3785, allocations: 39.18 MB / 0.5689 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02436/0.4029, allocations: 20.18 MB / 0.5886 GB, free: 6.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009574/0.4039, allocations: 23.81 kB / 0.5886 GB, free: 6.137 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001347/0.4053, allocations: 441.3 kB / 0.589 GB, free: 5.703 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01542/0.4208, allocations: 5.126 MB / 0.594 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007916/0.4287, allocations: 2.577 MB / 0.5965 GB, free: 14 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003424/0.4321, allocations: 1.993 MB / 0.5985 GB, free: 12 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007646/0.4329, allocations: 0.4936 MB / 0.599 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/0.4443, allocations: 4.164 MB / 0.603 GB, free: 7.27 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01218/0.4565, allocations: 5.432 MB / 0.6083 GB, free: 1.754 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.4569, allocations: 72 kB / 0.6084 GB, free: 1.684 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01585/0.4728, allocations: 7.395 MB / 0.6156 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005597/0.4734, allocations: 283.2 kB / 0.6159 GB, free: 10 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007364/0.4741, allocations: 458 kB / 0.6163 GB, free: 9.551 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01544/0.4896, allocations: 5.14 MB / 0.6214 GB, free: 4.402 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.4896, allocations: 4 kB / 0.6214 GB, free: 4.398 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4897, allocations: 0 / 0.6214 GB, free: 4.398 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.4897, allocations: 0 / 0.6214 GB, free: 4.398 MB / 478.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.004989/0.4947, allocations: 1.718 MB / 0.623 GB, free: 2.625 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.4947, allocations: 8.031 kB / 0.6231 GB, free: 2.617 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001518/0.4949, allocations: 114.7 kB / 0.6232 GB, free: 2.496 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002165/0.4971, allocations: 296.2 kB / 0.6234 GB, free: 2.207 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.4981, allocations: 0.5954 MB / 0.624 GB, free: 1.57 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.4982, allocations: 109.3 kB / 0.6241 GB, free: 1.449 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.972e-05/0.4983, allocations: 63.92 kB / 0.6242 GB, free: 1.387 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002423/0.5008, allocations: 1.162 MB / 0.6253 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.5008, allocations: 0 / 0.6253 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.08e-05/0.5009, allocations: 39.92 kB / 0.6254 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.207e-05/0.501, allocations: 45.23 kB / 0.6254 GB, free: 44 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001731/0.5027, allocations: 0.8479 MB / 0.6262 GB, free: 15.19 MB / 494.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.006869/0.5096, allocations: 5.487 MB / 0.6316 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.511, allocations: 0.5975 MB / 0.6322 GB, free: 8.715 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000391/0.5114, allocations: 225.6 kB / 0.6324 GB, free: 8.488 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1051/0.6165, allocations: 51.54 MB / 0.6827 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.695e-05/0.6166, allocations: 38.56 kB / 0.6828 GB, free: 14.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.615e-06/0.6166, allocations: 0 / 0.6828 GB, free: 14.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005663/0.6222, allocations: 1.935 MB / 0.6846 GB, free: 12.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.6224, allocations: 166.2 kB / 0.6848 GB, free: 12.36 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008477/0.6232, allocations: 0.6173 MB / 0.6854 GB, free: 11.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.408e-05/0.6233, allocations: 37.7 kB / 0.6854 GB, free: 11.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003302/0.6237, allocations: 408.2 kB / 0.6858 GB, free: 11.28 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.6238, allocations: 174.5 kB / 0.686 GB, free: 11.11 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.6241, allocations: 154.6 kB / 0.6861 GB, free: 10.95 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001906/0.6243, allocations: 378.8 kB / 0.6865 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/0.6247, allocations: 229.8 kB / 0.6867 GB, free: 10.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006954/0.6254, allocations: 0.5718 MB / 0.6873 GB, free: 9.613 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.6265, allocations: 0.8368 MB / 0.6881 GB, free: 8.625 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.6266, allocations: 4 kB / 0.6881 GB, free: 8.621 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001536/0.6281, allocations: 0.8718 MB / 0.689 GB, free: 7.738 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.6281, allocations: 8 kB / 0.689 GB, free: 7.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.6282, allocations: 16.16 kB / 0.689 GB, free: 7.715 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.6285, allocations: 64.77 kB / 0.689 GB, free: 7.648 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.6297, allocations: 283.5 kB / 0.6893 GB, free: 7.371 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001796/0.6315, allocations: 2.072 MB / 0.6913 GB, free: 5.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000477/0.632, allocations: 31.98 kB / 0.6914 GB, free: 5.109 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.632, allocations: 43.98 kB / 0.6914 GB, free: 5.066 MB / 0.545 GB 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.000412/0.6325, allocations: 277.4 kB / 0.6917 GB, free: 4.785 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.6326, allocations: 75.53 kB / 0.6917 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002763/0.6354, allocations: 2.213 MB / 0.6939 GB, free: 2.484 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-05/0.6355, allocations: 35.89 kB / 0.6939 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.6355, allocations: 0 / 0.6939 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.6355, allocations: 0 / 0.6939 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.6395, allocations: 3.288 MB / 0.6972 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/0.6395, allocations: 8.031 kB / 0.6972 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009221/0.6404, allocations: 187.8 kB / 0.6973 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003477/0.6408, allocations: 88.73 kB / 0.6974 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.692e-05/0.6408, allocations: 12 kB / 0.6974 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/0.6425, allocations: 2.098 MB / 0.6995 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.6426, allocations: 0 / 0.6995 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002517/0.6451, allocations: 1.991 MB / 0.7014 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004094/0.6455, allocations: 248.1 kB / 0.7017 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.6457, allocations: 31.78 kB / 0.7017 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005633/0.6462, allocations: 31.97 kB / 0.7017 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.6464, allocations: 32.39 kB / 0.7018 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.178e-05/0.6464, allocations: 23.92 kB / 0.7018 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008295/0.6473, allocations: 0.5146 MB / 0.7023 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6473, allocations: 0 / 0.7023 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003913/0.6512, allocations: 1.104 MB / 0.7034 GB, free: 8.52 MB / 0.5606 GB 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.00878/0.66, allocations: 3.669 MB / 0.7069 GB, free: 4.828 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002386/0.6624, allocations: 0.9308 MB / 0.7079 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6624, allocations: 0 / 0.7079 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.6639, allocations: 0.6805 MB / 0.7085 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.6662, allocations: 397.8 kB / 0.7089 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.6797, allocations: 7.991 MB / 0.7167 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.6807, allocations: 1.113 MB / 0.7178 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001014/0.6818, allocations: 446.1 kB / 0.7182 GB, free: 8.867 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000538/0.6823, allocations: 399.3 kB / 0.7186 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of SimCode: time 1.072e-06/0.6823, allocations: 0 / 0.7186 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3451/1.027, allocations: 56.52 MB / 0.7738 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.49, allocations: 9.359 kB / 0.7738 GB, free: 153.1 MB / 0.5762 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)