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.00133/0.00133, allocations: 111.8 kB / 17.74 MB, free: 5.34 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.001257/0.001257, allocations: 193.6 kB / 18.68 MB, free: 4.41 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.472/1.472, 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.3146/0.3146, allocations: 48.85 MB / 320.8 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.001501/0.001501, allocations: 72.27 kB / 451.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1342, allocations: 59.16 MB / 0.4984 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.4258/0.56, allocations: 109.9 MB / 0.6057 GB, free: 9.59 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.5771, allocations: 11.71 MB / 0.6172 GB, free: 72 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.5785, allocations: 21.88 kB / 0.6172 GB, free: 64 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002042/0.5805, allocations: 0.5732 MB / 0.6177 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001728/0.5823, allocations: 0.665 MB / 0.6184 GB, free: 15 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01882/0.6012, allocations: 5.71 MB / 0.624 GB, free: 9.43 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003541/0.6047, allocations: 1.872 MB / 0.6258 GB, free: 7.551 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001184/0.6059, allocations: 0.6904 MB / 0.6265 GB, free: 6.852 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.6072, allocations: 0.72 MB / 0.6272 GB, free: 6.129 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008909/0.6081, allocations: 0.7079 MB / 0.6279 GB, free: 5.418 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001299/0.6082, allocations: 80 kB / 0.6279 GB, free: 5.34 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01441/0.6226, allocations: 6.443 MB / 0.6342 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003244/0.623, allocations: 183.3 kB / 0.6344 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000787/0.6238, allocations: 497.7 kB / 0.6349 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.6358, allocations: 4.436 MB / 0.6392 GB, free: 9.777 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.6359, allocations: 4 kB / 0.6392 GB, free: 9.773 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.6359, allocations: 0 / 0.6392 GB, free: 9.773 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.6359, allocations: 0 / 0.6392 GB, free: 9.773 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.005402/0.6413, allocations: 1.855 MB / 0.641 GB, free: 7.844 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.6414, allocations: 11.89 kB / 0.641 GB, free: 7.832 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.6417, allocations: 123.8 kB / 0.6412 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008134/0.6426, allocations: 0.5344 MB / 0.6417 GB, free: 7.137 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.6426, allocations: 54.38 kB / 0.6417 GB, free: 7.082 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.6427, allocations: 72.5 kB / 0.6418 GB, free: 7.012 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.6449, allocations: 0.9718 MB / 0.6428 GB, free: 5.984 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.645, allocations: 3.938 kB / 0.6428 GB, free: 5.98 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.539e-05/0.645, allocations: 30.06 kB / 0.6428 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.127e-05/0.6451, allocations: 20 kB / 0.6428 GB, free: 5.934 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.6475, allocations: 0.7933 MB / 0.6436 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005051/0.6525, allocations: 4.686 MB / 0.6482 GB, free: 0 / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.655, allocations: 0.6958 MB / 0.6488 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009355/0.656, allocations: 293.5 kB / 0.6491 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06755/0.7235, allocations: 32.13 MB / 0.6805 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00187/0.7255, allocations: 0.5196 MB / 0.681 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=42): time 2.815e-06/0.7255, allocations: 3.938 kB / 0.681 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=42): time 0.004091/0.7296, allocations: 1.063 MB / 0.682 GB, free: 9.43 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.067e-05/0.7297, allocations: 89.11 kB / 0.6821 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009021/0.7306, allocations: 0.5588 MB / 0.6827 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.397e-05/0.7307, allocations: 37.7 kB / 0.6827 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.7311, allocations: 376.4 kB / 0.6831 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.7313, allocations: 142 kB / 0.6832 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.7316, allocations: 94.23 kB / 0.6833 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002256/0.7318, allocations: 382.7 kB / 0.6837 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009652/0.7328, allocations: 270.8 kB / 0.6839 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.7338, allocations: 355.7 kB / 0.6843 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001825/0.7357, allocations: 0.6805 MB / 0.6849 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.7357, allocations: 0 / 0.6849 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00248/0.7382, allocations: 0.8502 MB / 0.6857 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.7383, allocations: 126.6 kB / 0.6859 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.7383, allocations: 4 kB / 0.6859 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/0.7384, allocations: 4 kB / 0.6859 GB, free: 5.289 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.739, allocations: 140.1 kB / 0.686 GB, free: 5.152 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.739, allocations: 7.938 kB / 0.686 GB, free: 5.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000825/0.7399, allocations: 112.6 kB / 0.6861 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.7399, allocations: 23.98 kB / 0.6861 GB, free: 5.012 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001116/0.7411, allocations: 385 kB / 0.6865 GB, free: 4.629 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008672/0.7419, allocations: 341.4 kB / 0.6868 GB, free: 4.254 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001682/0.7436, allocations: 0.6584 MB / 0.6875 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.147e-06/0.7437, allocations: 0 / 0.6875 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002165/0.7458, allocations: 0.8192 MB / 0.6883 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.441e-05/0.7459, allocations: 114.8 kB / 0.6884 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.7459, allocations: 4 kB / 0.6884 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.746, allocations: 8 kB / 0.6884 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005631/0.7465, allocations: 131.8 kB / 0.6885 GB, free: 2.398 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.373e-05/0.7465, allocations: 8.125 kB / 0.6885 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007512/0.7473, allocations: 107.4 kB / 0.6886 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.79e-05/0.7474, allocations: 20 kB / 0.6887 GB, free: 2.266 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.0003364/0.7477, allocations: 226.1 kB / 0.6889 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.7479, allocations: 71.23 kB / 0.6889 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003194/0.7511, allocations: 1.822 MB / 0.6907 GB, free: 132 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.882e-05/0.7511, allocations: 23.97 kB / 0.6907 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.7512, allocations: 3.938 kB / 0.6907 GB, free: 104 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.7512, allocations: 7.922 kB / 0.6908 GB, free: 96 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003007/0.7542, allocations: 1.983 MB / 0.6927 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.7542, allocations: 3.938 kB / 0.6927 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005588/0.7548, allocations: 118.3 kB / 0.6928 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.7548, allocations: 0 / 0.6928 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.7549, allocations: 11.98 kB / 0.6928 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.886e-06/0.7549, allocations: 7.938 kB / 0.6928 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7549, allocations: 0 / 0.6928 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.7573, allocations: 1.188 MB / 0.694 GB, free: 12.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/0.7577, allocations: 219.5 kB / 0.6942 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.7578, allocations: 12 kB / 0.6942 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.7585, allocations: 71.89 kB / 0.6943 GB, free: 12.39 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002401/0.7588, allocations: 83.91 kB / 0.6944 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.7588, allocations: 15.98 kB / 0.6944 GB, free: 12.29 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005057/0.7593, allocations: 395.1 kB / 0.6948 GB, free: 11.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7593, allocations: 0 / 0.6948 GB, free: 11.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003755/0.7631, allocations: 1.124 MB / 0.6958 GB, free: 10.79 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.005331/0.7684, allocations: 0.9847 MB / 0.6968 GB, free: 9.793 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00412/0.7726, allocations: 1.546 MB / 0.6983 GB, free: 8.148 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.435e-06/0.7726, allocations: 0 / 0.6983 GB, free: 8.148 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.774, allocations: 0.5515 MB / 0.6989 GB, free: 7.594 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.7765, allocations: 364.8 kB / 0.6992 GB, free: 7.238 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.7805, allocations: 1.738 MB / 0.7009 GB, free: 5.457 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007961/0.7813, allocations: 1.011 MB / 0.7019 GB, free: 4.422 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003168/0.7816, allocations: 63.42 kB / 0.702 GB, free: 4.359 MB / 0.545 GB Notification: Performance of SimCode: time 1.283e-06/0.7816, allocations: 0 / 0.702 GB, free: 4.359 MB / 0.545 GB Notification: Performance of Templates: time 0.04815/0.8298, allocations: 25.32 MB / 0.7267 GB, free: 10.99 MB / 0.5762 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)