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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.28/1.28, allocations: 205.1 MB / 223.1 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 99.94 kB / 270.5 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3755/0.3755, allocations: 48.83 MB / 366.7 MB, free: 46.55 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 47.92 kB / 436.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1062, allocations: 59.16 MB / 495.8 MB, free: 136 kB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.2597/0.366, allocations: 106.3 MB / 0.588 GB, free: 4.887 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.3825, allocations: 12.56 MB / 0.6003 GB, free: 10.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001139/0.3836, allocations: 28.16 kB / 0.6003 GB, free: 10.92 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.3851, allocations: 482.1 kB / 0.6007 GB, free: 10.52 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001227/0.3864, allocations: 0.6051 MB / 0.6013 GB, free: 10.02 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.3997, allocations: 4.661 MB / 0.6059 GB, free: 6.555 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003246/0.403, allocations: 2.683 MB / 0.6085 GB, free: 3.887 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009884/0.404, allocations: 0.5734 MB / 0.6091 GB, free: 3.305 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.4054, allocations: 0.6497 MB / 0.6097 GB, free: 2.652 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007876/0.4062, allocations: 0.708 MB / 0.6104 GB, free: 1.941 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.918e-05/0.4063, allocations: 56 kB / 0.6104 GB, free: 1.887 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01174/0.418, allocations: 6.38 MB / 0.6167 GB, free: 11.5 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002376/0.4183, allocations: 167.3 kB / 0.6168 GB, free: 11.34 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006314/0.4189, allocations: 461.7 kB / 0.6173 GB, free: 10.88 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00849/0.4274, allocations: 4.405 MB / 0.6216 GB, free: 6.469 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.4275, allocations: 0 / 0.6216 GB, free: 6.469 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.4275, allocations: 0 / 0.6216 GB, free: 6.469 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.4275, allocations: 0 / 0.6216 GB, free: 6.469 MB / 442.7 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.004794/0.4323, allocations: 1.854 MB / 0.6234 GB, free: 4.543 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.4323, allocations: 8.031 kB / 0.6234 GB, free: 4.535 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.4327, allocations: 123.8 kB / 0.6235 GB, free: 4.414 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.4334, allocations: 0.5112 MB / 0.624 GB, free: 3.863 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.4334, allocations: 53.86 kB / 0.6241 GB, free: 3.812 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.004e-05/0.4335, allocations: 67.94 kB / 0.6241 GB, free: 3.746 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.4356, allocations: 0.9419 MB / 0.625 GB, free: 2.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4356, allocations: 0 / 0.625 GB, free: 2.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-05/0.4357, allocations: 28 kB / 0.6251 GB, free: 2.723 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.4357, allocations: 16 kB / 0.6251 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002517/0.4383, allocations: 0.7855 MB / 0.6259 GB, free: 1.918 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.4425, allocations: 4.336 MB / 0.6301 GB, free: 13.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/0.445, allocations: 0.7387 MB / 0.6308 GB, free: 12.38 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009509/0.446, allocations: 305.4 kB / 0.6311 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06631/0.5123, allocations: 31.98 MB / 0.6623 GB, free: 8.285 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001698/0.514, allocations: 0.5214 MB / 0.6628 GB, free: 7.746 MB / 490.7 MB Notification: Performance of pre-optimization done (n=44): time 2.114e-06/0.5141, allocations: 3.938 kB / 0.6628 GB, free: 7.742 MB / 490.7 MB Notification: Performance of matching and sorting (n=44): time 0.003901/0.518, allocations: 1.086 MB / 0.6639 GB, free: 6.648 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.518, allocations: 97.03 kB / 0.664 GB, free: 6.535 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006086/0.5187, allocations: 0.5392 MB / 0.6645 GB, free: 5.988 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.5187, allocations: 37.7 kB / 0.6646 GB, free: 5.945 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002753/0.519, allocations: 348.4 kB / 0.6649 GB, free: 5.602 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.5191, allocations: 134.2 kB / 0.665 GB, free: 5.469 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.5193, allocations: 98.02 kB / 0.6651 GB, free: 5.367 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.5195, allocations: 370.8 kB / 0.6655 GB, free: 4.996 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009419/0.5204, allocations: 274.5 kB / 0.6657 GB, free: 4.727 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.5214, allocations: 335.7 kB / 0.666 GB, free: 4.375 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.5233, allocations: 0.6674 MB / 0.6667 GB, free: 3.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5233, allocations: 4 kB / 0.6667 GB, free: 3.656 MB / 490.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00228/0.5256, allocations: 0.8311 MB / 0.6675 GB, free: 2.793 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.091e-05/0.5257, allocations: 122.8 kB / 0.6676 GB, free: 2.648 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.5257, allocations: 0.9375 kB / 0.6676 GB, free: 2.648 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.5257, allocations: 4 kB / 0.6676 GB, free: 2.645 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.5264, allocations: 131.8 kB / 0.6678 GB, free: 2.516 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.5264, allocations: 4 kB / 0.6678 GB, free: 2.512 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008311/0.5273, allocations: 147.4 kB / 0.6679 GB, free: 2.367 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.207e-05/0.5273, allocations: 19.98 kB / 0.6679 GB, free: 2.348 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001003/0.5283, allocations: 384.9 kB / 0.6683 GB, free: 1.965 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009187/0.5293, allocations: 343.8 kB / 0.6686 GB, free: 1.598 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001693/0.531, allocations: 0.6559 MB / 0.6693 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.865e-06/0.531, allocations: 0 / 0.6693 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.002166/0.5332, allocations: 0.8149 MB / 0.6701 GB, free: 40 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/0.5333, allocations: 121.3 kB / 0.6702 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.5333, allocations: 0.9375 kB / 0.6702 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.5333, allocations: 8 kB / 0.6702 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/0.5339, allocations: 135.9 kB / 0.6703 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.5339, allocations: 4 kB / 0.6703 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007787/0.5347, allocations: 127.5 kB / 0.6704 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.5348, allocations: 20 kB / 0.6705 GB, free: 15.61 MB / 0.4948 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.0002702/0.535, allocations: 234.1 kB / 0.6707 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.5351, allocations: 75.12 kB / 0.6707 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.5383, allocations: 1.851 MB / 0.6726 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.5383, allocations: 23.95 kB / 0.6726 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5383, allocations: 2.25 kB / 0.6726 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.5383, allocations: 4 kB / 0.6726 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.5411, allocations: 2.019 MB / 0.6746 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.5411, allocations: 0 / 0.6746 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005907/0.5417, allocations: 119.9 kB / 0.6747 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.5417, allocations: 0 / 0.6747 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.5418, allocations: 8 kB / 0.6747 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.5418, allocations: 4 kB / 0.6747 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.5418, allocations: 3.938 kB / 0.6747 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003995/0.5458, allocations: 2.435 MB / 0.6771 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.5461, allocations: 223.4 kB / 0.6773 GB, free: 8.445 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.489e-05/0.5462, allocations: 12 kB / 0.6773 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007398/0.5469, allocations: 115.8 kB / 0.6774 GB, free: 8.32 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002255/0.5472, allocations: 75.89 kB / 0.6775 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.5472, allocations: 19.98 kB / 0.6775 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000395/0.5476, allocations: 387.1 kB / 0.6779 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.6e-07/0.5476, allocations: 0 / 0.6779 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002891/0.5505, allocations: 1.128 MB / 0.679 GB, free: 6.723 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 24 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine1.count,Sine2.count,Sine4.count,Sine3.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 36 * 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.003347/0.5539, allocations: 1.005 MB / 0.6799 GB, free: 5.715 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003495/0.5574, allocations: 1.552 MB / 0.6815 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5574, allocations: 0 / 0.6815 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.5587, allocations: 0.58 MB / 0.682 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001956/0.5607, allocations: 347.6 kB / 0.6824 GB, free: 3.156 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.5642, allocations: 2.708 MB / 0.685 GB, free: 408 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1634/0.7276, allocations: 1.034 MB / 0.686 GB, free: 162.4 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0009852/0.7286, allocations: 405.3 kB / 0.6864 GB, free: 162.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.7289, allocations: 52.67 kB / 0.6864 GB, free: 162.4 MB / 0.4948 GB Notification: Performance of SimCode: time 9.72e-07/0.7289, allocations: 0 / 0.6864 GB, free: 162.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.05243/0.7813, allocations: 41.46 MB / 0.7269 GB, free: 148.3 MB / 0.4948 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)