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_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.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.00147/0.00147, allocations: 104.1 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.001851/0.001851, 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.52/1.52, allocations: 227.4 MB / 246.8 MB, free: 10.47 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.2278/0.2278, allocations: 46.1 MB / 344.2 MB, free: 11.53 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.00226/0.00226, allocations: 82.36 kB / 417.8 MB, free: 19.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1247, allocations: 62.44 MB / 480.2 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.2775/0.4022, allocations: 39.18 MB / 0.5072 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02312/0.4254, allocations: 20.15 MB / 0.5269 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.4267, allocations: 23.81 kB / 0.5269 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.4281, allocations: 443.3 kB / 0.5273 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0147/0.4429, allocations: 5.132 MB / 0.5324 GB, free: 9.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007328/0.4502, allocations: 2.567 MB / 0.5349 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002478/0.4527, allocations: 1.986 MB / 0.5368 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000765/0.4535, allocations: 488 kB / 0.5373 GB, free: 7.035 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01/0.4635, allocations: 4.166 MB / 0.5413 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01106/0.4746, allocations: 5.442 MB / 0.5467 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002845/0.4749, allocations: 71.78 kB / 0.5467 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01775/0.4927, allocations: 7.239 MB / 0.5538 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006515/0.4934, allocations: 283.1 kB / 0.5541 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008415/0.4942, allocations: 450 kB / 0.5545 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.5073, allocations: 5.114 MB / 0.5595 GB, free: 6.352 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.5074, allocations: 0 / 0.5595 GB, free: 6.352 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5074, allocations: 0 / 0.5595 GB, free: 6.352 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.5074, allocations: 0 / 0.5595 GB, free: 6.352 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.005493/0.5129, allocations: 1.692 MB / 0.5611 GB, free: 4.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.513, allocations: 8.031 kB / 0.5611 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.5131, allocations: 118.7 kB / 0.5613 GB, free: 4.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.5154, allocations: 303.6 kB / 0.5615 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.5165, allocations: 0.5598 MB / 0.5621 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.5166, allocations: 117.4 kB / 0.5622 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.5167, allocations: 59.94 kB / 0.5623 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00275/0.5195, allocations: 1.193 MB / 0.5634 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.5195, allocations: 7.938 kB / 0.5634 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.499e-05/0.5196, allocations: 27.98 kB / 0.5635 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.424e-05/0.5197, allocations: 41.3 kB / 0.5635 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002638/0.5224, allocations: 1.031 MB / 0.5645 GB, free: 1.004 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.006783/0.5291, allocations: 5.618 MB / 0.57 GB, free: 11.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002416/0.5316, allocations: 0.7595 MB / 0.5707 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006337/0.5322, allocations: 285.5 kB / 0.571 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03666/0.5689, allocations: 17.29 MB / 0.5879 GB, free: 6.508 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.569, allocations: 50.45 kB / 0.5879 GB, free: 6.449 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.906e-06/0.569, allocations: 0 / 0.5879 GB, free: 6.449 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.007148/0.5762, allocations: 2.277 MB / 0.5902 GB, free: 4.109 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.5763, allocations: 158.7 kB / 0.5903 GB, free: 3.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007796/0.5771, allocations: 0.6055 MB / 0.5909 GB, free: 3.309 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.258e-05/0.5771, allocations: 45.64 kB / 0.591 GB, free: 3.258 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003112/0.5775, allocations: 391.2 kB / 0.5913 GB, free: 2.867 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.5776, allocations: 177.5 kB / 0.5915 GB, free: 2.691 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.5779, allocations: 154.6 kB / 0.5916 GB, free: 2.535 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.5781, allocations: 378.8 kB / 0.592 GB, free: 2.156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006697/0.5787, allocations: 281.8 kB / 0.5923 GB, free: 1.883 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009626/0.5797, allocations: 0.6043 MB / 0.5929 GB, free: 1.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.5813, allocations: 0.8987 MB / 0.5937 GB, free: 88 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.5813, allocations: 8 kB / 0.5937 GB, free: 80 kB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002079/0.5834, allocations: 0.961 MB / 0.5947 GB, free: 15.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.5835, allocations: 8 kB / 0.5947 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.5835, allocations: 16.08 kB / 0.5947 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.5838, allocations: 64.83 kB / 0.5948 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.5851, allocations: 303.5 kB / 0.5951 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.5869, allocations: 2.079 MB / 0.5971 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.5875, allocations: 43.97 kB / 0.5971 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.947e-05/0.5876, allocations: 43.98 kB / 0.5972 GB, free: 12.39 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.heatTransfer.states[1].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.00041/0.588, allocations: 273.6 kB / 0.5974 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.5881, allocations: 79.09 kB / 0.5975 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.5916, allocations: 2.551 MB / 0.6 GB, free: 9.473 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-05/0.5917, allocations: 39.97 kB / 0.6 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.5917, allocations: 0 / 0.6 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.5917, allocations: 7.922 kB / 0.6 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.5968, allocations: 3.742 MB / 0.6037 GB, free: 5.609 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.5968, allocations: 3.938 kB / 0.6037 GB, free: 5.605 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.598, allocations: 231.7 kB / 0.6039 GB, free: 5.379 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003546/0.5983, allocations: 88.62 kB / 0.604 GB, free: 5.289 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.5984, allocations: 12 kB / 0.604 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.6003, allocations: 2.101 MB / 0.6061 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6003, allocations: 0 / 0.6061 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.6037, allocations: 2.346 MB / 0.6084 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004958/0.6043, allocations: 263.2 kB / 0.6086 GB, free: 380 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.6044, allocations: 35.59 kB / 0.6086 GB, free: 344 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004621/0.6049, allocations: 31.97 kB / 0.6087 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.605, allocations: 48.48 kB / 0.6087 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.6051, allocations: 16 kB / 0.6087 GB, free: 248 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008344/0.6059, allocations: 0.5615 MB / 0.6093 GB, free: 15.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6059, allocations: 0 / 0.6093 GB, free: 15.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004065/0.61, allocations: 1.101 MB / 0.6104 GB, free: 14.58 MB / 462.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: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.008375/0.6184, allocations: 4.016 MB / 0.6143 GB, free: 10.55 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003555/0.622, allocations: 1.206 MB / 0.6155 GB, free: 9.344 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.622, allocations: 0 / 0.6155 GB, free: 9.344 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001746/0.6238, allocations: 0.8168 MB / 0.6163 GB, free: 8.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.6259, allocations: 403.6 kB / 0.6166 GB, free: 8.137 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/0.6417, allocations: 9.008 MB / 0.6254 GB, free: 14.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008408/0.6426, allocations: 1.169 MB / 0.6266 GB, free: 13.47 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001097/0.6437, allocations: 432.1 kB / 0.627 GB, free: 13.04 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005669/0.6443, allocations: 439.3 kB / 0.6274 GB, free: 12.61 MB / 478.1 MB Notification: Performance of SimCode: time 1.123e-06/0.6443, allocations: 0 / 0.6274 GB, free: 12.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/0.7546, allocations: 58.16 MB / 0.6842 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/15.2, allocations: 16.23 kB / 0.6842 GB, free: 2.676 MB / 0.5137 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)