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.001298/0.001298, allocations: 122.2 kB / 17.78 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 197.2 kB / 18.72 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.42 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.2213/0.2213, allocations: 46.11 MB / 344.3 MB, free: 11.47 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.002159/0.002159, allocations: 79.86 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3009, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.04201/0.3429, allocations: 39.18 MB / 0.5689 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.3667, allocations: 20.18 MB / 0.5886 GB, free: 6.211 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007309/0.3675, allocations: 19.88 kB / 0.5886 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.3687, allocations: 453.2 kB / 0.589 GB, free: 5.746 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01313/0.3818, allocations: 5.115 MB / 0.594 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00652/0.3884, allocations: 2.584 MB / 0.5965 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002661/0.3911, allocations: 1.95 MB / 0.5985 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007337/0.3918, allocations: 485.5 kB / 0.5989 GB, free: 11.59 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009355/0.4012, allocations: 4.148 MB / 0.603 GB, free: 7.391 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01152/0.4127, allocations: 5.42 MB / 0.6083 GB, free: 1.887 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.413, allocations: 68 kB / 0.6083 GB, free: 1.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01424/0.4272, allocations: 7.251 MB / 0.6154 GB, free: 10.56 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004878/0.4278, allocations: 271.3 kB / 0.6157 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007423/0.4285, allocations: 450 kB / 0.6161 GB, free: 9.855 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01165/0.4402, allocations: 4.992 MB / 0.621 GB, free: 4.852 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4402, allocations: 0 / 0.621 GB, free: 4.852 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4402, allocations: 0 / 0.621 GB, free: 4.852 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.4402, allocations: 0 / 0.621 GB, free: 4.852 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.004286/0.4445, allocations: 1.672 MB / 0.6226 GB, free: 3.125 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4446, allocations: 8.031 kB / 0.6226 GB, free: 3.117 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.4447, allocations: 126.7 kB / 0.6227 GB, free: 2.984 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.4462, allocations: 224.3 kB / 0.6229 GB, free: 2.766 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008825/0.4471, allocations: 0.5642 MB / 0.6235 GB, free: 2.16 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/0.4472, allocations: 113.2 kB / 0.6236 GB, free: 2.035 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.955e-05/0.4473, allocations: 59.94 kB / 0.6237 GB, free: 1.977 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.4493, allocations: 1.079 MB / 0.6247 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.4493, allocations: 4 kB / 0.6247 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-05/0.4494, allocations: 28 kB / 0.6247 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.18e-05/0.4494, allocations: 44.91 kB / 0.6248 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/0.4511, allocations: 0.8155 MB / 0.6256 GB, free: 15.9 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.005889/0.457, allocations: 5.566 MB / 0.631 GB, free: 9.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.4582, allocations: 0.5309 MB / 0.6315 GB, free: 9.41 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.4586, allocations: 206.5 kB / 0.6317 GB, free: 9.199 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1022/0.5608, allocations: 52.79 MB / 0.6833 GB, free: 13.75 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.84e-05/0.5609, allocations: 42.5 kB / 0.6833 GB, free: 13.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/0.5609, allocations: 4 kB / 0.6833 GB, free: 13.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.00648/0.5674, allocations: 2.154 MB / 0.6854 GB, free: 11.49 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.5676, allocations: 183.9 kB / 0.6856 GB, free: 11.27 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008613/0.5684, allocations: 0.6446 MB / 0.6862 GB, free: 10.61 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.5685, allocations: 37.64 kB / 0.6863 GB, free: 10.57 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.5688, allocations: 408.2 kB / 0.6867 GB, free: 10.16 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.569, allocations: 174.6 kB / 0.6868 GB, free: 9.992 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.5692, allocations: 154.6 kB / 0.687 GB, free: 9.836 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001892/0.5694, allocations: 386.8 kB / 0.6874 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003923/0.5698, allocations: 229.8 kB / 0.6876 GB, free: 9.223 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006811/0.5705, allocations: 0.5939 MB / 0.6881 GB, free: 8.457 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.5716, allocations: 0.8599 MB / 0.689 GB, free: 7.434 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5716, allocations: 0 / 0.689 GB, free: 7.434 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001505/0.5731, allocations: 0.9083 MB / 0.6899 GB, free: 6.516 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.5732, allocations: 8 kB / 0.6899 GB, free: 6.508 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.5732, allocations: 12 kB / 0.6899 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003041/0.5762, allocations: 268.5 kB / 0.6902 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.5774, allocations: 287.5 kB / 0.6904 GB, free: 5.949 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001995/0.5795, allocations: 2.114 MB / 0.6925 GB, free: 3.672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005734/0.58, allocations: 36.03 kB / 0.6925 GB, free: 3.637 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.028e-05/0.5801, allocations: 43.94 kB / 0.6926 GB, free: 3.594 MB / 0.545 GB 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.0004334/0.5806, allocations: 277.5 kB / 0.6928 GB, free: 3.312 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.5807, allocations: 75.53 kB / 0.6929 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/0.5832, allocations: 2.014 MB / 0.6949 GB, free: 1.199 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/0.5832, allocations: 23.95 kB / 0.6949 GB, free: 1.176 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.5832, allocations: 8 kB / 0.6949 GB, free: 1.168 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.5832, allocations: 8 kB / 0.6949 GB, free: 1.16 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003612/0.5868, allocations: 2.995 MB / 0.6978 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.5869, allocations: 4 kB / 0.6978 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009267/0.5878, allocations: 183.8 kB / 0.698 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001676/0.5895, allocations: 303.9 kB / 0.6983 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.5895, allocations: 16 kB / 0.6983 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/0.5914, allocations: 2.168 MB / 0.7004 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5914, allocations: 0 / 0.7004 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002339/0.5937, allocations: 1.953 MB / 0.7023 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000321/0.5941, allocations: 236.2 kB / 0.7026 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.5942, allocations: 27.84 kB / 0.7026 GB, free: 9.004 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.5946, allocations: 12 kB / 0.7026 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.5947, allocations: 32.39 kB / 0.7026 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.5947, allocations: 19.98 kB / 0.7027 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007682/0.5955, allocations: 0.5694 MB / 0.7032 GB, free: 8.379 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.5955, allocations: 4 kB / 0.7032 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003022/0.5985, allocations: 1.104 MB / 0.7043 GB, free: 7.27 MB / 0.5606 GB 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.006935/0.6055, allocations: 3.61 MB / 0.7078 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001997/0.6075, allocations: 0.9285 MB / 0.7087 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6075, allocations: 0 / 0.7087 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.6088, allocations: 0.6358 MB / 0.7093 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/0.6109, allocations: 405.4 kB / 0.7097 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/0.6224, allocations: 8.291 MB / 0.7178 GB, free: 8.93 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007174/0.6232, allocations: 1.093 MB / 0.7189 GB, free: 7.805 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.0007787/0.624, allocations: 342.2 kB / 0.7192 GB, free: 7.465 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004442/0.6244, allocations: 383.3 kB / 0.7196 GB, free: 7.09 MB / 0.5763 GB Notification: Performance of SimCode: time 6.21e-07/0.6244, allocations: 0 / 0.7196 GB, free: 7.09 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3096/0.934, allocations: 55.69 MB / 0.774 GB, free: 153.2 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.5, allocations: 10.88 kB / 0.774 GB, free: 153.2 MB / 0.5763 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)