Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8449/0.8449, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 11.73 kB / 237.7 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05983/0.06019, allocations: 31.34 MB / 269 MB, free: 7.137 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell): time 1.663/1.723, allocations: 295.9 MB / 0.5517 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03135/1.754, allocations: 24.65 MB / 0.5758 GB, free: 3.109 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003845/1.755, allocations: 7.938 kB / 0.5758 GB, free: 3.102 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicOnePhaseFlowShell.mo:129:3-130:48:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicOnePhaseFlowShell.mo:131:3-132:46:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0006393/1.755, allocations: 219.6 kB / 0.576 GB, free: 2.887 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007406/1.756, allocations: 405.8 kB / 0.5764 GB, free: 2.488 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01829/1.775, allocations: 7.676 MB / 0.5839 GB, free: 10.81 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004132/1.779, allocations: 4.952 MB / 0.5887 GB, free: 5.844 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/1.781, allocations: 1.613 MB / 0.5903 GB, free: 4.207 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001979/1.783, allocations: 1.621 MB / 0.5919 GB, free: 2.582 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002185/1.785, allocations: 1.698 MB / 0.5935 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004204/1.785, allocations: 252 kB / 0.5938 GB, free: 0.6328 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02241/1.808, allocations: 13.52 MB / 0.607 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/1.809, allocations: 1.114 MB / 0.6081 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002285/1.811, allocations: 1.61 MB / 0.6096 GB, free: 376 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01761/1.829, allocations: 9.291 MB / 0.6187 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/1.829, allocations: 3.984 kB / 0.6187 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.444e-06/1.829, allocations: 0 / 0.6187 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.479e-05/1.829, allocations: 0 / 0.6187 GB, free: 7.051 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01446/1.843, allocations: 3.959 MB / 0.6226 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/1.843, allocations: 11.97 kB / 0.6226 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006566/1.844, allocations: 277.5 kB / 0.6229 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002288/1.846, allocations: 1.057 MB / 0.6239 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/1.847, allocations: 155.5 kB / 0.624 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004163/1.847, allocations: 199.8 kB / 0.6242 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006423/1.853, allocations: 3.903 MB / 0.628 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/1.854, allocations: 3.984 kB / 0.6281 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002307/1.854, allocations: 72 kB / 0.6281 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.898e-05/1.854, allocations: 107.9 kB / 0.6282 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006039/1.86, allocations: 3.463 MB / 0.6316 GB, free: 9.691 MB / 0.5137 GB 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.01647/1.876, allocations: 12.96 MB / 0.6443 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/1.884, allocations: 3.422 MB / 0.6476 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004175/1.888, allocations: 2.6 MB / 0.6501 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08153/1.969, allocations: 37.14 MB / 0.6864 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.048e-05/1.97, allocations: 56.56 kB / 0.6865 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=582): time 4.929e-06/1.97, allocations: 0 / 0.6865 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of matching and sorting (n=582): time 0.02399/1.994, allocations: 10.73 MB / 0.6969 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/1.994, allocations: 73.41 kB / 0.697 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008123/1.994, allocations: 0.6396 MB / 0.6976 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002794/1.995, allocations: 65.7 kB / 0.6977 GB, free: 1.047 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:3:3-3:64:writable] Warning: The parameter sinkP.P0 has fixed = false and a binding equation sinkP.P0 = 1.9e6, which is probably redundant. Setting fixed = false usually means there is an additional initial equation to determine the parameter value. The binding was ignored by old Modelica tools, but this is not according to the Modelica specification. Please remove the parameter binding, or bind the parameter to another parameter with fixed = false and no binding. Notification: Performance of collectInitialEqns (initialization): time 0.0003416/1.995, allocations: 492 kB / 0.6982 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001556/1.997, allocations: 1.924 MB / 0.7 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001032/1.998, allocations: 0.6433 MB / 0.7007 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.998, allocations: 353.9 kB / 0.701 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003978/2.002, allocations: 2.201 MB / 0.7032 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004213/2.006, allocations: 2.583 MB / 0.7057 GB, free: 8.738 MB / 0.5919 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.2913/2.297, allocations: 16.86 MB / 0.7222 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/2.297, allocations: 6.406 kB / 0.7222 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01489/2.312, allocations: 7.099 MB / 0.7291 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.606e-05/2.312, allocations: 11.34 kB / 0.7291 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.512e-05/2.312, allocations: 19.33 kB / 0.7291 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03187/2.344, allocations: 8.38 MB / 0.7373 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004442/2.349, allocations: 0.5837 MB / 0.7379 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009841/2.359, allocations: 6.499 MB / 0.7442 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/2.362, allocations: 432.9 kB / 0.7446 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002705/2.362, allocations: 114.8 kB / 0.7447 GB, free: 205.6 MB / 0.5919 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dynamicOnePhaseFlowPipeShell.h[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,sinkP.C.a,dynamicOnePhaseFlowPipeShell.C2.b,dynamicOnePhaseFlowPipeShell.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 157 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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 {(21,97)} Notification: Performance of prepare postOptimizeDAE: time 0.001218/2.363, allocations: 0.759 MB / 0.7455 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004121/2.364, allocations: 205 kB / 0.7457 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/2.377, allocations: 8.966 MB / 0.7544 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.973e-05/2.377, allocations: 11.95 kB / 0.7544 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/2.377, allocations: 8 kB / 0.7545 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001921/2.379, allocations: 0.8974 MB / 0.7553 GB, free: 198.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/2.379, allocations: 79.91 kB / 0.7554 GB, free: 198.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002261/2.382, allocations: 163.8 kB / 0.7556 GB, free: 198.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004517/2.382, allocations: 206.5 kB / 0.7558 GB, free: 198.2 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02482/2.407, allocations: 9.675 MB / 0.7652 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01496/2.422, allocations: 11.87 MB / 0.7768 GB, free: 176.6 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004591/2.427, allocations: 3.8 MB / 0.7805 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004713/2.427, allocations: 459 kB / 0.781 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of Backend: time 9.22e-07/2.427, allocations: 4 kB / 0.781 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.02305/2.45, allocations: 8.315 MB / 0.7891 GB, free: 163.8 MB / 0.5919 GB Notification: Performance of SimCode: time 0.01141/2.462, allocations: 12.5 MB / 0.8013 GB, free: 150.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1311/2.593, allocations: 117.6 MB / 0.9162 GB, free: 34.38 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicOnePhaseFlowShell.pipe 2>&1)