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.001278/0.001278, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001214/0.001214, allocations: 195.4 kB / 18.52 MB, free: 4.637 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.429/1.429, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3203/0.3203, allocations: 48.85 MB / 320.6 MB, free: 11.07 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.002789/0.00279, allocations: 66.67 kB / 390.7 MB, free: 48.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1195, allocations: 59.17 MB / 449.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3935/0.5131, allocations: 109.9 MB / 0.5467 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01521/0.5283, allocations: 11.71 MB / 0.5581 GB, free: 5.023 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.5297, allocations: 19.38 kB / 0.5581 GB, free: 5.023 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.5316, allocations: 0.5756 MB / 0.5587 GB, free: 5.023 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001937/0.5336, allocations: 0.6692 MB / 0.5593 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01818/0.5518, allocations: 5.689 MB / 0.5649 GB, free: 4.844 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003292/0.5551, allocations: 1.866 MB / 0.5667 GB, free: 4.754 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001674/0.5568, allocations: 0.6996 MB / 0.5674 GB, free: 4.688 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.5588, allocations: 0.7081 MB / 0.5681 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.5601, allocations: 0.7068 MB / 0.5688 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.5603, allocations: 79.53 kB / 0.5689 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01527/0.5756, allocations: 6.309 MB / 0.575 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004034/0.576, allocations: 191.1 kB / 0.5752 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.5771, allocations: 492.3 kB / 0.5757 GB, free: 3.602 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01419/0.5913, allocations: 4.424 MB / 0.58 GB, free: 1.809 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.5914, allocations: 0 / 0.58 GB, free: 1.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5914, allocations: 3.938 kB / 0.58 GB, free: 1.805 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.5914, allocations: 0 / 0.58 GB, free: 1.805 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.005619/0.597, allocations: 1.858 MB / 0.5818 GB, free: 0.625 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.5971, allocations: 11.17 kB / 0.5818 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003583/0.5975, allocations: 127.7 kB / 0.582 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000644/0.5981, allocations: 0.5176 MB / 0.5825 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.452e-05/0.5982, allocations: 52.28 kB / 0.5825 GB, free: 192 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.753e-05/0.5983, allocations: 73.05 kB / 0.5826 GB, free: 188 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002144/0.6004, allocations: 0.9749 MB / 0.5835 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.6005, allocations: 0 / 0.5835 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.719e-05/0.6005, allocations: 30.12 kB / 0.5836 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.83e-05/0.6006, allocations: 17.53 kB / 0.5836 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002406/0.603, allocations: 0.8013 MB / 0.5844 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005719/0.6087, allocations: 4.699 MB / 0.5889 GB, free: 11.58 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.6113, allocations: 0.7147 MB / 0.5896 GB, free: 11.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009218/0.6122, allocations: 295 kB / 0.5899 GB, free: 11.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07255/0.6848, allocations: 31.98 MB / 0.6212 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002095/0.6869, allocations: 0.5179 MB / 0.6217 GB, free: 10.59 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 3.878e-06/0.687, allocations: 0 / 0.6217 GB, free: 10.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.004228/0.6912, allocations: 1.069 MB / 0.6227 GB, free: 9.512 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.825e-05/0.6913, allocations: 95.22 kB / 0.6228 GB, free: 9.402 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008819/0.6922, allocations: 0.5704 MB / 0.6234 GB, free: 8.824 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.218e-05/0.6923, allocations: 33.7 kB / 0.6234 GB, free: 8.785 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.6927, allocations: 368.4 kB / 0.6237 GB, free: 8.418 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.6929, allocations: 140.1 kB / 0.6239 GB, free: 8.285 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.6931, allocations: 94.23 kB / 0.624 GB, free: 8.188 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.6933, allocations: 386.7 kB / 0.6243 GB, free: 7.801 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.6943, allocations: 266.9 kB / 0.6246 GB, free: 7.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.6954, allocations: 361.7 kB / 0.6249 GB, free: 7.152 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.6974, allocations: 0.6737 MB / 0.6256 GB, free: 6.418 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.6974, allocations: 4 kB / 0.6256 GB, free: 6.414 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002705/0.7002, allocations: 0.8412 MB / 0.6264 GB, free: 5.543 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.7003, allocations: 127 kB / 0.6265 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.7003, allocations: 8 kB / 0.6265 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/0.7004, allocations: 4 kB / 0.6265 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007011/0.7011, allocations: 135.7 kB / 0.6267 GB, free: 5.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.7011, allocations: 4 kB / 0.6267 GB, free: 5.246 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008899/0.702, allocations: 124.2 kB / 0.6268 GB, free: 5.125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-05/0.7021, allocations: 27.98 kB / 0.6268 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001146/0.7032, allocations: 373 kB / 0.6272 GB, free: 4.727 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009702/0.7042, allocations: 349.3 kB / 0.6275 GB, free: 4.344 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001814/0.706, allocations: 0.6546 MB / 0.6281 GB, free: 3.621 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.13e-06/0.7061, allocations: 4 kB / 0.6282 GB, free: 3.617 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.002375/0.7084, allocations: 0.8074 MB / 0.6289 GB, free: 2.777 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.7086, allocations: 118.8 kB / 0.6291 GB, free: 2.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.7086, allocations: 4 kB / 0.6291 GB, free: 2.633 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.7086, allocations: 4 kB / 0.6291 GB, free: 2.629 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006017/0.7092, allocations: 136.1 kB / 0.6292 GB, free: 2.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.7092, allocations: 11.98 kB / 0.6292 GB, free: 2.484 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/0.71, allocations: 97.94 kB / 0.6293 GB, free: 2.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.71, allocations: 24 kB / 0.6293 GB, free: 2.367 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.0003159/0.7104, allocations: 230.1 kB / 0.6295 GB, free: 2.137 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.7105, allocations: 67.25 kB / 0.6296 GB, free: 2.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00339/0.7139, allocations: 1.836 MB / 0.6314 GB, free: 224 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-05/0.7139, allocations: 23.95 kB / 0.6314 GB, free: 200 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.714, allocations: 0 / 0.6314 GB, free: 200 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.714, allocations: 4 kB / 0.6314 GB, free: 196 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.717, allocations: 1.991 MB / 0.6334 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/0.7171, allocations: 3.938 kB / 0.6334 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005928/0.7177, allocations: 115.8 kB / 0.6335 GB, free: 14.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.7177, allocations: 4 kB / 0.6335 GB, free: 14.03 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.7177, allocations: 8 kB / 0.6335 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.7177, allocations: 4 kB / 0.6335 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.7178, allocations: 3.938 kB / 0.6335 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.7204, allocations: 1.188 MB / 0.6347 GB, free: 12.81 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003781/0.7208, allocations: 219.5 kB / 0.6349 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/0.7209, allocations: 15.98 kB / 0.6349 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006614/0.7216, allocations: 75.89 kB / 0.635 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.7218, allocations: 75.91 kB / 0.635 GB, free: 12.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.7219, allocations: 17.19 kB / 0.635 GB, free: 12.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0005372/0.7224, allocations: 395.1 kB / 0.6354 GB, free: 12.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7224, allocations: 0 / 0.6354 GB, free: 12.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003383/0.7258, allocations: 1.124 MB / 0.6365 GB, free: 10.89 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.004067/0.7299, allocations: 0.9888 MB / 0.6375 GB, free: 9.969 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004011/0.7339, allocations: 1.564 MB / 0.639 GB, free: 8.312 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.734, allocations: 0 / 0.639 GB, free: 8.312 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.7353, allocations: 0.5574 MB / 0.6396 GB, free: 7.754 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/0.7374, allocations: 366.8 kB / 0.6399 GB, free: 7.398 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.7407, allocations: 1.758 MB / 0.6416 GB, free: 5.602 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.7416, allocations: 1.019 MB / 0.6426 GB, free: 4.559 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002912/0.7419, allocations: 59.44 kB / 0.6427 GB, free: 4.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7419, allocations: 0 / 0.6427 GB, free: 4.5 MB / 478.1 MB Notification: Performance of Templates: time 0.04395/0.7858, allocations: 25.33 MB / 0.6674 GB, free: 11.14 MB / 0.4981 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)