Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009368/0.0009368, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006967/0.0006967, allocations: 90.25 kB / 295.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 44.83 MB / 392 MB, free: 9.297 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002451/0.0002451, allocations: 8 kB / 464.8 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08956, allocations: 62.95 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.1936/0.2832, allocations: 36.69 MB / 0.5512 GB, free: 4.316 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02134/0.3045, allocations: 18.88 MB / 0.5696 GB, free: 5.109 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008653/0.3054, allocations: 27.06 kB / 0.5696 GB, free: 5.094 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009981/0.3064, allocations: 369.5 kB / 0.57 GB, free: 4.789 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01218/0.3186, allocations: 4.066 MB / 0.5739 GB, free: 1.723 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006004/0.3246, allocations: 2.036 MB / 0.5759 GB, free: 15.69 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002691/0.3273, allocations: 2.359 MB / 0.5782 GB, free: 13.32 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005613/0.3279, allocations: 395.3 kB / 0.5786 GB, free: 12.93 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0092/0.3371, allocations: 6.412 MB / 0.5849 GB, free: 6.508 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01178/0.3489, allocations: 9.1 MB / 0.5938 GB, free: 13.4 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002507/0.3493, allocations: 39.98 kB / 0.5938 GB, free: 13.36 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01314/0.3624, allocations: 6.828 MB / 0.6005 GB, free: 6.527 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004167/0.3629, allocations: 243.2 kB / 0.6007 GB, free: 6.289 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003473/0.3632, allocations: 185.3 kB / 0.6009 GB, free: 6.102 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005865/0.3691, allocations: 3.383 MB / 0.6042 GB, free: 2.711 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3691, allocations: 0 / 0.6042 GB, free: 2.711 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3691, allocations: 4 kB / 0.6042 GB, free: 2.707 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.3692, allocations: 4 kB / 0.6042 GB, free: 2.703 MB / 410.7 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.003655/0.3728, allocations: 1.473 MB / 0.6056 GB, free: 1.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3729, allocations: 8.031 kB / 0.6056 GB, free: 1.172 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/0.3742, allocations: 218.9 kB / 0.6058 GB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008069/0.375, allocations: 0.5199 MB / 0.6064 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.3751, allocations: 108.7 kB / 0.6065 GB, free: 284 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.672e-05/0.3752, allocations: 56 kB / 0.6065 GB, free: 228 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.3771, allocations: 1.075 MB / 0.6076 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.3772, allocations: 7.938 kB / 0.6076 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-05/0.3773, allocations: 28 kB / 0.6076 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.089e-05/0.3773, allocations: 40.98 kB / 0.6076 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.3789, allocations: 0.8232 MB / 0.6084 GB, free: 14.13 MB / 426.7 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.006052/0.385, allocations: 5.571 MB / 0.6139 GB, free: 8.203 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/0.3861, allocations: 0.5271 MB / 0.6144 GB, free: 7.648 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.3864, allocations: 210.5 kB / 0.6146 GB, free: 7.434 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09125/0.4777, allocations: 53.01 MB / 0.6664 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.307e-05/0.4778, allocations: 38.56 kB / 0.6664 GB, free: 11.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=39): time 3.156e-06/0.4778, allocations: 0 / 0.6664 GB, free: 11.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=44): time 0.006017/0.4838, allocations: 2.133 MB / 0.6685 GB, free: 9.531 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.602e-05/0.484, allocations: 191.8 kB / 0.6687 GB, free: 9.301 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007421/0.4847, allocations: 0.6406 MB / 0.6693 GB, free: 8.648 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.4848, allocations: 33.7 kB / 0.6693 GB, free: 8.609 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/0.485, allocations: 399.2 kB / 0.6697 GB, free: 8.211 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.4852, allocations: 165.7 kB / 0.6699 GB, free: 8.047 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.4852, allocations: 16 kB / 0.6699 GB, free: 8.031 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4854, allocations: 374.8 kB / 0.6702 GB, free: 7.656 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.4858, allocations: 233.8 kB / 0.6705 GB, free: 7.426 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006029/0.4864, allocations: 0.5899 MB / 0.671 GB, free: 6.656 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.4869, allocations: 335.7 kB / 0.6714 GB, free: 6.328 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.4869, allocations: 4 kB / 0.6714 GB, free: 6.324 MB / 490.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001306/0.4882, allocations: 0.8837 MB / 0.6722 GB, free: 5.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.4882, allocations: 16.88 kB / 0.6722 GB, free: 5.414 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.4883, allocations: 12 kB / 0.6722 GB, free: 5.402 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002994/0.4913, allocations: 272.5 kB / 0.6725 GB, free: 5.133 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.4924, allocations: 287.5 kB / 0.6728 GB, free: 4.852 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.4939, allocations: 2.015 MB / 0.6748 GB, free: 2.684 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005869/0.4945, allocations: 51.97 kB / 0.6748 GB, free: 2.633 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.615e-05/0.4946, allocations: 44.06 kB / 0.6748 GB, free: 2.59 MB / 490.7 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004145/0.495, allocations: 281.9 kB / 0.6751 GB, free: 2.305 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.4952, allocations: 75.16 kB / 0.6752 GB, free: 2.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.4974, allocations: 2.018 MB / 0.6772 GB, free: 208 kB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/0.4974, allocations: 23.95 kB / 0.6772 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4974, allocations: 0 / 0.6772 GB, free: 184 kB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.4974, allocations: 4 kB / 0.6772 GB, free: 180 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.5007, allocations: 2.996 MB / 0.6801 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.5007, allocations: 3.984 kB / 0.6801 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008798/0.5016, allocations: 183.7 kB / 0.6803 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/0.5033, allocations: 315.8 kB / 0.6806 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.5034, allocations: 8 kB / 0.6806 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.5049, allocations: 2.089 MB / 0.6826 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.505, allocations: 4.031 kB / 0.6826 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.507, allocations: 1.94 MB / 0.6845 GB, free: 8.379 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003954/0.5074, allocations: 295.2 kB / 0.6848 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.965e-05/0.5075, allocations: 12.12 kB / 0.6848 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.508, allocations: 35.98 kB / 0.6849 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.508, allocations: 28.39 kB / 0.6849 GB, free: 7.996 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.5081, allocations: 19.98 kB / 0.6849 GB, free: 7.977 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006965/0.5088, allocations: 0.5654 MB / 0.6855 GB, free: 7.414 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5088, allocations: 3.938 kB / 0.6855 GB, free: 7.41 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003094/0.5119, allocations: 1.101 MB / 0.6865 GB, free: 6.309 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003882/0.5158, allocations: 1.192 MB / 0.6877 GB, free: 5.109 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001875/0.5177, allocations: 0.9093 MB / 0.6886 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.5177, allocations: 0 / 0.6886 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.5188, allocations: 0.636 MB / 0.6892 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.5209, allocations: 388.7 kB / 0.6896 GB, free: 3.207 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.5239, allocations: 2.626 MB / 0.6921 GB, free: 0.5469 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.5246, allocations: 1.089 MB / 0.6932 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.5247, allocations: 67.42 kB / 0.6933 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of SimCode: time 5.91e-07/0.5247, allocations: 0 / 0.6933 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.2288/0.7535, allocations: 37.14 MB / 0.7295 GB, free: 166.6 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)