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.001328/0.001328, allocations: 98.41 kB / 16.5 MB, free: 6.688 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.001438/0.001438, allocations: 190 kB / 17.42 MB, free: 6.094 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.404/1.404, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3122/0.3122, allocations: 48.84 MB / 319.5 MB, free: 11.32 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.00157/0.00157, allocations: 62.19 kB / 389.3 MB, free: 49.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1241, allocations: 59.16 MB / 448.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3912/0.5154, allocations: 111 MB / 0.5464 GB, free: 5.504 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.5318, allocations: 12.6 MB / 0.5587 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.5332, allocations: 26.78 kB / 0.5587 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.5348, allocations: 485.8 kB / 0.5592 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.5364, allocations: 0.6499 MB / 0.5598 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01808/0.5545, allocations: 4.667 MB / 0.5644 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004969/0.5595, allocations: 2.781 MB / 0.5671 GB, free: 4.906 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001567/0.5611, allocations: 0.6044 MB / 0.5677 GB, free: 4.836 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.5632, allocations: 0.6369 MB / 0.5683 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009122/0.5641, allocations: 0.7238 MB / 0.569 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.5642, allocations: 56.28 kB / 0.5691 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01328/0.5775, allocations: 6.381 MB / 0.5753 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003533/0.5779, allocations: 169.6 kB / 0.5755 GB, free: 3.762 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009786/0.5789, allocations: 470.3 kB / 0.5759 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01241/0.5913, allocations: 4.424 MB / 0.5802 GB, free: 1.785 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.5914, allocations: 0 / 0.5802 GB, free: 1.785 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5914, allocations: 0 / 0.5802 GB, free: 1.785 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.5914, allocations: 0 / 0.5802 GB, free: 1.785 MB / 414.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.005102/0.5965, allocations: 1.853 MB / 0.582 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.5966, allocations: 9.625 kB / 0.582 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003635/0.597, allocations: 128.1 kB / 0.5822 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007085/0.5977, allocations: 0.5174 MB / 0.5827 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.5977, allocations: 53.34 kB / 0.5827 GB, free: 176 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-05/0.5978, allocations: 77.91 kB / 0.5828 GB, free: 168 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/0.6, allocations: 0.9681 MB / 0.5837 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/0.6, allocations: 12.56 kB / 0.5838 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.674e-05/0.6001, allocations: 29.06 kB / 0.5838 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.6001, allocations: 16.69 kB / 0.5838 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002523/0.6027, allocations: 0.7922 MB / 0.5846 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004751/0.6074, allocations: 4.672 MB / 0.5891 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.6099, allocations: 0.7052 MB / 0.5898 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008885/0.6108, allocations: 288.9 kB / 0.5901 GB, free: 11.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06307/0.6739, allocations: 31.99 MB / 0.6213 GB, free: 10.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00179/0.6757, allocations: 0.5025 MB / 0.6218 GB, free: 10.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.715e-06/0.6757, allocations: 0 / 0.6218 GB, free: 10.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.004028/0.6797, allocations: 1.078 MB / 0.6229 GB, free: 8.973 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.6798, allocations: 88.39 kB / 0.623 GB, free: 8.871 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008058/0.6807, allocations: 0.5627 MB / 0.6235 GB, free: 8.301 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.6807, allocations: 41.69 kB / 0.6236 GB, free: 8.254 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/0.6811, allocations: 372.3 kB / 0.6239 GB, free: 7.887 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.6812, allocations: 136.7 kB / 0.624 GB, free: 7.754 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001896/0.6814, allocations: 98.23 kB / 0.6241 GB, free: 7.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.6816, allocations: 384.5 kB / 0.6245 GB, free: 7.266 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000906/0.6825, allocations: 270.8 kB / 0.6248 GB, free: 7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009456/0.6835, allocations: 357.7 kB / 0.6251 GB, free: 6.613 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.6853, allocations: 0.6862 MB / 0.6258 GB, free: 5.867 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.6853, allocations: 0 / 0.6258 GB, free: 5.867 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002276/0.6876, allocations: 0.8414 MB / 0.6266 GB, free: 4.996 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.268e-05/0.6876, allocations: 122.7 kB / 0.6267 GB, free: 4.852 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.6877, allocations: 6.5 kB / 0.6267 GB, free: 4.848 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.6877, allocations: 4 kB / 0.6267 GB, free: 4.844 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/0.6884, allocations: 139.8 kB / 0.6269 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.6884, allocations: 7.938 kB / 0.6269 GB, free: 4.699 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.6895, allocations: 151.4 kB / 0.627 GB, free: 4.551 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.6895, allocations: 20 kB / 0.627 GB, free: 4.531 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001034/0.6906, allocations: 381 kB / 0.6274 GB, free: 4.156 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008559/0.6914, allocations: 345.4 kB / 0.6277 GB, free: 3.773 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00162/0.6931, allocations: 0.6624 MB / 0.6284 GB, free: 3.043 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.077e-06/0.6931, allocations: 0 / 0.6284 GB, free: 3.043 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002081/0.6952, allocations: 0.8073 MB / 0.6292 GB, free: 2.203 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.659e-05/0.6953, allocations: 119.1 kB / 0.6293 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.6953, allocations: 8 kB / 0.6293 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.6953, allocations: 8 kB / 0.6293 GB, free: 2.047 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005781/0.6959, allocations: 131.8 kB / 0.6294 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/0.6959, allocations: 11.92 kB / 0.6294 GB, free: 1.906 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009025/0.6968, allocations: 131.5 kB / 0.6295 GB, free: 1.777 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.6969, allocations: 27.98 kB / 0.6296 GB, free: 1.75 MB / 462.1 MB 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.0002773/0.6972, allocations: 222.1 kB / 0.6298 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.6974, allocations: 67.25 kB / 0.6298 GB, free: 1.461 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.7006, allocations: 1.832 MB / 0.6316 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.621e-05/0.7007, allocations: 19.97 kB / 0.6317 GB, free: 15.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.7007, allocations: 7.938 kB / 0.6317 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.7007, allocations: 3.984 kB / 0.6317 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/0.7037, allocations: 1.983 MB / 0.6336 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.7037, allocations: 7.875 kB / 0.6336 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005804/0.7043, allocations: 115.1 kB / 0.6337 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.7043, allocations: 4 kB / 0.6337 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.827e-05/0.7044, allocations: 12 kB / 0.6337 GB, free: 13.42 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.7044, allocations: 7.922 kB / 0.6337 GB, free: 13.41 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.7044, allocations: 7.969 kB / 0.6338 GB, free: 13.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/0.7069, allocations: 1.176 MB / 0.6349 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003895/0.7073, allocations: 227.5 kB / 0.6351 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.7075, allocations: 8 kB / 0.6351 GB, free: 11.95 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/0.7084, allocations: 111.8 kB / 0.6352 GB, free: 11.84 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.7087, allocations: 75.89 kB / 0.6353 GB, free: 11.77 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.196e-05/0.7087, allocations: 19.98 kB / 0.6353 GB, free: 11.75 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005179/0.7093, allocations: 399.1 kB / 0.6357 GB, free: 11.36 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7093, allocations: 0 / 0.6357 GB, free: 11.36 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003652/0.7129, allocations: 1.128 MB / 0.6368 GB, free: 10.23 MB / 478.1 MB 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.005527/0.7185, allocations: 0.9971 MB / 0.6378 GB, free: 9.309 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003717/0.7222, allocations: 1.536 MB / 0.6393 GB, free: 7.676 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.7222, allocations: 0 / 0.6393 GB, free: 7.676 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.7235, allocations: 0.5654 MB / 0.6398 GB, free: 7.113 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.7256, allocations: 358.9 kB / 0.6402 GB, free: 6.766 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.7292, allocations: 2.126 MB / 0.6422 GB, free: 4.602 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006544/0.7299, allocations: 1.015 MB / 0.6432 GB, free: 3.559 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008732/0.7308, allocations: 384.5 kB / 0.6436 GB, free: 3.184 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.731, allocations: 51.44 kB / 0.6437 GB, free: 3.133 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.731, allocations: 0 / 0.6437 GB, free: 3.133 MB / 478.1 MB Notification: Performance of Templates: time 0.06345/0.7945, allocations: 40.96 MB / 0.6837 GB, free: 10.14 MB / 0.5137 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)