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.8604/0.8604, allocations: 150.9 MB / 167.2 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003723, allocations: 16.08 kB / 237.8 MB, free: 1.93 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06529/0.06568, allocations: 31.34 MB / 269.1 MB, free: 7.148 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.733/1.799, allocations: 299.1 MB / 0.5549 GB, free: 9.004 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03135/1.83, allocations: 25.97 MB / 0.5803 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000673/1.831, allocations: 19.94 kB / 0.5803 GB, free: 14.9 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.0009041/1.832, allocations: 431.1 kB / 0.5807 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/1.833, allocations: 1.108 MB / 0.5818 GB, free: 13.37 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.02007/1.853, allocations: 8.35 MB / 0.5899 GB, free: 5.02 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01531/1.869, allocations: 17.71 MB / 0.6072 GB, free: 3.277 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008768/1.878, allocations: 5.815 MB / 0.6129 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009389/1.887, allocations: 5.938 MB / 0.6187 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01137/1.898, allocations: 6.737 MB / 0.6253 GB, free: 0.707 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.003347/1.902, allocations: 1.027 MB / 0.6263 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03125/1.933, allocations: 17.23 MB / 0.6431 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.007371/1.94, allocations: 4.123 MB / 0.6471 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.01355/1.954, allocations: 5.381 MB / 0.6524 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04301/1.997, allocations: 19.8 MB / 0.6717 GB, free: 1.047 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/1.997, allocations: 0 / 0.6717 GB, free: 1.047 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.114e-06/1.997, allocations: 0 / 0.6717 GB, free: 1.047 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0004936/1.998, allocations: 0 / 0.6717 GB, free: 1.047 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.0671/2.065, allocations: 14.81 MB / 0.6862 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/2.065, allocations: 8.031 kB / 0.6862 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005211/2.07, allocations: 0.8901 MB / 0.6871 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/2.08, allocations: 3.363 MB / 0.6904 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006071/2.086, allocations: 3.471 MB / 0.6937 GB, free: 9.82 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005035/2.092, allocations: 0.6092 MB / 0.6943 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05859/2.15, allocations: 18.07 MB / 0.712 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002845/2.15, allocations: 0 / 0.712 GB, free: 7.047 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004173/2.155, allocations: 240 kB / 0.7122 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003043/2.155, allocations: 267.8 kB / 0.7125 GB, free: 6.551 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.492/2.647, allocations: 24.02 MB / 0.7359 GB, free: 195.8 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.11/2.757, allocations: 57.92 MB / 0.7925 GB, free: 154.3 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0433/2.8, allocations: 18.46 MB / 0.8105 GB, free: 135.9 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.03454/2.835, allocations: 14.44 MB / 0.8246 GB, free: 121.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1444/2.979, allocations: 70.57 MB / 0.8935 GB, free: 44.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002141/2.98, allocations: 138.8 kB / 0.8937 GB, free: 44.35 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2050): time 1.704e-05/2.98, allocations: 0 / 0.8937 GB, free: 44.35 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2050): time 0.4993/3.479, allocations: 63.05 MB / 0.9552 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/3.479, allocations: 186.8 kB / 0.9554 GB, free: 191 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/3.481, allocations: 1.144 MB / 0.9565 GB, free: 190.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.004144/3.485, allocations: 206.1 kB / 0.9567 GB, free: 190.8 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.0007176/3.486, allocations: 0.9091 MB / 0.9576 GB, free: 190.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.009381/3.495, allocations: 7.129 MB / 0.9646 GB, free: 186.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01186/3.507, allocations: 2.49 MB / 0.967 GB, free: 186.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.229e-05/3.507, allocations: 304.8 kB / 0.9673 GB, free: 186.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03441/3.541, allocations: 12.66 MB / 0.9797 GB, free: 181.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03924/3.581, allocations: 13.87 MB / 0.9932 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.2161/3.797, allocations: 54.68 MB / 1.047 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.281e-05/3.797, allocations: 4 kB / 1.047 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2167) (initialization): time 0.09246/3.889, allocations: 34.97 MB / 1.081 GB, free: 84 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/3.889, allocations: 11.98 kB / 1.081 GB, free: 83.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/3.89, allocations: 43.98 kB / 1.081 GB, free: 83.95 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09219/3.982, allocations: 38.16 MB / 1.118 GB, free: 45.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01872/4.001, allocations: 3.109 MB / 1.121 GB, free: 42.72 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05485/4.055, allocations: 24.92 MB / 1.145 GB, free: 17.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01925/4.075, allocations: 2.931 MB / 1.148 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004712/4.079, allocations: 0.5267 MB / 1.149 GB, free: 14.11 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.2368/4.316, allocations: 2.155 MB / 1.151 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004264/4.321, allocations: 0.6888 MB / 1.152 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1419/4.463, allocations: 52.67 MB / 1.203 GB, free: 173.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004064/4.463, allocations: 51.8 kB / 1.203 GB, free: 173.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000153/4.463, allocations: 43.97 kB / 1.203 GB, free: 173.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007969/4.471, allocations: 3.27 MB / 1.206 GB, free: 170.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003474/4.475, allocations: 251.8 kB / 1.207 GB, free: 170.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01675/4.491, allocations: 2.078 MB / 1.209 GB, free: 168.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004266/4.496, allocations: 0.9552 MB / 1.21 GB, free: 167.3 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1398/4.635, allocations: 43.19 MB / 1.252 GB, free: 124 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.1257/4.761, allocations: 51.28 MB / 1.302 GB, free: 72.66 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0359/4.797, allocations: 16.73 MB / 1.318 GB, free: 55.86 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00134/4.798, allocations: 0.9106 MB / 1.319 GB, free: 54.95 MB / 0.5919 GB Notification: Performance of Backend: time 5.91e-07/4.798, allocations: 0 / 1.319 GB, free: 54.95 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.07568/4.874, allocations: 27.37 MB / 1.346 GB, free: 26.76 MB / 0.5919 GB Notification: Performance of SimCode: time 0.2468/5.121, allocations: 34.68 MB / 1.38 GB, free: 168.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.6086/5.73, allocations: 336.8 MB / 1.708 GB, free: 87.12 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)