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.001174/0.001174, allocations: 112.8 kB / 17.69 MB, free: 5.312 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.001074/0.001074, allocations: 192 kB / 18.63 MB, free: 4.379 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.469/1.469, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4303/0.4303, allocations: 48.84 MB / 320.7 MB, free: 11.03 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.002292/0.002292, allocations: 70.86 kB / 391.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1133, allocations: 59.16 MB / 450.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.06546/0.1788, allocations: 70.89 MB / 0.5094 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01475/0.1936, allocations: 11.89 MB / 0.521 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008144/0.1944, allocations: 15.88 kB / 0.521 GB, free: 5.961 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.1956, allocations: 421.1 kB / 0.5214 GB, free: 5.547 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.1968, allocations: 0.5083 MB / 0.5219 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2093/0.4061, allocations: 5.548 MB / 0.5273 GB, free: 9.758 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001716/0.4078, allocations: 1.362 MB / 0.5286 GB, free: 9.758 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006748/0.4085, allocations: 0.553 MB / 0.5292 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006231/0.4092, allocations: 0.5275 MB / 0.5297 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006688/0.4098, allocations: 0.5794 MB / 0.5302 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 9.171e-05/0.4099, allocations: 58.47 kB / 0.5303 GB, free: 9.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01189/0.4218, allocations: 6.486 MB / 0.5366 GB, free: 9.723 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.4221, allocations: 156.5 kB / 0.5368 GB, free: 9.723 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007131/0.4228, allocations: 441.4 kB / 0.5372 GB, free: 9.723 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008775/0.4316, allocations: 4.331 MB / 0.5414 GB, free: 9.547 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4316, allocations: 3.375 kB / 0.5414 GB, free: 9.547 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4317, allocations: 0.8438 kB / 0.5414 GB, free: 9.547 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.4317, allocations: 0 / 0.5414 GB, free: 9.547 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.005981/0.4377, allocations: 1.809 MB / 0.5432 GB, free: 8.688 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.4377, allocations: 17.42 kB / 0.5432 GB, free: 8.684 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004767/0.4382, allocations: 130.1 kB / 0.5434 GB, free: 8.637 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.439, allocations: 0.5735 MB / 0.5439 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.868e-05/0.4391, allocations: 42.77 kB / 0.544 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.614e-05/0.4392, allocations: 50.91 kB / 0.544 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001723/0.4409, allocations: 0.8375 MB / 0.5448 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.4409, allocations: 3.469 kB / 0.5448 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.441, allocations: 21.19 kB / 0.5448 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.441, allocations: 12.66 kB / 0.5449 GB, free: 8.215 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.443, allocations: 0.8337 MB / 0.5457 GB, free: 8.211 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.002878/0.4459, allocations: 3.505 MB / 0.5491 GB, free: 5.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.4469, allocations: 413.4 kB / 0.5495 GB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003925/0.4473, allocations: 195 kB / 0.5497 GB, free: 5.645 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05884/0.5061, allocations: 32.13 MB / 0.5811 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.5062, allocations: 34.5 kB / 0.5811 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006462/0.5068, allocations: 83.69 kB / 0.5812 GB, free: 14.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.094e-06/0.5069, allocations: 4 kB / 0.5812 GB, free: 14.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.008514/0.5154, allocations: 1.796 MB / 0.5829 GB, free: 13.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.5154, allocations: 53.56 kB / 0.583 GB, free: 13.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006279/0.5161, allocations: 0.6234 MB / 0.5836 GB, free: 13.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.5161, allocations: 31.17 kB / 0.5836 GB, free: 13.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002238/0.5163, allocations: 339.4 kB / 0.5839 GB, free: 13.42 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.299e-05/0.5164, allocations: 107.9 kB / 0.584 GB, free: 13.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.5166, allocations: 80.86 kB / 0.5841 GB, free: 13.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.5167, allocations: 328.8 kB / 0.5844 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.5171, allocations: 155.8 kB / 0.5846 GB, free: 12.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.5175, allocations: 213.9 kB / 0.5848 GB, free: 12.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000762/0.5183, allocations: 380.1 kB / 0.5851 GB, free: 12.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.5183, allocations: 1.031 kB / 0.5851 GB, free: 12.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001322/0.5196, allocations: 0.6346 MB / 0.5858 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.5196, allocations: 7.125 kB / 0.5858 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.5196, allocations: 2 kB / 0.5858 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007935/0.5276, allocations: 1.187 MB / 0.5869 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.5278, allocations: 55.83 kB / 0.587 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.5297, allocations: 0.9616 MB / 0.5879 GB, free: 11.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006107/0.5303, allocations: 27.09 kB / 0.588 GB, free: 11.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-05/0.5303, allocations: 23.67 kB / 0.588 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004991/0.5308, allocations: 262.8 kB / 0.5882 GB, free: 11.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003843/0.5312, allocations: 217.3 kB / 0.5884 GB, free: 10.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007309/0.532, allocations: 379.4 kB / 0.5888 GB, free: 10.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.044e-06/0.532, allocations: 3.75 kB / 0.5888 GB, free: 10.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=40) (initialization_lambda0): time 0.001246/0.5332, allocations: 0.5243 MB / 0.5893 GB, free: 10.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.5333, allocations: 8 kB / 0.5893 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.5333, allocations: 0 / 0.5893 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000301/0.5336, allocations: 67.58 kB / 0.5894 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.534, allocations: 95.36 kB / 0.5895 GB, free: 10.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.5356, allocations: 1.569 MB / 0.591 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.5361, allocations: 23.66 kB / 0.591 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.5362, allocations: 19.67 kB / 0.591 GB, free: 8.406 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.0001876/0.5364, allocations: 196.6 kB / 0.5912 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.5365, allocations: 87.06 kB / 0.5913 GB, free: 8.137 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/0.5391, allocations: 2.028 MB / 0.5933 GB, free: 6.887 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.5391, allocations: 21.22 kB / 0.5933 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.5392, allocations: 0 / 0.5933 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.5392, allocations: 7.984 kB / 0.5933 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.5402, allocations: 0.9383 MB / 0.5942 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.5402, allocations: 3.844 kB / 0.5942 GB, free: 6.172 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.5404, allocations: 31.97 kB / 0.5943 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003095/0.5435, allocations: 1.397 MB / 0.5956 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.5435, allocations: 14.81 kB / 0.5957 GB, free: 4.949 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002057/0.5456, allocations: 2.063 MB / 0.5977 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.5456, allocations: 0 / 0.5977 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.5477, allocations: 1.753 MB / 0.5994 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.5479, allocations: 184 kB / 0.5996 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.297e-05/0.548, allocations: 13.16 kB / 0.5996 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.5484, allocations: 31.61 kB / 0.5996 GB, free: 2.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.472e-05/0.5485, allocations: 31.94 kB / 0.5996 GB, free: 2.074 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.5485, allocations: 15.88 kB / 0.5996 GB, free: 2.062 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004676/0.549, allocations: 452.2 kB / 0.6001 GB, free: 1.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.549, allocations: 4 kB / 0.6001 GB, free: 1.727 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003687/0.5527, allocations: 1.092 MB / 0.6011 GB, free: 0.6875 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.003598/0.5563, allocations: 0.9928 MB / 0.6021 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002572/0.5589, allocations: 0.9211 MB / 0.603 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5589, allocations: 0 / 0.603 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009425/0.5599, allocations: 490.4 kB / 0.6035 GB, free: 14.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.5618, allocations: 434.7 kB / 0.6039 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.5641, allocations: 1.587 MB / 0.6054 GB, free: 13.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.5646, allocations: 0.9946 MB / 0.6064 GB, free: 12.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005087/0.5651, allocations: 273.8 kB / 0.6067 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.655e-05/0.5652, allocations: 43.12 kB / 0.6067 GB, free: 11.71 MB / 462.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5652, allocations: 0 / 0.6067 GB, free: 11.71 MB / 462.1 MB Notification: Performance of Templates: time 0.06044/0.6256, allocations: 44.06 MB / 0.6497 GB, free: 15.87 MB / 0.4981 GB 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 -s gbode -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)