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.001289/0.001289, 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.001554/0.001555, 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.542/1.542, 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.2261/0.2261, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.003531/0.003531, allocations: 83.8 kB / 480.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3685, allocations: 62.43 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.04515/0.4137, allocations: 39.19 MB / 0.5689 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02475/0.4385, allocations: 20.18 MB / 0.5886 GB, free: 6.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007719/0.4393, allocations: 19.88 kB / 0.5886 GB, free: 6.141 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.4405, allocations: 445.3 kB / 0.589 GB, free: 5.703 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01447/0.455, allocations: 5.119 MB / 0.594 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007251/0.4623, allocations: 2.577 MB / 0.5965 GB, free: 14 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002856/0.4651, allocations: 1.989 MB / 0.5985 GB, free: 12.01 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007422/0.4659, allocations: 0.4975 MB / 0.599 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00967/0.4756, allocations: 4.16 MB / 0.603 GB, free: 7.277 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01172/0.4873, allocations: 5.436 MB / 0.6083 GB, free: 1.758 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002501/0.4876, allocations: 72 kB / 0.6084 GB, free: 1.688 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01481/0.5024, allocations: 7.387 MB / 0.6156 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004637/0.5029, allocations: 295.2 kB / 0.6159 GB, free: 10 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000641/0.5036, allocations: 457.9 kB / 0.6163 GB, free: 9.555 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01113/0.5147, allocations: 5.14 MB / 0.6214 GB, free: 4.402 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5148, allocations: 0 / 0.6214 GB, free: 4.402 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.5148, allocations: 0 / 0.6214 GB, free: 4.402 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.636e-05/0.5148, allocations: 3.938 kB / 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.004098/0.5189, allocations: 1.71 MB / 0.623 GB, free: 2.633 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.5189, allocations: 12.03 kB / 0.6231 GB, free: 2.621 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.5191, allocations: 110.7 kB / 0.6232 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/0.5212, allocations: 308.1 kB / 0.6235 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000948/0.5222, allocations: 0.5876 MB / 0.624 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.5223, allocations: 113.2 kB / 0.6241 GB, free: 1.449 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.5224, allocations: 59.94 kB / 0.6242 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.5248, allocations: 1.154 MB / 0.6253 GB, free: 140 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.5248, allocations: 11.94 kB / 0.6253 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.522e-05/0.5249, allocations: 27.98 kB / 0.6254 GB, free: 100 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.864e-05/0.525, allocations: 45.23 kB / 0.6254 GB, free: 56 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/0.5267, allocations: 0.8479 MB / 0.6262 GB, free: 15.2 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.006403/0.5331, allocations: 5.498 MB / 0.6316 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.5345, allocations: 0.5919 MB / 0.6322 GB, free: 8.719 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/0.5349, allocations: 221.6 kB / 0.6324 GB, free: 8.496 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1066/0.6415, allocations: 51.53 MB / 0.6827 GB, free: 14.61 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/0.6417, allocations: 46.5 kB / 0.6828 GB, free: 14.55 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.525e-06/0.6417, allocations: 0 / 0.6828 GB, free: 14.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.005361/0.647, allocations: 1.947 MB / 0.6847 GB, free: 12.55 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.6472, allocations: 162.2 kB / 0.6848 GB, free: 12.36 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008185/0.648, allocations: 0.6134 MB / 0.6854 GB, free: 11.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.062e-05/0.648, allocations: 37.7 kB / 0.6854 GB, free: 11.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003479/0.6484, allocations: 404.2 kB / 0.6858 GB, free: 11.29 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.6486, allocations: 182.5 kB / 0.686 GB, free: 11.11 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/0.6488, allocations: 158.6 kB / 0.6862 GB, free: 10.95 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002134/0.649, allocations: 378.8 kB / 0.6865 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004015/0.6494, allocations: 221.9 kB / 0.6867 GB, free: 10.35 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006966/0.6501, allocations: 0.5718 MB / 0.6873 GB, free: 9.617 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.6513, allocations: 0.8407 MB / 0.6881 GB, free: 8.625 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.6513, allocations: 4 kB / 0.6881 GB, free: 8.621 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00147/0.6528, allocations: 0.8676 MB / 0.689 GB, free: 7.742 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.6528, allocations: 18.33 kB / 0.689 GB, free: 7.727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.6528, allocations: 12 kB / 0.689 GB, free: 7.715 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00029/0.6531, allocations: 56.83 kB / 0.689 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.6543, allocations: 291.8 kB / 0.6893 GB, free: 7.371 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001801/0.6561, allocations: 2.072 MB / 0.6913 GB, free: 5.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004469/0.6566, allocations: 28 kB / 0.6914 GB, free: 5.113 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.588e-05/0.6567, allocations: 43.98 kB / 0.6914 GB, free: 5.07 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.0003987/0.6571, allocations: 277.6 kB / 0.6917 GB, free: 4.789 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.6572, allocations: 75.53 kB / 0.6917 GB, free: 4.715 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002822/0.6601, allocations: 2.213 MB / 0.6939 GB, free: 2.488 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.383e-05/0.6601, allocations: 31.89 kB / 0.6939 GB, free: 2.457 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.6601, allocations: 0 / 0.6939 GB, free: 2.457 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.6601, allocations: 7.984 kB / 0.6939 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/0.6643, allocations: 3.296 MB / 0.6972 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.6643, allocations: 0 / 0.6972 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009172/0.6652, allocations: 187.8 kB / 0.6973 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003377/0.6656, allocations: 88.73 kB / 0.6974 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.6656, allocations: 12 kB / 0.6974 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00189/0.6675, allocations: 2.09 MB / 0.6995 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6675, allocations: 0 / 0.6995 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.67, allocations: 1.999 MB / 0.7014 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003428/0.6704, allocations: 248 kB / 0.7017 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.6705, allocations: 27.84 kB / 0.7017 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.671, allocations: 31.97 kB / 0.7017 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.839e-05/0.6711, allocations: 36.45 kB / 0.7018 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.733e-05/0.6711, allocations: 19.98 kB / 0.7018 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000679/0.6718, allocations: 0.5146 MB / 0.7023 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6718, allocations: 0 / 0.7023 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003934/0.6758, allocations: 1.1 MB / 0.7034 GB, free: 8.531 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.007863/0.6836, allocations: 3.67 MB / 0.7069 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002031/0.6857, allocations: 0.9357 MB / 0.7079 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.6857, allocations: 8 kB / 0.7079 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.687, allocations: 0.6755 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.001972/0.689, allocations: 386.1 kB / 0.7089 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.7008, allocations: 7.994 MB / 0.7167 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008259/0.7017, allocations: 1.117 MB / 0.7178 GB, free: 9.309 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009592/0.7026, allocations: 438 kB / 0.7182 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.7031, allocations: 403.3 kB / 0.7186 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/0.7032, allocations: 0 / 0.7186 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.334/1.037, allocations: 56.52 MB / 0.7738 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.41/16.45, allocations: 9.484 kB / 0.7738 GB, free: 152.6 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 & /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)