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.001358/0.001362, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001544/0.001544, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.4 MB / 247 MB, free: 10.41 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.2167/0.2167, allocations: 46.13 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.002163/0.002163, allocations: 79.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2937, allocations: 62.44 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.04161/0.3353, allocations: 39.18 MB / 0.5689 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02437/0.3598, allocations: 20.18 MB / 0.5886 GB, free: 6.191 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007984/0.3606, allocations: 19.88 kB / 0.5886 GB, free: 6.172 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.3618, allocations: 449.3 kB / 0.589 GB, free: 5.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01299/0.3749, allocations: 5.122 MB / 0.594 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00637/0.3812, allocations: 2.569 MB / 0.5965 GB, free: 14.04 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.3838, allocations: 1.954 MB / 0.5984 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006889/0.3845, allocations: 493.5 kB / 0.5989 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009377/0.3939, allocations: 4.144 MB / 0.603 GB, free: 7.379 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01176/0.4057, allocations: 5.424 MB / 0.6083 GB, free: 1.871 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.406, allocations: 64 kB / 0.6083 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0142/0.4202, allocations: 7.255 MB / 0.6154 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004571/0.4207, allocations: 271.3 kB / 0.6157 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006919/0.4214, allocations: 442 kB / 0.6161 GB, free: 9.848 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.432, allocations: 4.999 MB / 0.621 GB, free: 4.836 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.432, allocations: 0 / 0.621 GB, free: 4.836 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.432, allocations: 0 / 0.621 GB, free: 4.836 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.432, allocations: 0 / 0.621 GB, free: 4.836 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.003931/0.436, allocations: 1.676 MB / 0.6226 GB, free: 3.105 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.436, allocations: 8.031 kB / 0.6226 GB, free: 3.098 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.4362, allocations: 114.7 kB / 0.6227 GB, free: 2.977 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.4376, allocations: 224.3 kB / 0.6229 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008666/0.4385, allocations: 0.5681 MB / 0.6235 GB, free: 2.148 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.4386, allocations: 113.3 kB / 0.6236 GB, free: 2.023 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.4387, allocations: 67.92 kB / 0.6237 GB, free: 1.957 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/0.4406, allocations: 1.071 MB / 0.6247 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.4407, allocations: 4 kB / 0.6247 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.538e-05/0.4408, allocations: 24 kB / 0.6247 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.357e-05/0.4408, allocations: 48.92 kB / 0.6248 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.4425, allocations: 0.8194 MB / 0.6256 GB, free: 15.88 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.006071/0.4486, allocations: 5.551 MB / 0.631 GB, free: 9.969 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.4498, allocations: 0.5517 MB / 0.6315 GB, free: 9.395 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003437/0.4502, allocations: 210.5 kB / 0.6317 GB, free: 9.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1034/0.5537, allocations: 52.79 MB / 0.6833 GB, free: 13.74 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.5537, allocations: 38.5 kB / 0.6833 GB, free: 13.69 MB / 0.545 GB Notification: Performance of pre-optimization done (n=39): time 2.375e-06/0.5538, allocations: 0 / 0.6833 GB, free: 13.69 MB / 0.545 GB Notification: Performance of matching and sorting (n=44): time 0.006452/0.5602, allocations: 2.158 MB / 0.6854 GB, free: 11.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.5604, allocations: 183.9 kB / 0.6856 GB, free: 11.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008332/0.5612, allocations: 0.6486 MB / 0.6863 GB, free: 10.59 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/0.5613, allocations: 37.7 kB / 0.6863 GB, free: 10.55 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.5616, allocations: 412.2 kB / 0.6867 GB, free: 10.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.5617, allocations: 166.6 kB / 0.6868 GB, free: 9.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.562, allocations: 158.6 kB / 0.687 GB, free: 9.82 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001993/0.5622, allocations: 382.8 kB / 0.6874 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.5626, allocations: 233.8 kB / 0.6876 GB, free: 9.207 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007349/0.5633, allocations: 0.59 MB / 0.6882 GB, free: 8.445 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.5645, allocations: 0.8638 MB / 0.689 GB, free: 7.418 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5645, allocations: 4 kB / 0.689 GB, free: 7.414 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00149/0.566, allocations: 0.9039 MB / 0.6899 GB, free: 6.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.566, allocations: 8 kB / 0.6899 GB, free: 6.492 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.5661, allocations: 16 kB / 0.6899 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/0.5691, allocations: 269 kB / 0.6902 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.5703, allocations: 287.5 kB / 0.6904 GB, free: 5.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.5724, allocations: 2.11 MB / 0.6925 GB, free: 3.656 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006248/0.573, allocations: 39.92 kB / 0.6925 GB, free: 3.617 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.866e-05/0.5731, allocations: 40 kB / 0.6926 GB, free: 3.578 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.0004439/0.5736, allocations: 277.3 kB / 0.6928 GB, free: 3.297 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.5737, allocations: 75.53 kB / 0.6929 GB, free: 3.223 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002468/0.5762, allocations: 2.018 MB / 0.6949 GB, free: 1.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.5763, allocations: 23.95 kB / 0.6949 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.5763, allocations: 0 / 0.6949 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.5763, allocations: 0 / 0.6949 GB, free: 1.156 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003609/0.5799, allocations: 2.995 MB / 0.6978 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.5799, allocations: 3.938 kB / 0.6978 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009066/0.5808, allocations: 187.8 kB / 0.698 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001681/0.5825, allocations: 308 kB / 0.6983 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.5826, allocations: 16 kB / 0.6983 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.5844, allocations: 2.168 MB / 0.7004 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5844, allocations: 4.062 kB / 0.7004 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002257/0.5866, allocations: 1.949 MB / 0.7023 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003193/0.587, allocations: 240.2 kB / 0.7026 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/0.5871, allocations: 27.84 kB / 0.7026 GB, free: 8.984 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/0.5875, allocations: 12.06 kB / 0.7026 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/0.5876, allocations: 32.39 kB / 0.7026 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/0.5876, allocations: 19.98 kB / 0.7027 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007479/0.5884, allocations: 0.5693 MB / 0.7032 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5884, allocations: 0 / 0.7032 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002947/0.5913, allocations: 1.104 MB / 0.7043 GB, free: 7.254 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.006732/0.5981, allocations: 3.609 MB / 0.7078 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002052/0.6002, allocations: 0.9324 MB / 0.7087 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6002, allocations: 0 / 0.7087 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.6014, allocations: 0.6322 MB / 0.7094 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.6036, allocations: 402.4 kB / 0.7097 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01228/0.6159, allocations: 8.295 MB / 0.7178 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007091/0.6166, allocations: 1.093 MB / 0.7189 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008021/0.6174, allocations: 342.2 kB / 0.7192 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/0.6179, allocations: 379.3 kB / 0.7196 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of SimCode: time 5.01e-07/0.6179, allocations: 0 / 0.7196 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3557/0.9736, allocations: 55.69 MB / 0.774 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.43, allocations: 16.2 kB / 0.774 GB, free: 152.7 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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)