Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.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.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 110.4 kB / 17.75 MB, free: 5.227 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.001453/0.001453, allocations: 189.3 kB / 18.67 MB, free: 4.309 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.368/1.368, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2905/0.2905, allocations: 48.84 MB / 320.7 MB, free: 11.02 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.002588/0.002588, allocations: 71.89 kB / 451.2 MB, free: 8.559 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.128, allocations: 59.17 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.3483/0.4763, allocations: 105.2 MB / 0.6012 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.4918, allocations: 11.67 MB / 0.6126 GB, free: 3.91 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.4931, allocations: 20.03 kB / 0.6126 GB, free: 3.902 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001718/0.4948, allocations: 0.5617 MB / 0.6131 GB, free: 3.41 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001533/0.4964, allocations: 0.6257 MB / 0.6137 GB, free: 2.883 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.512, allocations: 5.709 MB / 0.6193 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002415/0.5144, allocations: 1.817 MB / 0.6211 GB, free: 12.41 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009175/0.5154, allocations: 0.6738 MB / 0.6218 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008974/0.5163, allocations: 0.7123 MB / 0.6224 GB, free: 11.01 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007236/0.517, allocations: 0.6847 MB / 0.6231 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.5171, allocations: 80 kB / 0.6232 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.5291, allocations: 6.454 MB / 0.6295 GB, free: 3.785 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.5294, allocations: 179.4 kB / 0.6297 GB, free: 3.609 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006815/0.5301, allocations: 481.8 kB / 0.6301 GB, free: 3.137 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.5412, allocations: 4.42 MB / 0.6344 GB, free: 14.71 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.596e-05/0.5413, allocations: 4 kB / 0.6344 GB, free: 14.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.5413, allocations: 0 / 0.6344 GB, free: 14.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.45e-05/0.5414, allocations: 3.938 kB / 0.6344 GB, free: 14.7 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.006441/0.5478, allocations: 1.847 MB / 0.6363 GB, free: 12.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.019e-05/0.5479, allocations: 11.89 kB / 0.6363 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006686/0.5486, allocations: 116.8 kB / 0.6364 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.5499, allocations: 0.5384 MB / 0.6369 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.263e-05/0.5499, allocations: 49.88 kB / 0.6369 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.5501, allocations: 75.94 kB / 0.637 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002372/0.5525, allocations: 0.9302 MB / 0.6379 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.5525, allocations: 3.938 kB / 0.6379 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/0.5526, allocations: 35.98 kB / 0.638 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.5526, allocations: 19.98 kB / 0.638 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002526/0.5551, allocations: 0.7777 MB / 0.6387 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.5601, allocations: 4.345 MB / 0.643 GB, free: 5.344 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.5626, allocations: 0.7444 MB / 0.6437 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009132/0.5636, allocations: 305.5 kB / 0.644 GB, free: 4.277 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06284/0.6264, allocations: 32.1 MB / 0.6754 GB, free: 364 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002117/0.6286, allocations: 0.5238 MB / 0.6759 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=44): time 3.777e-06/0.6286, allocations: 0 / 0.6759 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of matching and sorting (n=44): time 0.004115/0.6327, allocations: 1.09 MB / 0.6769 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/0.6328, allocations: 89.11 kB / 0.677 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008058/0.6337, allocations: 0.5392 MB / 0.6775 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.333e-05/0.6338, allocations: 45.69 kB / 0.6776 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003101/0.6341, allocations: 344.5 kB / 0.6779 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001869/0.6343, allocations: 142 kB / 0.6781 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/0.6345, allocations: 90.11 kB / 0.6781 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001953/0.6347, allocations: 374.8 kB / 0.6785 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009501/0.6357, allocations: 274.5 kB / 0.6788 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.6367, allocations: 339.7 kB / 0.6791 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/0.6386, allocations: 0.6543 MB / 0.6797 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6386, allocations: 0 / 0.6797 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002334/0.6409, allocations: 0.8424 MB / 0.6805 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.912e-05/0.641, allocations: 118.8 kB / 0.6807 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.6411, allocations: 4 kB / 0.6807 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.6411, allocations: 4.188 kB / 0.6807 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.6418, allocations: 139.7 kB / 0.6808 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.6418, allocations: 5.797 kB / 0.6808 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007349/0.6426, allocations: 116.2 kB / 0.6809 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/0.6426, allocations: 23.98 kB / 0.6809 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009984/0.6436, allocations: 384.8 kB / 0.6813 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008668/0.6445, allocations: 339.2 kB / 0.6816 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001693/0.6462, allocations: 0.6531 MB / 0.6823 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.696e-06/0.6462, allocations: 0 / 0.6823 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.00211/0.6484, allocations: 0.8167 MB / 0.6831 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.338e-05/0.6485, allocations: 122.7 kB / 0.6832 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6485, allocations: 4 kB / 0.6832 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.6485, allocations: 4 kB / 0.6832 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.649, allocations: 135.8 kB / 0.6833 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.6491, allocations: 4 kB / 0.6833 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.6497, allocations: 100.4 kB / 0.6834 GB, free: 7.734 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.6498, allocations: 20 kB / 0.6834 GB, free: 7.715 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 (Sine2.count,$PRE.Sine2.count,Sine2.T_start,$PRE.Sine2.T_start,Sine1.count,$PRE.Sine1.count,Sine1.T_start,$PRE.Sine1.T_start,$whenCondition3,$whenCondition4,Sine4.count,$PRE.Sine4.count,Sine4.T_start,$PRE.Sine4.T_start,Sine3.count,$PRE.Sine3.count,Sine3.T_start,$PRE.Sine3.T_start,$whenCondition1,$whenCondition2,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * 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.000197/0.65, allocations: 222.2 kB / 0.6836 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.6501, allocations: 71.16 kB / 0.6837 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003064/0.6532, allocations: 1.844 MB / 0.6855 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.6532, allocations: 0 / 0.6855 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.6532, allocations: 3.938 kB / 0.6855 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.6535, allocations: 215.6 kB / 0.6857 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.6536, allocations: 15 kB / 0.6857 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006159/0.6543, allocations: 83.81 kB / 0.6858 GB, free: 5.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.6545, allocations: 79.84 kB / 0.6859 GB, free: 5.16 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002961/0.6575, allocations: 1.284 MB / 0.6871 GB, free: 3.863 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002527/0.66, allocations: 1.338 MB / 0.6885 GB, free: 2.508 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001148/0.6612, allocations: 0.5368 MB / 0.689 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004224/0.6616, allocations: 383 kB / 0.6893 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of Backend: time 7.81e-07/0.6616, allocations: 0 / 0.6893 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007983/0.6696, allocations: 2.373 MB / 0.6917 GB, free: 15.12 MB / 0.545 GB Notification: Performance of SimCode: time 0.003079/0.6727, allocations: 1.896 MB / 0.6935 GB, free: 13.18 MB / 0.545 GB Notification: Performance of Templates: time 0.06864/0.7414, allocations: 47.6 MB / 0.74 GB, free: 13.49 MB / 0.5919 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev.pipe 2>&1)