Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8153/0.8153, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.00034, allocations: 15.69 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05526/0.05561, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.SimpleExamples.TestDynamicTwoPhaseFlowPipe): time 1.622/1.678, allocations: 298.9 MB / 0.5548 GB, free: 9.031 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03158/1.709, allocations: 25.98 MB / 0.5801 GB, free: 14.95 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000939/1.71, allocations: 19.94 kB / 0.5801 GB, free: 14.93 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:184:3-185: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/DynamicTwoPhaseFlowPipe.mo:188:3-189: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/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). [/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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:184:3-185: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/DynamicTwoPhaseFlowPipe.mo:188:3-189: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/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). [/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). Notification: Performance of NFTyping.typeComponents: time 0.001418/1.712, allocations: 401.4 kB / 0.5805 GB, free: 14.53 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002378/1.714, allocations: 1.046 MB / 0.5815 GB, free: 13.48 MB / 478.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.01887/1.733, allocations: 8.264 MB / 0.5896 GB, free: 5.219 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01445/1.747, allocations: 17.69 MB / 0.6069 GB, free: 3.496 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006852/1.754, allocations: 5.823 MB / 0.6126 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008058/1.762, allocations: 5.934 MB / 0.6184 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0108/1.773, allocations: 6.737 MB / 0.6249 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.003158/1.776, allocations: 1.027 MB / 0.626 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03035/1.807, allocations: 17.22 MB / 0.6428 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00653/1.813, allocations: 4.123 MB / 0.6468 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.01133/1.825, allocations: 5.381 MB / 0.6521 GB, free: 5.117 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03356/1.858, allocations: 19.74 MB / 0.6713 GB, free: 1.324 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/1.858, allocations: 0 / 0.6713 GB, free: 1.324 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.884e-06/1.858, allocations: 0 / 0.6713 GB, free: 1.324 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003465/1.859, allocations: 0 / 0.6713 GB, free: 1.324 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2481 * Number of variables: 2481 Notification: Performance of Generate backend data structure: time 0.06471/1.923, allocations: 14.6 MB / 0.6856 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.923, allocations: 15.97 kB / 0.6856 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004296/1.928, allocations: 0.8466 MB / 0.6864 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/1.938, allocations: 3.359 MB / 0.6897 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.005215/1.944, allocations: 3.467 MB / 0.6931 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00373/1.947, allocations: 0.613 MB / 0.6937 GB, free: 9.754 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05199/1.999, allocations: 18.07 MB / 0.7113 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/2, allocations: 0 / 0.7113 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002128/2.002, allocations: 232 kB / 0.7116 GB, free: 7.359 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002522/2.002, allocations: 271.8 kB / 0.7118 GB, free: 7.094 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2691/2.271, allocations: 24.02 MB / 0.7353 GB, free: 195.6 MB / 0.5919 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.09702/2.368, allocations: 57.86 MB / 0.7918 GB, free: 154.8 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03969/2.408, allocations: 18.45 MB / 0.8098 GB, free: 136.3 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03076/2.439, allocations: 14.45 MB / 0.8239 GB, free: 121.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1356/2.574, allocations: 70.55 MB / 0.8928 GB, free: 44.96 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.085e-05/2.574, allocations: 151.3 kB / 0.8929 GB, free: 44.81 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2050): time 1.41e-05/2.574, allocations: 0 / 0.8929 GB, free: 44.81 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2050): time 0.4213/2.996, allocations: 63.01 MB / 0.9545 GB, free: 191 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.037e-05/2.996, allocations: 185.5 kB / 0.9547 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/2.997, allocations: 1.153 MB / 0.9558 GB, free: 190.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.003146/3, allocations: 203.2 kB / 0.956 GB, free: 190.7 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:11:3-12: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.0004951/3.001, allocations: 0.8938 MB / 0.9568 GB, free: 190.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00655/3.007, allocations: 6.775 MB / 0.9635 GB, free: 186 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005319/3.013, allocations: 2.484 MB / 0.9659 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/3.013, allocations: 305.6 kB / 0.9662 GB, free: 185.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03041/3.043, allocations: 12.66 MB / 0.9785 GB, free: 181.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03261/3.076, allocations: 13.87 MB / 0.9921 GB, free: 173.9 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.1903/3.266, allocations: 54.68 MB / 1.045 GB, free: 119.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.805e-05/3.266, allocations: 4 kB / 1.046 GB, free: 119.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2167) (initialization): time 0.0884/3.355, allocations: 34.94 MB / 1.08 GB, free: 84.08 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/3.355, allocations: 11.98 kB / 1.08 GB, free: 84.07 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/3.355, allocations: 48.48 kB / 1.08 GB, free: 84.02 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0915/3.446, allocations: 38.15 MB / 1.117 GB, free: 45.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01921/3.466, allocations: 3.113 MB / 1.12 GB, free: 42.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04437/3.51, allocations: 24.9 MB / 1.144 GB, free: 17.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01884/3.529, allocations: 2.886 MB / 1.147 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004587/3.534, allocations: 0.5306 MB / 1.148 GB, free: 14.24 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.dynamicTwoPhaseFlowPipe1.h[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 8 (sinkP1.C.a,sourceP1.C.b,dynamicTwoPhaseFlowPipe1.C2.b,dynamicTwoPhaseFlowPipe1.C1.a,sinkP.C.a,sourceP.C.b,dynamicTwoPhaseFlowPipe.C2.b,dynamicTwoPhaseFlowPipe.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 689 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 28 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(21,206), (23,204)} Notification: Performance of prepare postOptimizeDAE: time 0.2053/3.739, allocations: 2.156 MB / 1.15 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003296/3.742, allocations: 0.6555 MB / 1.15 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1369/3.879, allocations: 52.65 MB / 1.202 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006689/3.88, allocations: 51.8 kB / 1.202 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000215/3.88, allocations: 39.98 kB / 1.202 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01257/3.893, allocations: 3.229 MB / 1.205 GB, free: 171.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004486/3.897, allocations: 259.7 kB / 1.205 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01768/3.915, allocations: 2.068 MB / 1.207 GB, free: 168.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004609/3.919, allocations: 0.956 MB / 1.208 GB, free: 167.9 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1379/4.057, allocations: 43.17 MB / 1.25 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1236/4.181, allocations: 51.23 MB / 1.3 GB, free: 73.37 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.03489/4.216, allocations: 16.72 MB / 1.317 GB, free: 56.58 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001262/4.217, allocations: 0.9106 MB / 1.318 GB, free: 55.67 MB / 0.5919 GB Notification: Performance of Backend: time 1.362e-06/4.217, allocations: 0 / 1.318 GB, free: 55.67 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.07913/4.296, allocations: 27.32 MB / 1.344 GB, free: 27.47 MB / 0.5919 GB Notification: Performance of SimCode: time 0.2449/4.541, allocations: 34.34 MB / 1.378 GB, free: 168.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.6285/5.17, allocations: 336.7 MB / 1.707 GB, free: 88 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicTwoPhaseFlowPipe.pipe 2>&1)