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.001353/0.001353, allocations: 111.4 kB / 17.74 MB, free: 5.23 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.001363/0.001364, allocations: 188.5 kB / 18.66 MB, free: 4.312 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.458/1.458, 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.3009/0.3009, allocations: 48.85 MB / 320.7 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.001496/0.001496, allocations: 71.89 kB / 451.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1252, allocations: 59.16 MB / 0.4984 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestJoinRev): time 0.3858/0.511, allocations: 105.2 MB / 0.6012 GB, free: 13.62 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01571/0.5268, allocations: 11.67 MB / 0.6126 GB, free: 4.129 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.5284, allocations: 19.16 kB / 0.6126 GB, free: 4.121 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.5302, allocations: 0.558 MB / 0.6131 GB, free: 3.633 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001713/0.532, allocations: 0.6218 MB / 0.6137 GB, free: 3.109 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01716/0.5491, allocations: 5.714 MB / 0.6193 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003094/0.5522, allocations: 1.825 MB / 0.6211 GB, free: 12.55 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.5533, allocations: 0.669 MB / 0.6217 GB, free: 11.86 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001177/0.5545, allocations: 0.7084 MB / 0.6224 GB, free: 11.15 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007525/0.5553, allocations: 0.6964 MB / 0.6231 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.5554, allocations: 76 kB / 0.6232 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01286/0.5683, allocations: 6.444 MB / 0.6295 GB, free: 3.93 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003219/0.5687, allocations: 191.3 kB / 0.6297 GB, free: 3.742 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007193/0.5694, allocations: 485.7 kB / 0.6301 GB, free: 3.266 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5806, allocations: 4.42 MB / 0.6344 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.5807, allocations: 0 / 0.6344 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.5807, allocations: 0 / 0.6344 GB, free: 14.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.5807, allocations: 0 / 0.6344 GB, free: 14.84 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.005457/0.5861, allocations: 1.847 MB / 0.6362 GB, free: 12.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.5862, allocations: 15.89 kB / 0.6363 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/0.5866, allocations: 116.9 kB / 0.6364 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008604/0.5875, allocations: 0.5345 MB / 0.6369 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.207e-05/0.5875, allocations: 53.86 kB / 0.6369 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.5876, allocations: 71.94 kB / 0.637 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002134/0.5898, allocations: 0.9302 MB / 0.6379 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/0.5898, allocations: 3.938 kB / 0.6379 GB, free: 11.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.785e-05/0.5899, allocations: 28 kB / 0.638 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.5899, allocations: 20 kB / 0.638 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/0.5923, allocations: 0.7894 MB / 0.6387 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004378/0.5966, allocations: 4.345 MB / 0.643 GB, free: 5.477 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002376/0.599, allocations: 0.7327 MB / 0.6437 GB, free: 4.727 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008788/0.5999, allocations: 297.5 kB / 0.644 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06423/0.6642, allocations: 32.12 MB / 0.6754 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001669/0.6659, allocations: 0.5238 MB / 0.6759 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=44): time 2.655e-06/0.6659, allocations: 0 / 0.6759 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of matching and sorting (n=44): time 0.003734/0.6696, allocations: 1.093 MB / 0.6769 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.6697, allocations: 81.11 kB / 0.677 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006297/0.6704, allocations: 0.5431 MB / 0.6775 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.252e-05/0.6704, allocations: 41.64 kB / 0.6776 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.6707, allocations: 348.5 kB / 0.6779 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.6709, allocations: 142 kB / 0.678 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.6711, allocations: 94.11 kB / 0.6781 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001872/0.6713, allocations: 374.8 kB / 0.6785 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009191/0.6722, allocations: 274.4 kB / 0.6788 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009484/0.6732, allocations: 335.7 kB / 0.6791 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.675, allocations: 0.662 MB / 0.6797 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.6751, allocations: 4 kB / 0.6797 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.002271/0.6773, allocations: 0.8347 MB / 0.6805 GB, free: 11 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.49e-05/0.6774, allocations: 122.8 kB / 0.6807 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.6775, allocations: 0 / 0.6807 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.6775, allocations: 4 kB / 0.6807 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00068/0.6782, allocations: 135.9 kB / 0.6808 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.6782, allocations: 7.984 kB / 0.6808 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/0.679, allocations: 108.2 kB / 0.6809 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.425e-05/0.679, allocations: 35.97 kB / 0.6809 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001056/0.6801, allocations: 376.9 kB / 0.6813 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009626/0.6811, allocations: 339.2 kB / 0.6816 GB, free: 9.824 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001729/0.6828, allocations: 0.6492 MB / 0.6823 GB, free: 9.113 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.849e-06/0.6828, allocations: 8 kB / 0.6823 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization_lambda0): time 0.00212/0.6849, allocations: 0.8166 MB / 0.6831 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.247e-05/0.6851, allocations: 130.7 kB / 0.6832 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.6851, allocations: 0 / 0.6832 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.6851, allocations: 8 kB / 0.6832 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.6857, allocations: 127.8 kB / 0.6833 GB, free: 7.973 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.6857, allocations: 4 kB / 0.6833 GB, free: 7.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006695/0.6864, allocations: 104.5 kB / 0.6834 GB, free: 7.867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.6864, allocations: 20 kB / 0.6834 GB, free: 7.848 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.0002761/0.6867, allocations: 214.2 kB / 0.6836 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.6868, allocations: 75.14 kB / 0.6837 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003162/0.69, allocations: 1.84 MB / 0.6855 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-05/0.69, allocations: 27.95 kB / 0.6855 GB, free: 5.68 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.69, allocations: 3.938 kB / 0.6855 GB, free: 5.676 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.69, allocations: 0 / 0.6855 GB, free: 5.676 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002936/0.693, allocations: 2.018 MB / 0.6875 GB, free: 3.594 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.693, allocations: 0 / 0.6875 GB, free: 3.594 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005617/0.6936, allocations: 111.9 kB / 0.6876 GB, free: 3.484 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.6936, allocations: 7.984 kB / 0.6876 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/0.6936, allocations: 12 kB / 0.6876 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.171e-06/0.6936, allocations: 4 kB / 0.6876 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.6936, allocations: 3.938 kB / 0.6876 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003681/0.6973, allocations: 1.205 MB / 0.6888 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004765/0.6978, allocations: 223.5 kB / 0.689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.698, allocations: 12 kB / 0.689 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000986/0.699, allocations: 71.89 kB / 0.6891 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/0.6993, allocations: 87.84 kB / 0.6892 GB, free: 1.812 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-05/0.6994, allocations: 16 kB / 0.6892 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006962/0.7001, allocations: 379.1 kB / 0.6896 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/0.7001, allocations: 0 / 0.6896 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004874/0.705, allocations: 1.116 MB / 0.6907 GB, free: 320 kB / 0.5294 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.006207/0.7112, allocations: 0.9843 MB / 0.6916 GB, free: 15.32 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005041/0.7163, allocations: 1.556 MB / 0.6931 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.7164, allocations: 0 / 0.6931 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001881/0.7183, allocations: 0.5634 MB / 0.6937 GB, free: 13.11 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.7211, allocations: 362 kB / 0.694 GB, free: 12.76 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004305/0.7254, allocations: 1.731 MB / 0.6957 GB, free: 10.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008281/0.7262, allocations: 1.011 MB / 0.6967 GB, free: 9.938 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.7267, allocations: 63.42 kB / 0.6968 GB, free: 9.875 MB / 0.545 GB Notification: Performance of SimCode: time 1.463e-06/0.7267, allocations: 0 / 0.6968 GB, free: 9.875 MB / 0.545 GB Notification: Performance of Templates: time 0.05763/0.7843, allocations: 25.11 MB / 0.7213 GB, free: 0.7266 MB / 0.5606 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)