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.873/0.873, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.895e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2005, allocations: 31.97 MB / 236.8 MB, free: 5.207 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. 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.745/1.946, allocations: 295.7 MB / 0.52 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5469/2.493, allocations: 191.6 MB / 0.7071 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008345/2.494, allocations: 11.09 kB / 0.7071 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009004/2.495, allocations: 225.1 kB / 0.7074 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00157/2.496, allocations: 0.6085 MB / 0.7079 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03181/2.528, allocations: 10.04 MB / 0.7178 GB, free: 3.746 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00753/2.536, allocations: 10.2 MB / 0.7277 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004491/2.54, allocations: 3.029 MB / 0.7307 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00574/2.546, allocations: 2.937 MB / 0.7335 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007693/2.554, allocations: 3.807 MB / 0.7373 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002544/2.556, allocations: 328 kB / 0.7376 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03445/2.591, allocations: 18.23 MB / 0.7554 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.006243/2.597, allocations: 2.168 MB / 0.7575 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.01202/2.609, allocations: 2.907 MB / 0.7603 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03591/2.645, allocations: 16.14 MB / 0.7761 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/2.645, allocations: 0.625 kB / 0.7761 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.425e-06/2.645, allocations: 0 / 0.7761 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002804/2.645, allocations: 0 / 0.7761 GB, free: 3.863 MB / 0.5919 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.03317/2.679, allocations: 8.057 MB / 0.7839 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/2.679, allocations: 12.03 kB / 0.784 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00302/2.682, allocations: 0.5292 MB / 0.7845 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005916/2.688, allocations: 2.12 MB / 0.7865 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003819/2.691, allocations: 2.252 MB / 0.7887 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003947/2.695, allocations: 409.6 kB / 0.7891 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/2.732, allocations: 11.64 MB / 0.8005 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002212/2.732, allocations: 13.66 kB / 0.8005 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002317/2.734, allocations: 164 kB / 0.8007 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001687/2.735, allocations: 155.9 kB / 0.8008 GB, free: 13.05 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04279/2.777, allocations: 16.68 MB / 0.8171 GB, free: 12.42 MB / 0.6387 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.143/2.92, allocations: 67.93 MB / 0.8835 GB, free: 4.477 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02687/2.947, allocations: 10.46 MB / 0.8937 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02247/2.97, allocations: 8.705 MB / 0.9022 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3854/3.355, allocations: 84.37 MB / 0.9846 GB, free: 429.8 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001479/3.356, allocations: 93.83 kB / 0.9847 GB, free: 429.8 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1091): time 1.961e-05/3.356, allocations: 0 / 0.9847 GB, free: 429.8 MB / 0.795 GB Notification: Performance of matching and sorting (n=1091): time 0.1332/3.489, allocations: 36.49 MB / 1.02 GB, free: 421.1 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.339e-05/3.489, allocations: 112.2 kB / 1.02 GB, free: 421 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/3.491, allocations: 1.138 MB / 1.022 GB, free: 420.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.001927/3.493, allocations: 127.4 kB / 1.022 GB, free: 420 MB / 0.795 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.0005921/3.493, allocations: 0.8768 MB / 1.022 GB, free: 419.4 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.00452/3.498, allocations: 3.635 MB / 1.026 GB, free: 416.2 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003119/3.501, allocations: 0.6971 MB / 1.027 GB, free: 415.7 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 4.59e-05/3.501, allocations: 305.1 kB / 1.027 GB, free: 415.4 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02037/3.521, allocations: 7.841 MB / 1.035 GB, free: 409.5 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02382/3.545, allocations: 9.021 MB / 1.043 GB, free: 400.4 MB / 0.795 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.1864/3.732, allocations: 49.93 MB / 1.092 GB, free: 350.2 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.985e-05/3.732, allocations: 8 kB / 1.092 GB, free: 350.2 MB / 0.795 GB Notification: Performance of matching and sorting (n=1243) (initialization): time 0.05946/3.791, allocations: 21.32 MB / 1.113 GB, free: 328.8 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/3.791, allocations: 16.94 kB / 1.113 GB, free: 328.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/3.792, allocations: 40 kB / 1.113 GB, free: 328.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04197/3.833, allocations: 17.37 MB / 1.13 GB, free: 311.3 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01196/3.845, allocations: 2.278 MB / 1.132 GB, free: 309.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02439/3.87, allocations: 11.75 MB / 1.144 GB, free: 297.2 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01075/3.881, allocations: 1.986 MB / 1.146 GB, free: 295.2 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/3.883, allocations: 347.6 kB / 1.146 GB, free: 294.9 MB / 0.795 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.005406/3.888, allocations: 1.355 MB / 1.147 GB, free: 293.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002046/3.891, allocations: 402.8 kB / 1.148 GB, free: 293.1 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07284/3.963, allocations: 25.48 MB / 1.173 GB, free: 267.5 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07052/4.034, allocations: 22.85 MB / 1.195 GB, free: 244.6 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.459e-05/4.034, allocations: 3.984 kB / 1.195 GB, free: 244.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000213/4.034, allocations: 39.84 kB / 1.195 GB, free: 244.5 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1027/4.137, allocations: 37.65 MB / 1.232 GB, free: 206.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001753/4.137, allocations: 20.61 kB / 1.232 GB, free: 206.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01252/4.15, allocations: 2.571 MB / 1.234 GB, free: 203.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/4.161, allocations: 3.696 MB / 1.238 GB, free: 200.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003119/4.164, allocations: 303.6 kB / 1.238 GB, free: 199.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06476/4.229, allocations: 43.17 MB / 1.28 GB, free: 154.2 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/4.229, allocations: 3.062 kB / 1.28 GB, free: 154.2 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09454/4.323, allocations: 33.41 MB / 1.313 GB, free: 120.6 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005283/4.329, allocations: 1.807 MB / 1.315 GB, free: 118.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003027/4.332, allocations: 168 kB / 1.315 GB, free: 118.6 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01102/4.343, allocations: 1.51 MB / 1.316 GB, free: 117.1 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004308/4.347, allocations: 0.6693 MB / 1.317 GB, free: 116.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002914/4.35, allocations: 327.6 kB / 1.317 GB, free: 116.1 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001229/4.351, allocations: 0.7459 MB / 1.318 GB, free: 115.4 MB / 0.795 GB Notification: Performance of sort global known variables: time 2e-07/4.351, allocations: 4.562 kB / 1.318 GB, free: 115.4 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.01501/4.366, allocations: 3.481 MB / 1.321 GB, free: 112 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 41 (dynamicTwoPhaseFlowPipe1.P[2],dynamicTwoPhaseFlowPipe1.P[3],dynamicTwoPhaseFlowPipe1.P[4],dynamicTwoPhaseFlowPipe1.P[5],dynamicTwoPhaseFlowPipe1.P[6],dynamicTwoPhaseFlowPipe1.P[7],dynamicTwoPhaseFlowPipe1.P[8],dynamicTwoPhaseFlowPipe1.P[9],dynamicTwoPhaseFlowPipe1.P[10],dynamicTwoPhaseFlowPipe1.P[11],dynamicTwoPhaseFlowPipe1.Q[1],dynamicTwoPhaseFlowPipe1.Q[2],dynamicTwoPhaseFlowPipe1.Q[3],dynamicTwoPhaseFlowPipe1.Q[4],dynamicTwoPhaseFlowPipe1.Q[5],dynamicTwoPhaseFlowPipe1.Q[6],dynamicTwoPhaseFlowPipe1.Q[7],dynamicTwoPhaseFlowPipe1.Q[8],dynamicTwoPhaseFlowPipe1.Q[9],dynamicTwoPhaseFlowPipe1.Q[10],dynamicTwoPhaseFlowPipe1.Q[11],dynamicTwoPhaseFlowPipe1.h[2],dynamicTwoPhaseFlowPipe1.h[3],dynamicTwoPhaseFlowPipe1.h[4],dynamicTwoPhaseFlowPipe1.h[5],dynamicTwoPhaseFlowPipe1.h[6],dynamicTwoPhaseFlowPipe1.h[7],dynamicTwoPhaseFlowPipe1.h[8],dynamicTwoPhaseFlowPipe1.h[9],dynamicTwoPhaseFlowPipe1.h[10],dynamicTwoPhaseFlowPipe1.h[11],heatExchangerWall1.Tp[1],heatExchangerWall1.Tp[2],heatExchangerWall1.Tp[3],heatExchangerWall1.Tp[4],heatExchangerWall1.Tp[5],heatExchangerWall1.Tp[6],heatExchangerWall1.Tp[7],heatExchangerWall1.Tp[8],heatExchangerWall1.Tp[9],heatExchangerWall1.Tp[10]) * 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 (783): * Single equations (assignments): 719 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 44 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 10 systems {(1,6), (1,6), (1,6), (1,6), (1,6), (1,6), (1,6), (1,6), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/4.378, allocations: 2.51 MB / 1.324 GB, free: 110 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.04875/4.427, allocations: 21.13 MB / 1.345 GB, free: 88.27 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/4.427, allocations: 0 / 1.345 GB, free: 88.27 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.02993/4.457, allocations: 13.34 MB / 1.358 GB, free: 74.54 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01499/4.472, allocations: 1.849 MB / 1.359 GB, free: 72.79 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07456/4.546, allocations: 29.69 MB / 1.388 GB, free: 43.21 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005113/4.551, allocations: 3.622 MB / 1.392 GB, free: 39.56 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.01165/4.563, allocations: 2.18 MB / 1.394 GB, free: 37.41 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006639/4.57, allocations: 0.655 MB / 1.395 GB, free: 36.76 MB / 0.795 GB Notification: Performance of SimCode: time 1.853e-06/4.57, allocations: 0 / 1.395 GB, free: 36.76 MB / 0.795 GB Notification: Performance of Templates: time 0.5729/5.143, allocations: 225.6 MB / 1.615 GB, free: 231.7 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: