Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") translateModel(ThermoPower.Test.WaterComponents.TestValves,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.0017/0.0017, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.504/1.504, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2824/0.2824, allocations: 48.85 MB / 319.9 MB, free: 11.09 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.001549/0.001549, allocations: 65.53 kB / 390.1 MB, free: 48.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1026, allocations: 59.16 MB / 449.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.0705/0.1731, allocations: 70.89 MB / 0.5079 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.1875, allocations: 11.89 MB / 0.5196 GB, free: 6.699 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008505/0.1884, allocations: 19.88 kB / 0.5196 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.1897, allocations: 405.2 kB / 0.52 GB, free: 6.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.1911, allocations: 0.5161 MB / 0.5205 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01468/0.2057, allocations: 5.542 MB / 0.5259 GB, free: 204 kB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.2014/0.4071, allocations: 1.357 MB / 0.5272 GB, free: 10.02 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007962/0.4079, allocations: 0.5529 MB / 0.5277 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007715/0.4087, allocations: 0.5278 MB / 0.5283 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006734/0.4094, allocations: 0.5826 MB / 0.5288 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.888e-05/0.4095, allocations: 59.88 kB / 0.5289 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.421, allocations: 6.347 MB / 0.5351 GB, free: 9.984 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.4213, allocations: 158.5 kB / 0.5352 GB, free: 9.984 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000714/0.422, allocations: 442 kB / 0.5356 GB, free: 9.984 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01004/0.4321, allocations: 4.326 MB / 0.5399 GB, free: 9.832 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.4321, allocations: 0.5625 kB / 0.5399 GB, free: 9.832 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4321, allocations: 0 / 0.5399 GB, free: 9.832 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.4321, allocations: 0.75 kB / 0.5399 GB, free: 9.832 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.007322/0.4395, allocations: 1.814 MB / 0.5416 GB, free: 8.977 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.521e-05/0.4396, allocations: 14.17 kB / 0.5417 GB, free: 8.973 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006301/0.4402, allocations: 130.9 kB / 0.5418 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009072/0.4411, allocations: 0.5528 MB / 0.5423 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.4412, allocations: 37.31 kB / 0.5424 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.4413, allocations: 51.86 kB / 0.5424 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.4431, allocations: 0.8371 MB / 0.5432 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.4431, allocations: 4.125 kB / 0.5432 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.855e-05/0.4432, allocations: 24.05 kB / 0.5433 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.4432, allocations: 13.34 kB / 0.5433 GB, free: 8.508 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.4451, allocations: 0.8361 MB / 0.5441 GB, free: 8.5 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002988/0.4481, allocations: 3.52 MB / 0.5475 GB, free: 5.961 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.4491, allocations: 410.8 kB / 0.5479 GB, free: 5.934 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.4495, allocations: 194.8 kB / 0.5481 GB, free: 5.926 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0636/0.5131, allocations: 31.99 MB / 0.5793 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.5132, allocations: 38.94 kB / 0.5794 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006898/0.5139, allocations: 86.69 kB / 0.5795 GB, free: 15.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 4.088e-06/0.5139, allocations: 0 / 0.5795 GB, free: 15.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.008713/0.5227, allocations: 1.79 MB / 0.5812 GB, free: 14.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.5227, allocations: 64.08 kB / 0.5813 GB, free: 14.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007092/0.5234, allocations: 0.6228 MB / 0.5819 GB, free: 14.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.476e-05/0.5235, allocations: 35.83 kB / 0.5819 GB, free: 14.19 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002365/0.5237, allocations: 338.3 kB / 0.5822 GB, free: 14.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5239, allocations: 108.6 kB / 0.5823 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.524, allocations: 78.77 kB / 0.5824 GB, free: 13.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5241, allocations: 323.4 kB / 0.5827 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004093/0.5246, allocations: 163.3 kB / 0.5829 GB, free: 13.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004311/0.525, allocations: 210.3 kB / 0.5831 GB, free: 13.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008165/0.5258, allocations: 378.1 kB / 0.5834 GB, free: 13.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.5258, allocations: 3.5 kB / 0.5834 GB, free: 13.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001471/0.5273, allocations: 0.6334 MB / 0.5841 GB, free: 13.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.5273, allocations: 7.031 kB / 0.5841 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.5274, allocations: 8 kB / 0.5841 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008091/0.5355, allocations: 1.192 MB / 0.5852 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.5357, allocations: 46.61 kB / 0.5853 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/0.5375, allocations: 0.9686 MB / 0.5862 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000694/0.5382, allocations: 21.17 kB / 0.5862 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.5383, allocations: 22.28 kB / 0.5863 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005362/0.5388, allocations: 264.2 kB / 0.5865 GB, free: 11.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004132/0.5393, allocations: 221.3 kB / 0.5867 GB, free: 11.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008116/0.5401, allocations: 383.7 kB / 0.5871 GB, free: 11.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.5401, allocations: 0 / 0.5871 GB, free: 11.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.001349/0.5415, allocations: 0.5247 MB / 0.5876 GB, free: 10.97 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.5415, allocations: 8 kB / 0.5876 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.5415, allocations: 288 / 0.5876 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003144/0.5418, allocations: 68.98 kB / 0.5877 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.5422, allocations: 95.17 kB / 0.5878 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.5437, allocations: 1.569 MB / 0.5893 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000617/0.5444, allocations: 31.16 kB / 0.5893 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.5444, allocations: 18.8 kB / 0.5894 GB, free: 9.211 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.5446, allocations: 197.4 kB / 0.5895 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.5448, allocations: 79.06 kB / 0.5896 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.5474, allocations: 2.032 MB / 0.5916 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/0.5474, allocations: 23.59 kB / 0.5916 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-06/0.5474, allocations: 0 / 0.5916 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.5474, allocations: 6.328 kB / 0.5916 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001055/0.5485, allocations: 0.9403 MB / 0.5925 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5485, allocations: 2.062 kB / 0.5925 GB, free: 6.977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.5487, allocations: 35.66 kB / 0.5926 GB, free: 6.945 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003263/0.552, allocations: 1.402 MB / 0.594 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.552, allocations: 11 kB / 0.594 GB, free: 5.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.5541, allocations: 2.063 MB / 0.596 GB, free: 4.293 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5542, allocations: 4 kB / 0.596 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.5563, allocations: 1.748 MB / 0.5977 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/0.5566, allocations: 179.2 kB / 0.5979 GB, free: 2.926 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.5567, allocations: 17.84 kB / 0.5979 GB, free: 2.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.5572, allocations: 29.06 kB / 0.5979 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.163e-05/0.5573, allocations: 36 kB / 0.5979 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.847e-05/0.5573, allocations: 15.62 kB / 0.598 GB, free: 2.855 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004953/0.5578, allocations: 452.6 kB / 0.5984 GB, free: 2.523 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5578, allocations: 0 / 0.5984 GB, free: 2.523 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003975/0.5618, allocations: 1.089 MB / 0.5994 GB, free: 1.488 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,35)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005609/0.5674, allocations: 1 MB / 0.6004 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002815/0.5702, allocations: 0.922 MB / 0.6013 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5703, allocations: 3.938 kB / 0.6013 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009843/0.5713, allocations: 497.5 kB / 0.6018 GB, free: 15.58 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.5736, allocations: 442.9 kB / 0.6022 GB, free: 15.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.5759, allocations: 1.608 MB / 0.6038 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.5765, allocations: 0.9908 MB / 0.6048 GB, free: 12.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005571/0.577, allocations: 263.6 kB / 0.605 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.674e-05/0.5771, allocations: 47.17 kB / 0.6051 GB, free: 12.48 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5771, allocations: 4 kB / 0.6051 GB, free: 12.47 MB / 462.1 MB Notification: Performance of Templates: time 0.06353/0.6407, allocations: 44.18 MB / 0.6482 GB, free: 0.5 MB / 494.1 MB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.TestValves -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)