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 0.7931/0.7931, allocations: 150.9 MB / 166 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003081/0.0003081, allocations: 15.97 kB / 204 MB, free: 10.16 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1655, allocations: 31.33 MB / 235.4 MB, free: 5.445 MB / 190.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.SimpleExamples.TestDynamicTwoPhaseFlowRiser): time 1.778/1.944, allocations: 295.2 MB / 0.5181 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4987/2.443, allocations: 194.1 MB / 0.7076 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005862/2.443, allocations: 16.94 kB / 0.7077 GB, free: 3.449 MB / 0.5762 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.0007131/2.444, allocations: 240.9 kB / 0.7079 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001149/2.445, allocations: 0.7113 MB / 0.7086 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02785/2.473, allocations: 9.826 MB / 0.7182 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009501/2.482, allocations: 11.42 MB / 0.7293 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005802/2.488, allocations: 3.611 MB / 0.7329 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007702/2.496, allocations: 3.375 MB / 0.7362 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008902/2.505, allocations: 4.454 MB / 0.7405 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.003524/2.509, allocations: 395.9 kB / 0.7409 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04528/2.554, allocations: 21 MB / 0.7614 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.005323/2.559, allocations: 2.558 MB / 0.7639 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0101/2.569, allocations: 3.317 MB / 0.7671 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03885/2.608, allocations: 18.41 MB / 0.7851 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/2.608, allocations: 0 / 0.7851 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.303e-06/2.608, allocations: 0 / 0.7851 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0003177/2.609, allocations: 0 / 0.7851 GB, free: 10.97 MB / 0.6075 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.04158/2.65, allocations: 10.14 MB / 0.795 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/2.65, allocations: 12.03 kB / 0.795 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003457/2.654, allocations: 0.5871 MB / 0.7956 GB, free: 160 kB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006418/2.66, allocations: 2.398 MB / 0.7979 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00283/2.663, allocations: 1.876 MB / 0.7998 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002514/2.666, allocations: 463.9 kB / 0.8002 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03201/2.698, allocations: 11.66 MB / 0.8116 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/2.698, allocations: 0 / 0.8116 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/2.699, allocations: 180 kB / 0.8118 GB, free: 15.37 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/2.699, allocations: 179.8 kB / 0.8119 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04031/2.739, allocations: 16.65 MB / 0.8282 GB, free: 14.52 MB / 0.6544 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.07224/2.812, allocations: 38.89 MB / 0.8662 GB, free: 5.844 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03608/2.848, allocations: 13.4 MB / 0.8793 GB, free: 8.305 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02046/2.868, allocations: 8.997 MB / 0.888 GB, free: 15.29 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08869/2.957, allocations: 53.42 MB / 0.9402 GB, free: 3.027 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.902e-05/2.957, allocations: 112.4 kB / 0.9403 GB, free: 2.906 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1220): time 8.526e-06/2.957, allocations: 0 / 0.9403 GB, free: 2.906 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1220): time 0.33/3.287, allocations: 42.56 MB / 0.9819 GB, free: 424.3 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/3.287, allocations: 135.7 kB / 0.982 GB, free: 424.2 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/3.289, allocations: 1.37 MB / 0.9833 GB, free: 424.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.001922/3.291, allocations: 143.7 kB / 0.9835 GB, free: 424.1 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004868/3.291, allocations: 0.8202 MB / 0.9843 GB, free: 423.9 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.004085/3.295, allocations: 4.029 MB / 0.9882 GB, free: 421.2 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003132/3.299, allocations: 1.548 MB / 0.9897 GB, free: 421.1 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.813e-05/3.299, allocations: 302.4 kB / 0.99 GB, free: 420.8 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0176/3.316, allocations: 7.582 MB / 0.9974 GB, free: 420.8 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01965/3.336, allocations: 8.403 MB / 1.006 GB, free: 420.4 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03552/3.372, allocations: 15.99 MB / 1.021 GB, free: 416.3 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.759e-05/3.372, allocations: 0 / 1.021 GB, free: 416.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.05374/3.425, allocations: 22.6 MB / 1.043 GB, free: 397.8 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/3.425, allocations: 8 kB / 1.043 GB, free: 397.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.025e-05/3.426, allocations: 31.98 kB / 1.043 GB, free: 397.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05899/3.485, allocations: 25.26 MB / 1.068 GB, free: 372.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/3.497, allocations: 1.876 MB / 1.07 GB, free: 370.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04273/3.54, allocations: 45.16 MB / 1.114 GB, free: 322.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/3.551, allocations: 1.709 MB / 1.116 GB, free: 321.2 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002709/3.554, allocations: 347.6 kB / 1.116 GB, free: 320.9 MB / 0.795 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.004933/3.559, allocations: 1.469 MB / 1.117 GB, free: 319.4 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001529/3.56, allocations: 462.1 kB / 1.118 GB, free: 319 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0565/3.617, allocations: 24.99 MB / 1.142 GB, free: 293.9 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05589/3.673, allocations: 21.66 MB / 1.163 GB, free: 272.1 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.951e-05/3.673, allocations: 13.86 kB / 1.163 GB, free: 272.1 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002201/3.673, allocations: 48.38 kB / 1.163 GB, free: 272.1 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.112/3.785, allocations: 40.6 MB / 1.203 GB, free: 231.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001892/3.785, allocations: 23.98 kB / 1.203 GB, free: 231.4 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01279/3.798, allocations: 2.355 MB / 1.205 GB, free: 229.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03326/3.831, allocations: 8.1 MB / 1.213 GB, free: 221 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003172/3.835, allocations: 319.6 kB / 1.214 GB, free: 220.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04005/3.875, allocations: 56.2 MB / 1.269 GB, free: 160.5 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/3.875, allocations: 3.047 kB / 1.269 GB, free: 160.5 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09466/3.969, allocations: 34.54 MB / 1.302 GB, free: 125.9 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005791/3.975, allocations: 2.025 MB / 1.304 GB, free: 123.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001851/3.977, allocations: 183.9 kB / 1.304 GB, free: 123.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009852/3.987, allocations: 1.228 MB / 1.306 GB, free: 122.4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002344/3.989, allocations: 0.7272 MB / 1.306 GB, free: 121.7 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001125/3.991, allocations: 355.6 kB / 1.307 GB, free: 121.3 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001141/3.992, allocations: 0.9574 MB / 1.308 GB, free: 120.4 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/3.992, allocations: 0 / 1.308 GB, free: 120.4 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01178/4.004, allocations: 3.817 MB / 1.311 GB, free: 116.7 MB / 0.795 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.008347/4.012, allocations: 2.707 MB / 1.314 GB, free: 114.6 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0435/4.055, allocations: 23.13 MB / 1.337 GB, free: 90.71 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/4.055, allocations: 0 / 1.337 GB, free: 90.71 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.02541/4.081, allocations: 14.28 MB / 1.35 GB, free: 76.06 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01102/4.092, allocations: 1.972 MB / 1.352 GB, free: 74.19 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05854/4.151, allocations: 26.77 MB / 1.379 GB, free: 47.57 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003005/4.154, allocations: 3.926 MB / 1.382 GB, free: 43.62 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.008734/4.162, allocations: 2.045 MB / 1.384 GB, free: 41.66 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003352/4.166, allocations: 0.577 MB / 1.385 GB, free: 41.09 MB / 0.795 GB Notification: Performance of SimCode: time 1.402e-06/4.166, allocations: 0.5625 kB / 1.385 GB, free: 41.09 MB / 0.795 GB Notification: Performance of Templates: time 0.46/4.626, allocations: 244.4 MB / 1.624 GB, free: 240 MB / 0.795 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)