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.8584/0.8584, allocations: 150.9 MB / 167.2 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003827, allocations: 18.95 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05416/0.05456, allocations: 31.34 MB / 269 MB, free: 7.121 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.724/1.779, allocations: 296.1 MB / 0.5519 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03231/1.811, allocations: 24.65 MB / 0.5759 GB, free: 3.211 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/1.812, allocations: 11.94 kB / 0.576 GB, free: 3.199 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.0006259/1.812, allocations: 234.6 kB / 0.5762 GB, free: 2.969 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007613/1.813, allocations: 437.8 kB / 0.5766 GB, free: 2.539 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.02047/1.834, allocations: 7.762 MB / 0.5842 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004857/1.838, allocations: 4.96 MB / 0.589 GB, free: 5.797 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002006/1.841, allocations: 1.609 MB / 0.5906 GB, free: 4.164 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002262/1.843, allocations: 1.629 MB / 0.5922 GB, free: 2.531 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/1.845, allocations: 1.698 MB / 0.5938 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005383/1.846, allocations: 248 kB / 0.5941 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02445/1.87, allocations: 13.52 MB / 0.6073 GB, free: 3.055 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/1.872, allocations: 1.11 MB / 0.6084 GB, free: 1.941 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002399/1.874, allocations: 1.606 MB / 0.6099 GB, free: 336 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01799/1.892, allocations: 9.319 MB / 0.619 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/1.892, allocations: 0 / 0.619 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.525e-06/1.892, allocations: 0 / 0.619 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.181e-05/1.892, allocations: 0 / 0.619 GB, free: 6.984 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.01325/1.905, allocations: 4.056 MB / 0.623 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.906, allocations: 8.031 kB / 0.623 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/1.906, allocations: 283.1 kB / 0.6233 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/1.908, allocations: 1.065 MB / 0.6243 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/1.908, allocations: 151.5 kB / 0.6245 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004056/1.908, allocations: 203.9 kB / 0.6246 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006412/1.915, allocations: 3.907 MB / 0.6285 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/1.915, allocations: 3.938 kB / 0.6285 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/1.915, allocations: 72 kB / 0.6285 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.749e-05/1.915, allocations: 107.9 kB / 0.6286 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006369/1.922, allocations: 3.455 MB / 0.632 GB, free: 9.516 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.01842/1.94, allocations: 12.99 MB / 0.6447 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007854/1.948, allocations: 3.422 MB / 0.648 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004685/1.953, allocations: 2.596 MB / 0.6506 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08294/2.036, allocations: 37.15 MB / 0.6869 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.208e-05/2.036, allocations: 52.56 kB / 0.6869 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=582): time 5.962e-06/2.036, allocations: 0 / 0.6869 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of matching and sorting (n=582): time 0.02716/2.063, allocations: 10.74 MB / 0.6974 GB, free: 1.641 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/2.063, allocations: 81.39 kB / 0.6975 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/2.064, allocations: 0.6358 MB / 0.6981 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0006017/2.065, allocations: 65.7 kB / 0.6982 GB, free: 0.832 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.0004156/2.065, allocations: 0.4933 MB / 0.6986 GB, free: 340 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002176/2.067, allocations: 2.029 MB / 0.7006 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001778/2.069, allocations: 0.6433 MB / 0.7012 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001381/2.069, allocations: 345.9 kB / 0.7016 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004408/2.074, allocations: 2.205 MB / 0.7037 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004729/2.078, allocations: 2.591 MB / 0.7063 GB, free: 8.414 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.3/2.378, allocations: 16.86 MB / 0.7227 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/2.378, allocations: 3.75 kB / 0.7227 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=644) (initialization): time 0.01502/2.393, allocations: 7.117 MB / 0.7297 GB, free: 207 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/2.393, allocations: 8.656 kB / 0.7297 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.237e-05/2.393, allocations: 13.23 kB / 0.7297 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03205/2.426, allocations: 8.377 MB / 0.7379 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/2.43, allocations: 0.5821 MB / 0.7384 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0102/2.44, allocations: 6.516 MB / 0.7448 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002885/2.443, allocations: 439.4 kB / 0.7452 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000331/2.443, allocations: 117.4 kB / 0.7453 GB, free: 205.8 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.001298/2.445, allocations: 0.7597 MB / 0.7461 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/2.445, allocations: 213.8 kB / 0.7463 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01452/2.46, allocations: 8.976 MB / 0.755 GB, free: 199.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.225e-05/2.46, allocations: 17.17 kB / 0.7551 GB, free: 199.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.974e-05/2.46, allocations: 8 kB / 0.7551 GB, free: 199.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/2.462, allocations: 0.9035 MB / 0.756 GB, free: 198.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004462/2.462, allocations: 79.91 kB / 0.756 GB, free: 198.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002413/2.465, allocations: 167.8 kB / 0.7562 GB, free: 198.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005302/2.465, allocations: 208.7 kB / 0.7564 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0238/2.489, allocations: 9.681 MB / 0.7658 GB, free: 188.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01504/2.504, allocations: 11.88 MB / 0.7774 GB, free: 176.4 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004976/2.509, allocations: 3.8 MB / 0.7812 GB, free: 172.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004848/2.51, allocations: 467 kB / 0.7816 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of Backend: time 6.91e-07/2.51, allocations: 4 kB / 0.7816 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0232/2.533, allocations: 8.338 MB / 0.7898 GB, free: 163.7 MB / 0.5919 GB Notification: Performance of SimCode: time 0.01116/2.544, allocations: 12.64 MB / 0.8021 GB, free: 150.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.1313/2.675, allocations: 117.7 MB / 0.917 GB, free: 34.16 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)