Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.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.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 1.005/1.005, allocations: 150.9 MB / 166.7 MB, free: 11.15 MB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002679, allocations: 15.97 kB / 204.7 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1643, allocations: 31.33 MB / 236 MB, free: 3.875 MB / 186.7 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.SimpleExamples.TestDynamicTwoPhaseFlowRiser): time 1.554/1.719, allocations: 294.5 MB / 0.5181 GB, free: 7.566 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.5044/2.223, allocations: 194.1 MB / 0.7076 GB, free: 0.918 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005975/2.224, allocations: 16.88 kB / 0.7076 GB, free: 0.9102 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowRiser.mo:243:3-244:52: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/DynamicTwoPhaseFlowRiser.mo:247:3-248:50: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.0006367/2.224, allocations: 247.7 kB / 0.7079 GB, free: 0.8555 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0009997/2.225, allocations: 0.7095 MB / 0.7086 GB, free: 0.707 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0262/2.252, allocations: 9.827 MB / 0.7182 GB, free: 15.1 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.009737/2.261, allocations: 11.46 MB / 0.7293 GB, free: 12.25 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00565/2.267, allocations: 3.607 MB / 0.7329 GB, free: 10.64 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006439/2.273, allocations: 3.395 MB / 0.7362 GB, free: 9.977 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007821/2.281, allocations: 4.439 MB / 0.7405 GB, free: 8.793 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.002546/2.284, allocations: 401.5 kB / 0.7409 GB, free: 8.789 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04012/2.324, allocations: 20.92 MB / 0.7613 GB, free: 15.44 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.004921/2.329, allocations: 2.565 MB / 0.7638 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.008188/2.337, allocations: 3.317 MB / 0.7671 GB, free: 10.12 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.03658/2.374, allocations: 18.41 MB / 0.785 GB, free: 8.566 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/2.374, allocations: 0 / 0.785 GB, free: 8.566 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.623e-06/2.374, allocations: 0 / 0.785 GB, free: 8.566 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0002513/2.374, allocations: 0 / 0.785 GB, free: 8.566 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1654 * Number of variables: 1654 Notification: Performance of Generate backend data structure: time 0.04142/2.416, allocations: 10.15 MB / 0.795 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/2.416, allocations: 12.03 kB / 0.795 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002495/2.418, allocations: 0.5832 MB / 0.7955 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006365/2.424, allocations: 2.393 MB / 0.7979 GB, free: 11.31 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002404/2.427, allocations: 1.884 MB / 0.7997 GB, free: 9.168 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001595/2.429, allocations: 459.9 kB / 0.8002 GB, free: 8.719 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03097/2.459, allocations: 11.66 MB / 0.8115 GB, free: 12.98 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001996/2.46, allocations: 4 kB / 0.8115 GB, free: 12.98 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002262/2.462, allocations: 187.2 kB / 0.8117 GB, free: 12.8 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001943/2.462, allocations: 171.9 kB / 0.8119 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04517/2.507, allocations: 16.66 MB / 0.8282 GB, free: 11.95 MB / 0.6511 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.07995/2.587, allocations: 38.88 MB / 0.8661 GB, free: 3.164 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03869/2.626, allocations: 13.42 MB / 0.8792 GB, free: 5.57 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02206/2.648, allocations: 8.994 MB / 0.888 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09883/2.747, allocations: 53.43 MB / 0.9402 GB, free: 300 kB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/2.747, allocations: 112.3 kB / 0.9403 GB, free: 176 kB / 0.7605 GB Notification: Performance of pre-optimization done (n=1220): time 1.996e-05/2.747, allocations: 0 / 0.9403 GB, free: 176 kB / 0.7605 GB Notification: Performance of matching and sorting (n=1220): time 0.3422/3.09, allocations: 42.56 MB / 0.9819 GB, free: 400.9 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/3.09, allocations: 129.9 kB / 0.982 GB, free: 400.8 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/3.092, allocations: 1.37 MB / 0.9833 GB, free: 400.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.001897/3.094, allocations: 146 kB / 0.9835 GB, free: 400.6 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005142/3.094, allocations: 0.8206 MB / 0.9843 GB, free: 400.3 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.004131/3.098, allocations: 4.025 MB / 0.9882 GB, free: 397.6 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00587/3.104, allocations: 1.544 MB / 0.9897 GB, free: 397.6 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 4.387e-05/3.104, allocations: 308.8 kB / 0.99 GB, free: 397.3 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01835/3.123, allocations: 7.581 MB / 0.9974 GB, free: 396.6 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01981/3.142, allocations: 8.41 MB / 1.006 GB, free: 392.8 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03714/3.18, allocations: 15.98 MB / 1.021 GB, free: 382.3 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-05/3.18, allocations: 0 / 1.021 GB, free: 382.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.0592/3.239, allocations: 22.6 MB / 1.043 GB, free: 359.7 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/3.239, allocations: 8 kB / 1.043 GB, free: 359.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.983e-05/3.239, allocations: 27.98 kB / 1.043 GB, free: 359.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06376/3.303, allocations: 25.25 MB / 1.068 GB, free: 334.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01207/3.315, allocations: 1.875 MB / 1.07 GB, free: 332.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04769/3.363, allocations: 45.17 MB / 1.114 GB, free: 284.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01091/3.374, allocations: 1.705 MB / 1.116 GB, free: 283.1 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002567/3.376, allocations: 351.6 kB / 1.116 GB, free: 282.7 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,dynamicTwoPhaseFlowRiser.fluid,sinkP.fluid,sourcePQ.fluid1,dynamicTwoPhaseFlowRiser.C1.diff_on_2,dynamicTwoPhaseFlowRiser.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (412): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 21 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,327)} Notification: Performance of prepare postOptimizeDAE: time 0.006124/3.382, allocations: 1.475 MB / 1.117 GB, free: 281.3 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002608/3.385, allocations: 462.1 kB / 1.118 GB, free: 280.8 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06446/3.449, allocations: 24.97 MB / 1.142 GB, free: 255.7 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05689/3.506, allocations: 21.66 MB / 1.163 GB, free: 234 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.112e-05/3.506, allocations: 12 kB / 1.163 GB, free: 234 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002248/3.507, allocations: 47.81 kB / 1.163 GB, free: 233.9 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1158/3.623, allocations: 40.6 MB / 1.203 GB, free: 193.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001801/3.623, allocations: 27.98 kB / 1.203 GB, free: 193.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01297/3.636, allocations: 2.351 MB / 1.205 GB, free: 191 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03558/3.671, allocations: 8.098 MB / 1.213 GB, free: 182.8 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003117/3.675, allocations: 320.5 kB / 1.214 GB, free: 182.5 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04181/3.716, allocations: 56.2 MB / 1.268 GB, free: 122.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/3.716, allocations: 7.594 kB / 1.268 GB, free: 122.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.01/4.727, allocations: 284.7 MB / 1.546 GB, free: 268.9 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006303/4.733, allocations: 2.017 MB / 1.548 GB, free: 266.9 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002823/4.736, allocations: 179.9 kB / 1.549 GB, free: 266.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01099/4.747, allocations: 1.234 MB / 1.55 GB, free: 265.5 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003333/4.75, allocations: 0.7268 MB / 1.551 GB, free: 264.8 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002445/4.753, allocations: 355.6 kB / 1.551 GB, free: 264.4 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.001227/4.754, allocations: 0.9574 MB / 1.552 GB, free: 263.5 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.51e-07/4.754, allocations: 0 / 1.552 GB, free: 263.5 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0208/4.775, allocations: 6.606 MB / 1.558 GB, free: 257.2 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 20 (dynamicTwoPhaseFlowRiser.P[2],dynamicTwoPhaseFlowRiser.P[3],dynamicTwoPhaseFlowRiser.P[4],dynamicTwoPhaseFlowRiser.P[5],dynamicTwoPhaseFlowRiser.P[6],dynamicTwoPhaseFlowRiser.P[7],dynamicTwoPhaseFlowRiser.P[8],dynamicTwoPhaseFlowRiser.P[9],dynamicTwoPhaseFlowRiser.P[10],dynamicTwoPhaseFlowRiser.P[11],dynamicTwoPhaseFlowRiser.h[2],dynamicTwoPhaseFlowRiser.h[3],dynamicTwoPhaseFlowRiser.h[4],dynamicTwoPhaseFlowRiser.h[5],dynamicTwoPhaseFlowRiser.h[6],dynamicTwoPhaseFlowRiser.h[7],dynamicTwoPhaseFlowRiser.h[8],dynamicTwoPhaseFlowRiser.h[9],dynamicTwoPhaseFlowRiser.h[10],dynamicTwoPhaseFlowRiser.h[11]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (767): * Single equations (assignments): 693 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 33 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 41 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 30 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 11 systems {(1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15), (1,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01677/4.792, allocations: 4.319 MB / 1.562 GB, free: 253.9 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.04811/4.84, allocations: 23.13 MB / 1.585 GB, free: 230.1 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/4.84, allocations: 0 / 1.585 GB, free: 230.1 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.02751/4.867, allocations: 14.28 MB / 1.599 GB, free: 215.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01302/4.88, allocations: 1.966 MB / 1.601 GB, free: 213.6 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08664/4.967, allocations: 39.09 MB / 1.639 GB, free: 174.3 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007346/4.974, allocations: 4.48 MB / 1.643 GB, free: 169.8 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.01251/4.987, allocations: 2.403 MB / 1.646 GB, free: 167.5 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006968/4.994, allocations: 0.7058 MB / 1.647 GB, free: 166.8 MB / 0.7761 GB Notification: Performance of SimCode: time 9.01e-07/4.994, allocations: 0 / 1.647 GB, free: 166.8 MB / 0.7761 GB Notification: Performance of Templates: time 0.6468/5.641, allocations: 366.1 MB / 2.004 GB, free: 174.4 MB / 0.7761 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.pipe 2>&1)