Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.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.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8413/0.8413, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.000362, allocations: 13.69 kB / 237.7 MB, free: 1.848 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06311/0.06349, allocations: 31.34 MB / 269.1 MB, free: 7.102 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.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe): time 1.773/1.837, allocations: 296.9 MB / 0.5527 GB, free: 10.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5292/2.366, allocations: 192.9 MB / 0.741 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005929/2.367, allocations: 18.25 kB / 0.741 GB, free: 14.96 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:233:3-234:54:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:237:3-238:52:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0007192/2.367, allocations: 274.8 kB / 0.7413 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001022/2.368, allocations: 0.6138 MB / 0.7419 GB, free: 14.95 MB / 0.6075 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp 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/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der 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/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der 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.0334/2.402, allocations: 12.64 MB / 0.7542 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008379/2.41, allocations: 10.45 MB / 0.7644 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005795/2.416, allocations: 3.41 MB / 0.7678 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00631/2.422, allocations: 3.368 MB / 0.7711 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007304/2.43, allocations: 3.839 MB / 0.7748 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0028/2.432, allocations: 0.6244 MB / 0.7754 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03602/2.469, allocations: 18.31 MB / 0.7933 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.003913/2.473, allocations: 2.486 MB / 0.7957 GB, free: 4.059 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.006803/2.479, allocations: 3.163 MB / 0.7988 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.03426/2.514, allocations: 16.55 MB / 0.815 GB, free: 1.277 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/2.514, allocations: 0 / 0.815 GB, free: 1.277 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.096e-06/2.514, allocations: 0 / 0.815 GB, free: 1.277 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0002397/2.514, allocations: 0 / 0.815 GB, free: 1.277 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1484 * Number of variables: 1484 Notification: Performance of Generate backend data structure: time 0.03448/2.548, allocations: 8.773 MB / 0.8236 GB, free: 8.441 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/2.548, allocations: 12.03 kB / 0.8236 GB, free: 8.43 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001586/2.55, allocations: 0.5253 MB / 0.8241 GB, free: 7.898 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005964/2.556, allocations: 2.154 MB / 0.8262 GB, free: 5.703 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002889/2.559, allocations: 2.185 MB / 0.8283 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001724/2.561, allocations: 411.8 kB / 0.8287 GB, free: 2.789 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02817/2.589, allocations: 10.96 MB / 0.8394 GB, free: 7.574 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/2.589, allocations: 11.88 kB / 0.8394 GB, free: 7.562 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001235/2.59, allocations: 168 kB / 0.8396 GB, free: 7.398 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/2.59, allocations: 159.9 kB / 0.8397 GB, free: 7.242 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03801/2.628, allocations: 15.3 MB / 0.8547 GB, free: 7.922 MB / 0.67 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.1317/2.76, allocations: 67.64 MB / 0.9207 GB, free: 160 kB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02449/2.785, allocations: 9.772 MB / 0.9303 GB, free: 6.383 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01866/2.803, allocations: 8.028 MB / 0.9381 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3533/3.157, allocations: 84.21 MB / 1.02 GB, free: 432.8 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001225/3.157, allocations: 95.08 kB / 1.02 GB, free: 432.7 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1091): time 1.585e-05/3.157, allocations: 0 / 1.02 GB, free: 432.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1091): time 0.1182/3.275, allocations: 33.25 MB / 1.053 GB, free: 426.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/3.275, allocations: 116.2 kB / 1.053 GB, free: 426.2 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/3.277, allocations: 1.129 MB / 1.054 GB, free: 425.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.001573/3.278, allocations: 130.8 kB / 1.054 GB, free: 425.3 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:15:3-16:73:writable] Warning: The parameter dynamicTwoPhaseFlowPipe1.dpfCorr has fixed = false and a binding equation dynamicTwoPhaseFlowPipe1.dpfCorr = 1.0, 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.000457/3.279, allocations: 0.8933 MB / 1.055 GB, free: 424.4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003359/3.282, allocations: 3.63 MB / 1.059 GB, free: 420.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002864/3.285, allocations: 1.504 MB / 1.06 GB, free: 419.3 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 4.251e-05/3.285, allocations: 305.1 kB / 1.06 GB, free: 419 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0162/3.301, allocations: 7.154 MB / 1.067 GB, free: 411.8 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01706/3.318, allocations: 8.33 MB / 1.076 GB, free: 403.2 MB / 0.8262 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.1672/3.485, allocations: 46.24 MB / 1.121 GB, free: 356.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.743e-05/3.485, allocations: 12.5 kB / 1.121 GB, free: 356.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1243) (initialization): time 0.05085/3.536, allocations: 19.79 MB / 1.14 GB, free: 337.1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.522e-05/3.536, allocations: 21.47 kB / 1.14 GB, free: 337.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/3.537, allocations: 43.98 kB / 1.14 GB, free: 337 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03995/3.577, allocations: 16.67 MB / 1.156 GB, free: 320.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01146/3.588, allocations: 2.02 MB / 1.158 GB, free: 318.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02209/3.61, allocations: 11.41 MB / 1.17 GB, free: 306.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009656/3.62, allocations: 1.652 MB / 1.171 GB, free: 305.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002117/3.622, allocations: 343.6 kB / 1.171 GB, free: 304.8 MB / 0.8262 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dynamicTwoPhaseFlowPipe1.Q[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 6 (sourceP1.C.ftype,dynamicTwoPhaseFlowPipe1.fluid,sinkP1.fluid,sourceP1.fluid1,dynamicTwoPhaseFlowPipe1.C1.diff_on_2,dynamicTwoPhaseFlowPipe1.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 518 * 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 {(20,211)} Notification: Performance of prepare postOptimizeDAE: time 0.005054/3.627, allocations: 1.363 MB / 1.173 GB, free: 303.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002649/3.63, allocations: 402.8 kB / 1.173 GB, free: 303.1 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06636/3.696, allocations: 23.48 MB / 1.196 GB, free: 279.6 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002248/3.696, allocations: 31.88 kB / 1.196 GB, free: 279.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001061/3.696, allocations: 23.98 kB / 1.196 GB, free: 279.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005182/3.702, allocations: 1.848 MB / 1.198 GB, free: 277.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/3.704, allocations: 139.9 kB / 1.198 GB, free: 277.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009006/3.713, allocations: 1.112 MB / 1.199 GB, free: 276.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002741/3.716, allocations: 0.5937 MB / 1.2 GB, free: 275.8 MB / 0.8262 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0656/3.781, allocations: 21.91 MB / 1.221 GB, free: 253.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.06365/3.845, allocations: 28.15 MB / 1.249 GB, free: 225.7 MB / 0.8262 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.01767/3.863, allocations: 9.116 MB / 1.258 GB, free: 216.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0009347/3.864, allocations: 0.7422 MB / 1.258 GB, free: 215.8 MB / 0.8262 GB Notification: Performance of Backend: time 4.81e-07/3.864, allocations: 4 kB / 1.258 GB, free: 215.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.04268/3.906, allocations: 15.69 MB / 1.274 GB, free: 200.3 MB / 0.8262 GB Notification: Performance of SimCode: time 0.02065/3.927, allocations: 16.24 MB / 1.289 GB, free: 183.6 MB / 0.8262 GB Notification: Performance of Templates: time 0.4513/4.378, allocations: 221.7 MB / 1.506 GB, free: 375.7 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe 2>&1)