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.0008888/0.0008891, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009477/0.0009478, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.464/1.464, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2797/0.2797, allocations: 48.78 MB / 320.8 MB, free: 11.11 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.0005863/0.0005864, allocations: 14.83 kB / 391.8 MB, free: 50.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1146, allocations: 60.27 MB / 452.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestSplitRev): time 0.3429/0.4576, allocations: 109.2 MB / 0.5481 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.4723, allocations: 12.41 MB / 0.5603 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009945/0.4734, allocations: 26.47 kB / 0.5603 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.4748, allocations: 483.8 kB / 0.5607 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.4762, allocations: 0.6537 MB / 0.5614 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01496/0.4912, allocations: 4.663 MB / 0.5659 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003658/0.4949, allocations: 2.784 MB / 0.5687 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009782/0.4959, allocations: 0.5815 MB / 0.5692 GB, free: 5.332 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009836/0.4969, allocations: 0.6243 MB / 0.5698 GB, free: 5.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007161/0.4976, allocations: 0.7004 MB / 0.5705 GB, free: 5.23 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.156e-05/0.4977, allocations: 48.94 kB / 0.5706 GB, free: 5.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01131/0.509, allocations: 6.372 MB / 0.5768 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.5093, allocations: 158.2 kB / 0.5769 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006918/0.51, allocations: 486 kB / 0.5774 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009456/0.5195, allocations: 4.386 MB / 0.5817 GB, free: 2.445 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.5195, allocations: 0 / 0.5817 GB, free: 2.445 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.5195, allocations: 1.812 kB / 0.5817 GB, free: 2.445 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.5196, allocations: 0 / 0.5817 GB, free: 2.445 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.004787/0.5244, allocations: 1.744 MB / 0.5834 GB, free: 1.289 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.5244, allocations: 9.969 kB / 0.5834 GB, free: 1.289 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003254/0.5247, allocations: 129.2 kB / 0.5835 GB, free: 1.23 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005439/0.5253, allocations: 0.5131 MB / 0.584 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.5253, allocations: 55.22 kB / 0.5841 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.705e-05/0.5254, allocations: 76.23 kB / 0.5841 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.5275, allocations: 1.024 MB / 0.5851 GB, free: 452 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.5276, allocations: 7.922 kB / 0.5852 GB, free: 444 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.165e-05/0.5277, allocations: 31.02 kB / 0.5852 GB, free: 440 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.5277, allocations: 17.09 kB / 0.5852 GB, free: 440 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002491/0.5302, allocations: 0.8936 MB / 0.5861 GB, free: 228 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004798/0.535, allocations: 4.72 MB / 0.5907 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.5376, allocations: 0.8049 MB / 0.5915 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009566/0.5385, allocations: 342.4 kB / 0.5918 GB, free: 11.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06752/0.6061, allocations: 32.3 MB / 0.6233 GB, free: 12.35 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00202/0.6081, allocations: 0.553 MB / 0.6239 GB, free: 11.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 3.296e-06/0.6081, allocations: 0 / 0.6239 GB, free: 11.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.004324/0.6125, allocations: 1.216 MB / 0.6251 GB, free: 10.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/0.6126, allocations: 85.09 kB / 0.6251 GB, free: 10.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007637/0.6134, allocations: 0.5609 MB / 0.6257 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.722e-05/0.6134, allocations: 40.2 kB / 0.6257 GB, free: 10.24 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.6137, allocations: 375.1 kB / 0.6261 GB, free: 10 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.6139, allocations: 137.4 kB / 0.6262 GB, free: 9.875 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.614, allocations: 49.7 kB / 0.6263 GB, free: 9.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.6141, allocations: 382.7 kB / 0.6266 GB, free: 9.438 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.6152, allocations: 312.8 kB / 0.6269 GB, free: 9.129 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.6164, allocations: 413.7 kB / 0.6273 GB, free: 8.691 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.6185, allocations: 0.7769 MB / 0.6281 GB, free: 7.855 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.6186, allocations: 0 / 0.6281 GB, free: 7.855 MB / 462.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002535/0.6211, allocations: 0.9466 MB / 0.629 GB, free: 6.879 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001741/0.6213, allocations: 277.5 kB / 0.6293 GB, free: 6.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.6213, allocations: 4 kB / 0.6293 GB, free: 6.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.6213, allocations: 4 kB / 0.6293 GB, free: 6.535 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007782/0.6221, allocations: 167.8 kB / 0.6294 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.6222, allocations: 13.69 kB / 0.6295 GB, free: 6.359 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.6232, allocations: 175.2 kB / 0.6296 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.277e-05/0.6233, allocations: 20 kB / 0.6296 GB, free: 6.168 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.412e-06/0.6233, allocations: 4 kB / 0.6296 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00227/0.6255, allocations: 0.8573 MB / 0.6305 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.6256, allocations: 4 kB / 0.6305 GB, free: 5.277 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.395e-06/0.6256, allocations: 4 kB / 0.6305 GB, free: 5.273 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006466/0.6262, allocations: 164.1 kB / 0.6306 GB, free: 5.113 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.6263, allocations: 4 kB / 0.6307 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009683/0.6272, allocations: 167.4 kB / 0.6308 GB, free: 4.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.6273, allocations: 20 kB / 0.6308 GB, free: 4.926 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.0003895/0.6277, allocations: 275.1 kB / 0.6311 GB, free: 4.648 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.6278, allocations: 79.08 kB / 0.6312 GB, free: 4.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003897/0.6317, allocations: 1.934 MB / 0.6331 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.834e-05/0.6318, allocations: 23.97 kB / 0.6331 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.6318, allocations: 0 / 0.6331 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.6318, allocations: 7.984 kB / 0.6331 GB, free: 2.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.635, allocations: 2.039 MB / 0.6351 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.635, allocations: 0 / 0.6351 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006317/0.6357, allocations: 139.9 kB / 0.6352 GB, free: 376 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/0.6357, allocations: 4 kB / 0.6352 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.6357, allocations: 11.98 kB / 0.6352 GB, free: 360 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.349e-06/0.6358, allocations: 0 / 0.6352 GB, free: 360 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.6358, allocations: 5.125 kB / 0.6352 GB, free: 356 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.6385, allocations: 1.278 MB / 0.6365 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003669/0.6389, allocations: 219.6 kB / 0.6367 GB, free: 14.81 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.639, allocations: 11.98 kB / 0.6367 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008705/0.6399, allocations: 143.7 kB / 0.6368 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.6401, allocations: 79.83 kB / 0.6369 GB, free: 14.58 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.943e-05/0.6402, allocations: 16 kB / 0.6369 GB, free: 14.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004647/0.6406, allocations: 403 kB / 0.6373 GB, free: 14.18 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6406, allocations: 4 kB / 0.6373 GB, free: 14.17 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003237/0.6439, allocations: 1.128 MB / 0.6384 GB, free: 13.04 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.005204/0.6491, allocations: 0.9856 MB / 0.6394 GB, free: 12.13 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004019/0.6532, allocations: 1.683 MB / 0.641 GB, free: 10.35 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6532, allocations: 0 / 0.641 GB, free: 10.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001476/0.6547, allocations: 0.614 MB / 0.6416 GB, free: 9.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/0.657, allocations: 351 kB / 0.642 GB, free: 9.395 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.6605, allocations: 2.148 MB / 0.6441 GB, free: 7.211 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.6611, allocations: 1.015 MB / 0.645 GB, free: 6.168 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008847/0.662, allocations: 384.5 kB / 0.6454 GB, free: 5.793 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.6622, allocations: 51.44 kB / 0.6455 GB, free: 5.742 MB / 478.1 MB Notification: Performance of SimCode: time 5.41e-07/0.6622, allocations: 0 / 0.6455 GB, free: 5.742 MB / 478.1 MB Notification: Performance of Templates: time 0.0738/0.736, allocations: 40.89 MB / 0.6854 GB, free: 12.81 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)