Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") translateModel(ThermoPower.Test.WaterComponents.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001218, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.318/0.318, allocations: 48.84 MB / 320.1 MB, free: 11.01 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 79.88 kB / 450.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.129, allocations: 59.16 MB / 0.4978 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3777/0.5068, allocations: 109.9 MB / 0.6051 GB, free: 9.578 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01513/0.522, allocations: 11.7 MB / 0.6165 GB, free: 68 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.5233, allocations: 25.31 kB / 0.6165 GB, free: 56 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.5251, allocations: 0.5784 MB / 0.6171 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.5266, allocations: 0.6672 MB / 0.6177 GB, free: 14.98 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01689/0.5435, allocations: 5.706 MB / 0.6233 GB, free: 9.395 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002818/0.5464, allocations: 1.864 MB / 0.6251 GB, free: 7.523 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001052/0.5474, allocations: 0.6994 MB / 0.6258 GB, free: 6.816 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.5485, allocations: 0.7239 MB / 0.6265 GB, free: 6.09 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008008/0.5493, allocations: 0.6964 MB / 0.6272 GB, free: 5.391 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.5495, allocations: 83.94 kB / 0.6273 GB, free: 5.309 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01386/0.5633, allocations: 6.447 MB / 0.6336 GB, free: 14.85 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002916/0.5637, allocations: 191.3 kB / 0.6338 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008159/0.5645, allocations: 489.7 kB / 0.6342 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.5746, allocations: 4.436 MB / 0.6386 GB, free: 9.738 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.5746, allocations: 0 / 0.6386 GB, free: 9.738 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5746, allocations: 0 / 0.6386 GB, free: 9.738 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.957e-05/0.5747, allocations: 0 / 0.6386 GB, free: 9.738 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.005675/0.5804, allocations: 1.855 MB / 0.6404 GB, free: 7.809 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.5804, allocations: 15.88 kB / 0.6404 GB, free: 7.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004409/0.5809, allocations: 124.7 kB / 0.6405 GB, free: 7.672 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009484/0.5818, allocations: 0.5344 MB / 0.641 GB, free: 7.098 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.829e-05/0.5819, allocations: 54.38 kB / 0.6411 GB, free: 7.043 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.582, allocations: 72.55 kB / 0.6411 GB, free: 6.973 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.5845, allocations: 0.9678 MB / 0.6421 GB, free: 5.949 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.5845, allocations: 4 kB / 0.6421 GB, free: 5.945 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.508e-05/0.5846, allocations: 32 kB / 0.6421 GB, free: 5.914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.5846, allocations: 19.98 kB / 0.6421 GB, free: 5.895 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.5872, allocations: 0.7972 MB / 0.6429 GB, free: 5.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004885/0.5921, allocations: 4.675 MB / 0.6475 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.5947, allocations: 0.7087 MB / 0.6482 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009522/0.5957, allocations: 297.4 kB / 0.6485 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06714/0.6628, allocations: 32.12 MB / 0.6798 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001865/0.6647, allocations: 0.5195 MB / 0.6803 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=42): time 2.976e-06/0.6648, allocations: 0 / 0.6803 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of matching and sorting (n=42): time 0.004097/0.6689, allocations: 1.066 MB / 0.6814 GB, free: 9.395 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.669, allocations: 89.11 kB / 0.6815 GB, free: 9.289 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006267/0.6696, allocations: 0.5666 MB / 0.682 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.461e-05/0.6697, allocations: 41.7 kB / 0.6821 GB, free: 8.668 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.6699, allocations: 364.4 kB / 0.6824 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.6701, allocations: 138 kB / 0.6825 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.6703, allocations: 98.23 kB / 0.6826 GB, free: 8.066 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001604/0.6704, allocations: 378.7 kB / 0.683 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000962/0.6714, allocations: 270.9 kB / 0.6833 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.6724, allocations: 363.6 kB / 0.6836 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001887/0.6743, allocations: 0.6807 MB / 0.6843 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.6744, allocations: 0 / 0.6843 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002365/0.6767, allocations: 0.8386 MB / 0.6851 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.796e-05/0.6768, allocations: 126.7 kB / 0.6852 GB, free: 5.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6768, allocations: 3.062 kB / 0.6852 GB, free: 5.27 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.6769, allocations: 11.98 kB / 0.6852 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006713/0.6775, allocations: 143.7 kB / 0.6854 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.6776, allocations: 4 kB / 0.6854 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007195/0.6783, allocations: 115.3 kB / 0.6855 GB, free: 5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.498e-05/0.6784, allocations: 24 kB / 0.6855 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001028/0.6794, allocations: 373 kB / 0.6858 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009205/0.6803, allocations: 357.3 kB / 0.6862 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001737/0.6821, allocations: 0.6506 MB / 0.6868 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.396e-06/0.6821, allocations: 0 / 0.6868 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002139/0.6842, allocations: 0.8152 MB / 0.6876 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.765e-05/0.6843, allocations: 122.8 kB / 0.6877 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.6844, allocations: 0 / 0.6877 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.705e-06/0.6844, allocations: 8 kB / 0.6877 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/0.685, allocations: 137 kB / 0.6879 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.685, allocations: 7.938 kB / 0.6879 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/0.6856, allocations: 107.4 kB / 0.688 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.6857, allocations: 20 kB / 0.688 GB, free: 2.23 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 (Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition3,$whenCondition4,Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition1,$whenCondition2,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002203/0.6859, allocations: 222.2 kB / 0.6882 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.686, allocations: 67.25 kB / 0.6883 GB, free: 1.941 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003062/0.6891, allocations: 1.825 MB / 0.6901 GB, free: 104 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/0.6891, allocations: 27.95 kB / 0.6901 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.6891, allocations: 0 / 0.6901 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.6891, allocations: 0 / 0.6901 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.6919, allocations: 1.994 MB / 0.692 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.6919, allocations: 7.875 kB / 0.692 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/0.6925, allocations: 111.8 kB / 0.6921 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.6925, allocations: 4 kB / 0.6922 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.853e-05/0.6926, allocations: 12 kB / 0.6922 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.6926, allocations: 4.031 kB / 0.6922 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.6926, allocations: 4 kB / 0.6922 GB, free: 13.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00235/0.6949, allocations: 1.184 MB / 0.6933 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/0.6952, allocations: 223.5 kB / 0.6935 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.453e-05/0.6953, allocations: 11.98 kB / 0.6936 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006305/0.6959, allocations: 75.89 kB / 0.6936 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000218/0.6962, allocations: 75.91 kB / 0.6937 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.799e-05/0.6962, allocations: 16 kB / 0.6937 GB, free: 12.26 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0004545/0.6967, allocations: 403.1 kB / 0.6941 GB, free: 11.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.7e-07/0.6967, allocations: 0 / 0.6941 GB, free: 11.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003008/0.6997, allocations: 1.116 MB / 0.6952 GB, free: 10.76 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine2.count,Sine1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003583/0.7033, allocations: 0.9882 MB / 0.6962 GB, free: 9.758 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003636/0.7069, allocations: 1.546 MB / 0.6977 GB, free: 8.117 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.707, allocations: 0 / 0.6977 GB, free: 8.117 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001309/0.7083, allocations: 0.5633 MB / 0.6982 GB, free: 7.551 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.7103, allocations: 368.9 kB / 0.6986 GB, free: 7.191 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.7132, allocations: 1.697 MB / 0.7002 GB, free: 5.457 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.7137, allocations: 1.015 MB / 0.7012 GB, free: 4.418 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007986/0.7145, allocations: 384.5 kB / 0.7016 GB, free: 4.039 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.7148, allocations: 55.44 kB / 0.7016 GB, free: 3.984 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.7148, allocations: 0 / 0.7016 GB, free: 3.984 MB / 0.545 GB Notification: Performance of Templates: time 0.05842/0.7732, allocations: 42.62 MB / 0.7432 GB, free: 9.297 MB / 0.5919 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)