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.00183/0.00183, allocations: 105.8 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.002082/0.002082, 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.616/1.616, 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.2817/0.2817, 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.003239/0.003239, allocations: 86.38 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1375, allocations: 62.45 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.2976/0.4351, allocations: 39.18 MB / 0.5072 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02672/0.4619, allocations: 20.16 MB / 0.5269 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.463, allocations: 20.38 kB / 0.5269 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.4645, allocations: 447.2 kB / 0.5274 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01939/0.4839, allocations: 5.132 MB / 0.5324 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009532/0.4935, allocations: 2.556 MB / 0.5349 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00308/0.4966, allocations: 2.004 MB / 0.5368 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007783/0.4974, allocations: 0.4921 MB / 0.5373 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01032/0.5077, allocations: 4.166 MB / 0.5414 GB, free: 4.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01144/0.5192, allocations: 5.436 MB / 0.5467 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003739/0.5196, allocations: 72.06 kB / 0.5467 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01743/0.5371, allocations: 7.238 MB / 0.5538 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006146/0.5377, allocations: 283.1 kB / 0.5541 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009518/0.5387, allocations: 466 kB / 0.5545 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01649/0.5552, allocations: 5.114 MB / 0.5595 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.5553, allocations: 0 / 0.5595 GB, free: 6.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.5553, allocations: 0 / 0.5595 GB, free: 6.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.713e-05/0.5553, allocations: 0 / 0.5595 GB, free: 6.34 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.005686/0.561, allocations: 1.669 MB / 0.5612 GB, free: 4.621 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.5611, allocations: 12.03 kB / 0.5612 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001804/0.5612, allocations: 114.7 kB / 0.5613 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002248/0.5635, allocations: 303.6 kB / 0.5616 GB, free: 4.191 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.5646, allocations: 0.5637 MB / 0.5621 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.5647, allocations: 113.4 kB / 0.5622 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.5648, allocations: 59.94 kB / 0.5623 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.5674, allocations: 1.165 MB / 0.5634 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.5675, allocations: 0 / 0.5634 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-05/0.5676, allocations: 24 kB / 0.5634 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.774e-05/0.5676, allocations: 49.23 kB / 0.5635 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.5694, allocations: 0.844 MB / 0.5643 GB, free: 1.234 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.00739/0.5768, allocations: 5.504 MB / 0.5697 GB, free: 11.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001387/0.5782, allocations: 0.5885 MB / 0.5703 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.5786, allocations: 221.6 kB / 0.5705 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1111/0.6897, allocations: 51.32 MB / 0.6206 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.46e-05/0.6898, allocations: 38.56 kB / 0.6206 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.685e-06/0.6898, allocations: 0 / 0.6206 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.00571/0.6955, allocations: 1.929 MB / 0.6225 GB, free: 14.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.6957, allocations: 170.2 kB / 0.6227 GB, free: 14.62 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008621/0.6965, allocations: 0.6171 MB / 0.6233 GB, free: 14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.529e-05/0.6966, allocations: 33.7 kB / 0.6233 GB, free: 13.96 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003307/0.697, allocations: 399.2 kB / 0.6237 GB, free: 13.56 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.6971, allocations: 165.7 kB / 0.6238 GB, free: 13.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/0.6974, allocations: 162.4 kB / 0.624 GB, free: 13.23 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.6976, allocations: 378.8 kB / 0.6244 GB, free: 12.86 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.698, allocations: 229.9 kB / 0.6246 GB, free: 12.63 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007148/0.6987, allocations: 0.5639 MB / 0.6251 GB, free: 11.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.6999, allocations: 0.8446 MB / 0.626 GB, free: 10.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.7, allocations: 0 / 0.626 GB, free: 10.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001546/0.7015, allocations: 0.8673 MB / 0.6268 GB, free: 10.04 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.7016, allocations: 14.59 kB / 0.6268 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/0.7016, allocations: 12 kB / 0.6268 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002941/0.7019, allocations: 60.81 kB / 0.6269 GB, free: 9.949 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.7031, allocations: 280 kB / 0.6272 GB, free: 9.676 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.705, allocations: 2.079 MB / 0.6292 GB, free: 7.438 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.7056, allocations: 35.88 kB / 0.6292 GB, free: 7.402 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.672e-05/0.7057, allocations: 44.17 kB / 0.6293 GB, free: 7.359 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.0004467/0.7061, allocations: 269.5 kB / 0.6295 GB, free: 7.086 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.7063, allocations: 75.09 kB / 0.6296 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.7091, allocations: 2.212 MB / 0.6317 GB, free: 4.785 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.52e-05/0.7091, allocations: 31.95 kB / 0.6318 GB, free: 4.754 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7092, allocations: 7.938 kB / 0.6318 GB, free: 4.746 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.7092, allocations: 3.984 kB / 0.6318 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004262/0.7134, allocations: 3.296 MB / 0.635 GB, free: 1.375 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.7135, allocations: 3.938 kB / 0.635 GB, free: 1.371 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009541/0.7144, allocations: 183.8 kB / 0.6352 GB, free: 1.191 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003902/0.7148, allocations: 84.78 kB / 0.6353 GB, free: 1.105 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.812e-05/0.7149, allocations: 12 kB / 0.6353 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.7168, allocations: 2.09 MB / 0.6373 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.7168, allocations: 4.062 kB / 0.6373 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.7195, allocations: 1.985 MB / 0.6393 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005069/0.72, allocations: 247.3 kB / 0.6395 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001928/0.7202, allocations: 27.78 kB / 0.6395 GB, free: 12.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005736/0.7208, allocations: 36.03 kB / 0.6396 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.7209, allocations: 40.31 kB / 0.6396 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.729e-05/0.7209, allocations: 19.98 kB / 0.6396 GB, free: 12.44 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007499/0.7217, allocations: 0.5068 MB / 0.6401 GB, free: 11.93 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7217, allocations: 0 / 0.6401 GB, free: 11.93 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003704/0.7254, allocations: 1.089 MB / 0.6412 GB, free: 10.84 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.008914/0.7343, allocations: 3.657 MB / 0.6447 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002881/0.7373, allocations: 1.018 MB / 0.6457 GB, free: 6.148 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.7373, allocations: 4 kB / 0.6457 GB, free: 6.145 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.7386, allocations: 0.6793 MB / 0.6464 GB, free: 5.465 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002231/0.7409, allocations: 396.6 kB / 0.6468 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/0.7544, allocations: 8.242 MB / 0.6548 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008372/0.7552, allocations: 1.113 MB / 0.6559 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001068/0.7563, allocations: 453.2 kB / 0.6564 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004957/0.7568, allocations: 399.3 kB / 0.6567 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of SimCode: time 8.92e-07/0.7568, allocations: 0 / 0.6567 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1124/0.8692, allocations: 56.32 MB / 0.7117 GB, free: 2.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/15.12, allocations: 8.156 kB / 0.7117 GB, free: 2.402 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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)