Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.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.Volume.TestStaticDrum3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7452/0.7452, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.217e-05/1.227e-05, allocations: 4 kB / 204.8 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1367, allocations: 31.97 MB / 236.8 MB, free: 5.414 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.Volume.TestStaticDrum3): time 1.471/1.608, allocations: 297.6 MB / 0.5218 GB, free: 9.391 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4469/2.055, allocations: 188.6 MB / 0.706 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006374/2.055, allocations: 8.75 kB / 0.706 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006791/2.056, allocations: 269.4 kB / 0.7062 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00106/2.057, allocations: 0.6635 MB / 0.7069 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02275/2.08, allocations: 9.627 MB / 0.7163 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006353/2.086, allocations: 8.946 MB / 0.725 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003179/2.089, allocations: 2.684 MB / 0.7276 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003771/2.093, allocations: 2.723 MB / 0.7303 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004577/2.098, allocations: 3.4 MB / 0.7336 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007908/2.099, allocations: 278.4 kB / 0.7339 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03187/2.13, allocations: 18.55 MB / 0.752 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.002755/2.133, allocations: 1.741 MB / 0.7537 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.004557/2.138, allocations: 2.609 MB / 0.7562 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02701/2.165, allocations: 15.43 MB / 0.7713 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/2.165, allocations: 0 / 0.7713 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.655e-06/2.165, allocations: 0 / 0.7713 GB, free: 6.832 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001575/2.165, allocations: 2.906 kB / 0.7713 GB, free: 6.832 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.02847/2.193, allocations: 8.017 MB / 0.7791 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/2.194, allocations: 8.031 kB / 0.7791 GB, free: 15.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001786/2.195, allocations: 480.2 kB / 0.7796 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003742/2.199, allocations: 1.811 MB / 0.7814 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00215/2.201, allocations: 1.803 MB / 0.7831 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001424/2.203, allocations: 338.2 kB / 0.7835 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02159/2.224, allocations: 10.01 MB / 0.7932 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/2.224, allocations: 6.906 kB / 0.7932 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007716/2.225, allocations: 132.2 kB / 0.7934 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/2.225, allocations: 157.9 kB / 0.7935 GB, free: 3.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03053/2.256, allocations: 13.31 MB / 0.8065 GB, free: 6.133 MB / 0.6231 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.04353/2.299, allocations: 29.77 MB / 0.8356 GB, free: 7.305 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02497/2.324, allocations: 10.44 MB / 0.8458 GB, free: 12.87 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01758/2.342, allocations: 7.827 MB / 0.8534 GB, free: 5.023 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4602/2.802, allocations: 155.3 MB / 1.005 GB, free: 415.7 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/2.802, allocations: 86.34 kB / 1.005 GB, free: 415.7 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1061): time 1.006e-05/2.802, allocations: 0 / 1.005 GB, free: 415.7 MB / 0.795 GB Notification: Performance of matching and sorting (n=1061): time 0.05544/2.858, allocations: 24.89 MB / 1.029 GB, free: 409.4 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/2.858, allocations: 130.6 kB / 1.03 GB, free: 409.3 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009485/2.859, allocations: 0.8947 MB / 1.03 GB, free: 408.6 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0009651/2.86, allocations: 114.2 kB / 1.031 GB, free: 408.5 MB / 0.795 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:6:3-7:71:writable] Warning: The parameter lumpedStraightPipe.lambda has fixed = false and a binding equation lumpedStraightPipe.lambda = 0.03, 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.0003743/2.86, allocations: 0.6424 MB / 1.031 GB, free: 408.1 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.002776/2.863, allocations: 3.492 MB / 1.035 GB, free: 405 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/2.864, allocations: 0.6411 MB / 1.035 GB, free: 404.6 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.804e-05/2.864, allocations: 308.7 kB / 1.036 GB, free: 404.3 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01539/2.88, allocations: 6.939 MB / 1.042 GB, free: 397.7 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01709/2.897, allocations: 7.782 MB / 1.05 GB, free: 389.7 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.1525/3.049, allocations: 44.91 MB / 1.094 GB, free: 344.8 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-05/3.049, allocations: 4 kB / 1.094 GB, free: 344.8 MB / 0.795 GB Notification: Performance of matching and sorting (n=1150) (initialization): time 0.04857/3.098, allocations: 19.72 MB / 1.113 GB, free: 324.9 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/3.098, allocations: 15.94 kB / 1.113 GB, free: 324.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001022/3.098, allocations: 32.09 kB / 1.113 GB, free: 324.9 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04725/3.145, allocations: 20.64 MB / 1.133 GB, free: 304.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007064/3.153, allocations: 1.533 MB / 1.135 GB, free: 302.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02798/3.181, allocations: 15.16 MB / 1.15 GB, free: 287.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008843/3.189, allocations: 1.812 MB / 1.151 GB, free: 285.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001456/3.191, allocations: 284.6 kB / 1.152 GB, free: 285.2 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.volumeA.h = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 30 (volumeA.Cs2.b,volumeA.Cs1.b,volumeA.Ce2.a,volumeA.Ce1.a,lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,dynamicTwoPhaseFlowPipe.C2.b,dynamicTwoPhaseFlowPipe.C1.a,sink.C.a,singularPressureLossVALI3.C2.b,singularPressureLossVALI3.C1.a,sourcePQ.C.b,sinkQ.C.a,singularPressureLossVALI2.C2.b,singularPressureLossVALI2.C1.a,singularPressureLossVALI1.C2.b,singularPressureLossVALI1.C1.a,StaticDrumTh1.Ce_sup.a,StaticDrumTh1.Ce_steam.a,StaticDrumTh1.Cs_purg.b,StaticDrumTh1.Cs_sur.b,StaticDrumTh1.Cs_eva.b,StaticDrumTh1.Cs_sup.b,StaticDrumTh1.Ce_eco.a,StaticDrumTh1.Ce_eva.a,volumeA.Cs2.a,volumeA.Ce2.b,StaticDrumTh1.Cs_sup.a,StaticDrumTh1.Ce_sup.b,StaticDrumTh1.Ce_steam.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (367): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,3), (24,211), (1,3), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.003519/3.194, allocations: 1.161 MB / 1.153 GB, free: 284.1 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/3.196, allocations: 375 kB / 1.153 GB, free: 283.7 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04082/3.237, allocations: 20.12 MB / 1.173 GB, free: 263.5 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03707/3.274, allocations: 17.55 MB / 1.19 GB, free: 245.9 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.348e-05/3.274, allocations: 0 / 1.19 GB, free: 245.9 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001162/3.274, allocations: 39.84 kB / 1.19 GB, free: 245.8 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06588/3.34, allocations: 32.2 MB / 1.221 GB, free: 213 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001616/3.34, allocations: 24.02 kB / 1.221 GB, free: 213 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01967/3.36, allocations: 4.144 MB / 1.225 GB, free: 208.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/3.363, allocations: 1.395 MB / 1.227 GB, free: 207.4 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002173/3.365, allocations: 284.3 kB / 1.227 GB, free: 207.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009944/3.375, allocations: 17.09 MB / 1.244 GB, free: 188.6 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/3.375, allocations: 7.969 kB / 1.244 GB, free: 188.6 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05723/3.432, allocations: 27.31 MB / 1.27 GB, free: 161.2 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004013/3.436, allocations: 1.694 MB / 1.272 GB, free: 159.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/3.438, allocations: 160 kB / 1.272 GB, free: 159.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008712/3.447, allocations: 1.416 MB / 1.274 GB, free: 157.9 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001683/3.449, allocations: 0.5364 MB / 1.274 GB, free: 157.4 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001253/3.45, allocations: 307.7 kB / 1.274 GB, free: 157.1 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006382/3.451, allocations: 0.5771 MB / 1.275 GB, free: 156.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.8e-07/3.451, allocations: 0 / 1.275 GB, free: 156.5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.008088/3.459, allocations: 3.142 MB / 1.278 GB, free: 153.5 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 32 (dynamicTwoPhaseFlowPipe.P[2],dynamicTwoPhaseFlowPipe.P[3],dynamicTwoPhaseFlowPipe.P[4],dynamicTwoPhaseFlowPipe.P[5],dynamicTwoPhaseFlowPipe.P[6],dynamicTwoPhaseFlowPipe.P[7],dynamicTwoPhaseFlowPipe.P[8],dynamicTwoPhaseFlowPipe.P[9],dynamicTwoPhaseFlowPipe.P[10],dynamicTwoPhaseFlowPipe.P[11],dynamicTwoPhaseFlowPipe.Q[1],dynamicTwoPhaseFlowPipe.Q[2],dynamicTwoPhaseFlowPipe.Q[3],dynamicTwoPhaseFlowPipe.Q[4],dynamicTwoPhaseFlowPipe.Q[5],dynamicTwoPhaseFlowPipe.Q[6],dynamicTwoPhaseFlowPipe.Q[7],dynamicTwoPhaseFlowPipe.Q[8],dynamicTwoPhaseFlowPipe.Q[9],dynamicTwoPhaseFlowPipe.Q[10],dynamicTwoPhaseFlowPipe.Q[11],dynamicTwoPhaseFlowPipe.h[2],dynamicTwoPhaseFlowPipe.h[3],dynamicTwoPhaseFlowPipe.h[4],dynamicTwoPhaseFlowPipe.h[5],dynamicTwoPhaseFlowPipe.h[6],dynamicTwoPhaseFlowPipe.h[7],dynamicTwoPhaseFlowPipe.h[8],dynamicTwoPhaseFlowPipe.h[9],dynamicTwoPhaseFlowPipe.h[10],dynamicTwoPhaseFlowPipe.h[11],volumeA.h) * 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 (792): * Single equations (assignments): 733 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 45 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 14 * 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): 4 systems {(1,4), (1,3), (1,3), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007455/3.466, allocations: 2.444 MB / 1.28 GB, free: 151.5 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.04374/3.51, allocations: 20.96 MB / 1.301 GB, free: 129.8 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/3.51, allocations: 3.938 kB / 1.301 GB, free: 129.8 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0221/3.532, allocations: 11.3 MB / 1.312 GB, free: 118.2 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/3.544, allocations: 1.954 MB / 1.314 GB, free: 116.4 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05867/3.602, allocations: 28.08 MB / 1.341 GB, free: 88.46 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003157/3.605, allocations: 3.451 MB / 1.345 GB, free: 84.98 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.008854/3.614, allocations: 1.959 MB / 1.347 GB, free: 83.05 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003646/3.618, allocations: 0.5994 MB / 1.347 GB, free: 82.45 MB / 0.795 GB Notification: Performance of SimCode: time 6.91e-07/3.618, allocations: 0 / 1.347 GB, free: 82.45 MB / 0.795 GB Notification: Performance of Templates: time 0.3907/4.009, allocations: 193.4 MB / 1.536 GB, free: 318.6 MB / 0.795 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestStaticDrum3.pipe 2>&1) Environment - environmentSimulation: