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.001813/0.001813, allocations: 118.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.001954/0.001954, allocations: 197.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.413/1.413, 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.2206/0.2206, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.002236/0.002236, allocations: 75.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3151, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.04368/0.3588, allocations: 39.18 MB / 0.5689 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.02527/0.3841, allocations: 20.18 MB / 0.5886 GB, free: 6.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008641/0.3851, allocations: 19.88 kB / 0.5886 GB, free: 6.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001209/0.3863, allocations: 449.3 kB / 0.589 GB, free: 5.719 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01389/0.4002, allocations: 5.122 MB / 0.594 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007133/0.4073, allocations: 2.566 MB / 0.5965 GB, free: 14.03 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.4102, allocations: 1.977 MB / 0.5985 GB, free: 12.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007892/0.411, allocations: 0.4897 MB / 0.5989 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01042/0.4214, allocations: 4.164 MB / 0.603 GB, free: 7.316 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01197/0.4334, allocations: 5.44 MB / 0.6083 GB, free: 1.793 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002406/0.4337, allocations: 72 kB / 0.6084 GB, free: 1.723 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01468/0.4484, allocations: 7.39 MB / 0.6156 GB, free: 10.33 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000471/0.4489, allocations: 279.2 kB / 0.6159 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000675/0.4496, allocations: 457.9 kB / 0.6163 GB, free: 9.605 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.4609, allocations: 5.128 MB / 0.6213 GB, free: 4.465 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4609, allocations: 4 kB / 0.6213 GB, free: 4.461 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4609, allocations: 0 / 0.6213 GB, free: 4.461 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.4609, allocations: 0 / 0.6213 GB, free: 4.461 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.004332/0.4653, allocations: 1.738 MB / 0.623 GB, free: 2.668 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.4653, allocations: 8.031 kB / 0.623 GB, free: 2.66 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.4655, allocations: 114.7 kB / 0.6231 GB, free: 2.539 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.4677, allocations: 304.2 kB / 0.6234 GB, free: 2.242 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00093/0.4686, allocations: 0.5876 MB / 0.624 GB, free: 1.613 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.4687, allocations: 109.3 kB / 0.6241 GB, free: 1.492 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.4689, allocations: 63.94 kB / 0.6242 GB, free: 1.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002583/0.4714, allocations: 1.197 MB / 0.6253 GB, free: 136 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.4715, allocations: 7.875 kB / 0.6253 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.465e-05/0.4716, allocations: 35.94 kB / 0.6254 GB, free: 92 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-05/0.4716, allocations: 41.3 kB / 0.6254 GB, free: 52 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/0.4743, allocations: 1.027 MB / 0.6264 GB, free: 15.02 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.006574/0.4809, allocations: 5.611 MB / 0.6319 GB, free: 9.035 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.4832, allocations: 0.7637 MB / 0.6326 GB, free: 8.254 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.4838, allocations: 281.6 kB / 0.6329 GB, free: 7.973 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03543/0.5193, allocations: 17.36 MB / 0.6499 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.444e-05/0.5194, allocations: 46.48 kB / 0.6499 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 4.799e-06/0.5194, allocations: 0 / 0.6499 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.007425/0.5268, allocations: 2.298 MB / 0.6522 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.527, allocations: 162.7 kB / 0.6523 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008517/0.5279, allocations: 0.6133 MB / 0.6529 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.271e-05/0.5279, allocations: 37.7 kB / 0.6529 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000328/0.5283, allocations: 396.3 kB / 0.6533 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.5284, allocations: 174.5 kB / 0.6535 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.5287, allocations: 162.6 kB / 0.6536 GB, free: 460 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000204/0.5289, allocations: 378.8 kB / 0.654 GB, free: 72 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006675/0.5296, allocations: 285.8 kB / 0.6543 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009344/0.5305, allocations: 0.6044 MB / 0.6549 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.532, allocations: 0.8948 MB / 0.6557 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.5321, allocations: 4 kB / 0.6557 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001955/0.534, allocations: 0.973 MB / 0.6567 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.5341, allocations: 8 kB / 0.6567 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.5341, allocations: 12 kB / 0.6567 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002944/0.5344, allocations: 64.81 kB / 0.6568 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.5356, allocations: 303.8 kB / 0.6571 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/0.5375, allocations: 2.075 MB / 0.6591 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005699/0.538, allocations: 47.97 kB / 0.6591 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/0.5381, allocations: 40 kB / 0.6592 GB, free: 10.3 MB / 0.5137 GB 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.0004073/0.5385, allocations: 284 kB / 0.6594 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.5387, allocations: 75.5 kB / 0.6595 GB, free: 9.945 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.5421, allocations: 2.552 MB / 0.662 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.501e-05/0.5421, allocations: 35.89 kB / 0.662 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.5421, allocations: 0 / 0.662 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.5421, allocations: 8.016 kB / 0.6621 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004732/0.5469, allocations: 3.761 MB / 0.6657 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5469, allocations: 0 / 0.6657 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.548, allocations: 219.7 kB / 0.6659 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003435/0.5484, allocations: 88.78 kB / 0.666 GB, free: 3.203 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.5484, allocations: 15.98 kB / 0.666 GB, free: 3.188 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001628/0.55, allocations: 2.09 MB / 0.6681 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5501, allocations: 4.062 kB / 0.6681 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003229/0.5533, allocations: 2.363 MB / 0.6704 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003348/0.5536, allocations: 263.9 kB / 0.6706 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.5538, allocations: 31.78 kB / 0.6707 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.5542, allocations: 31.97 kB / 0.6707 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.5543, allocations: 48.55 kB / 0.6707 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.755e-05/0.5544, allocations: 27.98 kB / 0.6708 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007268/0.5551, allocations: 0.5537 MB / 0.6713 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5551, allocations: 0 / 0.6713 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002985/0.5581, allocations: 1.104 MB / 0.6724 GB, free: 12.46 MB / 0.5294 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: 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.007857/0.566, allocations: 4.024 MB / 0.6763 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002593/0.5686, allocations: 1.108 MB / 0.6774 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.5686, allocations: 0 / 0.6774 GB, free: 7.316 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.5703, allocations: 0.8207 MB / 0.6782 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.5724, allocations: 399.8 kB / 0.6786 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.5869, allocations: 8.708 MB / 0.6871 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008506/0.5878, allocations: 1.161 MB / 0.6882 GB, free: 11.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009672/0.5888, allocations: 437.4 kB / 0.6886 GB, free: 11.36 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/0.5893, allocations: 443.3 kB / 0.6891 GB, free: 10.92 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/0.5893, allocations: 0 / 0.6891 GB, free: 10.92 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3502/0.9395, allocations: 58.37 MB / 0.7461 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.9, allocations: 12.27 kB / 0.7461 GB, free: 144.5 MB / 0.5606 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)