Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.7378/0.7378, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.519e-05/1.519e-05, allocations: 0 / 204.8 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1497, allocations: 31.98 MB / 236.8 MB, free: 5.418 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.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe): time 1.46/1.609, allocations: 295.2 MB / 0.5195 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03327/1.643, allocations: 27.72 MB / 0.5465 GB, free: 376 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005014/1.643, allocations: 7.938 kB / 0.5465 GB, free: 368 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000635/1.644, allocations: 203 kB / 0.5467 GB, free: 164 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001146/1.645, allocations: 0.5055 MB / 0.5472 GB, free: 15.65 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01537/1.66, allocations: 5.767 MB / 0.5529 GB, free: 9.895 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.007047/1.667, allocations: 8.665 MB / 0.5613 GB, free: 1.211 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00372/1.671, allocations: 2.607 MB / 0.5639 GB, free: 14.6 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004236/1.675, allocations: 2.619 MB / 0.5664 GB, free: 11.97 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005332/1.681, allocations: 3.347 MB / 0.5697 GB, free: 8.617 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001729/1.682, allocations: 272 kB / 0.57 GB, free: 8.352 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02312/1.706, allocations: 13.44 MB / 0.5831 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00292/1.709, allocations: 1.808 MB / 0.5849 GB, free: 9.082 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005254/1.714, allocations: 2.487 MB / 0.5873 GB, free: 6.578 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01883/1.733, allocations: 11.86 MB / 0.5989 GB, free: 10.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/1.733, allocations: 0 / 0.5989 GB, free: 10.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.074e-06/1.733, allocations: 0 / 0.5989 GB, free: 10.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001619/1.733, allocations: 0 / 0.5989 GB, free: 10.69 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1241 * Number of variables: 1241 Notification: Performance of Generate backend data structure: time 0.02821/1.761, allocations: 7.306 MB / 0.606 GB, free: 3.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/1.761, allocations: 12.03 kB / 0.606 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001891/1.763, allocations: 436 kB / 0.6064 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003787/1.767, allocations: 1.75 MB / 0.6081 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002256/1.769, allocations: 1.778 MB / 0.6099 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/1.771, allocations: 315.8 kB / 0.6102 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02329/1.794, allocations: 9.687 MB / 0.6196 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-05/1.794, allocations: 3.938 kB / 0.6196 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/1.795, allocations: 119.9 kB / 0.6197 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/1.795, allocations: 135.9 kB / 0.6199 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03202/1.827, allocations: 13.25 MB / 0.6328 GB, free: 7.438 MB / 0.5137 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.03302/1.861, allocations: 20.91 MB / 0.6532 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02156/1.882, allocations: 9.825 MB / 0.6628 GB, free: 7.676 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01635/1.899, allocations: 7.863 MB / 0.6705 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2939/2.192, allocations: 70.51 MB / 0.7394 GB, free: 200.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.453e-05/2.193, allocations: 88.11 kB / 0.7395 GB, free: 200.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1026): time 1.782e-05/2.193, allocations: 0 / 0.7395 GB, free: 200.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1026): time 0.1078/2.3, allocations: 34.61 MB / 0.7733 GB, free: 173 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/2.301, allocations: 111.5 kB / 0.7734 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006403/2.301, allocations: 0.6154 MB / 0.774 GB, free: 172.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001109/2.302, allocations: 111.7 kB / 0.7741 GB, free: 172.4 MB / 0.5762 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.0002514/2.303, allocations: 487.9 kB / 0.7745 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002564/2.305, allocations: 3.392 MB / 0.7778 GB, free: 169 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/2.307, allocations: 0.5984 MB / 0.7784 GB, free: 168.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.742e-05/2.307, allocations: 349.9 kB / 0.7788 GB, free: 168 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01432/2.321, allocations: 6.976 MB / 0.7856 GB, free: 161 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01476/2.336, allocations: 7.585 MB / 0.793 GB, free: 153.4 MB / 0.5762 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.1516/2.487, allocations: 45.07 MB / 0.837 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/2.487, allocations: 4 kB / 0.837 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1084) (initialization): time 0.0421/2.53, allocations: 19.1 MB / 0.8557 GB, free: 89.14 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/2.53, allocations: 4 kB / 0.8557 GB, free: 89.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.362e-05/2.53, allocations: 23.98 kB / 0.8557 GB, free: 89.12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04271/2.572, allocations: 17.95 MB / 0.8732 GB, free: 71.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008963/2.581, allocations: 1.773 MB / 0.8749 GB, free: 69.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/2.603, allocations: 12.99 MB / 0.8876 GB, free: 56.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008123/2.611, allocations: 1.758 MB / 0.8893 GB, free: 54.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001057/2.612, allocations: 271.6 kB / 0.8896 GB, free: 54.25 MB / 0.5762 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.h[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (sinkP1.C.a,sourceP1.C.b,dynamicTwoPhaseFlowPipe1.C2.b,dynamicTwoPhaseFlowPipe1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (360): * Single equations (assignments): 345 * 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 {(21,206)} Notification: Performance of prepare postOptimizeDAE: time 0.002543/2.615, allocations: 1.141 MB / 0.8907 GB, free: 53.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008564/2.615, allocations: 335.5 kB / 0.891 GB, free: 52.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05633/2.672, allocations: 23.96 MB / 0.9144 GB, free: 28.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05303/2.725, allocations: 21.6 MB / 0.9355 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.941e-05/2.725, allocations: 8 kB / 0.9355 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000109/2.725, allocations: 35.86 kB / 0.9356 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2374/2.962, allocations: 35.55 MB / 0.9703 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001016/2.962, allocations: 19.31 kB / 0.9703 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01696/2.979, allocations: 3.852 MB / 0.9741 GB, free: 206.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009961/2.989, allocations: 3.787 MB / 0.9778 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001458/2.991, allocations: 296.5 kB / 0.978 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0604/3.051, allocations: 43.79 MB / 1.021 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/3.051, allocations: 8.062 kB / 1.021 GB, free: 169.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07534/3.127, allocations: 31.32 MB / 1.051 GB, free: 137.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003858/3.131, allocations: 1.659 MB / 1.053 GB, free: 136 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001512/3.132, allocations: 160 kB / 1.053 GB, free: 135.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008177/3.14, allocations: 1.42 MB / 1.055 GB, free: 134.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001836/3.142, allocations: 0.5718 MB / 1.055 GB, free: 133.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001094/3.143, allocations: 303.7 kB / 1.055 GB, free: 133.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004812/3.144, allocations: 486.9 kB / 1.056 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/3.144, allocations: 1.312 kB / 1.056 GB, free: 133.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00635/3.15, allocations: 2.648 MB / 1.058 GB, free: 130.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (719): * Single equations (assignments): 654 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 45 * 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.003848/3.154, allocations: 1.28 MB / 1.06 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.04048/3.194, allocations: 20.52 MB / 1.08 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/3.195, allocations: 4 kB / 1.08 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02236/3.217, allocations: 12.57 MB / 1.092 GB, free: 95.29 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009591/3.227, allocations: 1.843 MB / 1.094 GB, free: 93.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05743/3.284, allocations: 27.83 MB / 1.121 GB, free: 65.92 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002947/3.287, allocations: 3.348 MB / 1.124 GB, free: 62.54 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006195/3.293, allocations: 1.725 MB / 1.126 GB, free: 60.89 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002472/3.296, allocations: 0.5612 MB / 1.127 GB, free: 60.33 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/3.296, allocations: 1.031 kB / 1.127 GB, free: 60.33 MB / 0.5762 GB Notification: Performance of Templates: time 0.383/3.679, allocations: 201.9 MB / 1.324 GB, free: 94.39 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.HeatExchanger.TestDynamicTwoPhaseFlowPipe.pipe 2>&1) Environment - environmentSimulation: