Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestPressurizer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestPressurizer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7558/0.7558, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.445e-05/1.447e-05, allocations: 4 kB / 204.9 MB, free: 9.965 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1322, allocations: 31.98 MB / 236.8 MB, free: 5.398 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.SimpleExamples.TestPressurizer): time 1.497/1.629, allocations: 297.7 MB / 0.522 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4723/2.101, allocations: 197.3 MB / 0.7147 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005505/2.102, allocations: 18.03 kB / 0.7147 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005033/2.102, allocations: 207 kB / 0.7149 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000703/2.103, allocations: 383.7 kB / 0.7153 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02665/2.13, allocations: 11.42 MB / 0.7264 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001594/2.131, allocations: 1.54 MB / 0.7279 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007025/2.132, allocations: 0.6194 MB / 0.7286 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000689/2.133, allocations: 0.5022 MB / 0.729 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005552/2.133, allocations: 0.5596 MB / 0.7296 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.576e-05/2.133, allocations: 58.38 kB / 0.7296 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03209/2.166, allocations: 20.6 MB / 0.7498 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005067/2.166, allocations: 226.7 kB / 0.75 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007832/2.167, allocations: 0.6079 MB / 0.7506 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02424/2.191, allocations: 11.61 MB / 0.7619 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/2.191, allocations: 0 / 0.7619 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.944e-06/2.191, allocations: 5.859 kB / 0.7619 GB, free: 13.24 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.388e-05/2.191, allocations: 3.938 kB / 0.7619 GB, free: 13.24 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.005669/2.197, allocations: 2.619 MB / 0.7645 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/2.197, allocations: 8.656 kB / 0.7645 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000166/2.197, allocations: 187.7 kB / 0.7647 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/2.197, allocations: 149.3 kB / 0.7648 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/2.198, allocations: 0.5971 MB / 0.7654 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.363e-05/2.198, allocations: 87.72 kB / 0.7655 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/2.198, allocations: 112.3 kB / 0.7656 GB, free: 11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/2.2, allocations: 1.29 MB / 0.7668 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/2.2, allocations: 4.5 kB / 0.7669 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.771e-05/2.2, allocations: 48.53 kB / 0.7669 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/2.2, allocations: 30.47 kB / 0.7669 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/2.202, allocations: 0.9945 MB / 0.7679 GB, free: 10.42 MB / 0.5919 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.0778/2.279, allocations: 36.63 MB / 0.8037 GB, free: 7.645 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009297/2.28, allocations: 0.5878 MB / 0.8042 GB, free: 7.246 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005143/2.281, allocations: 342.4 kB / 0.8046 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8365/3.117, allocations: 347.8 MB / 1.144 GB, free: 307.1 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/3.117, allocations: 42.75 kB / 1.144 GB, free: 307.1 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=84): time 2.605e-06/3.117, allocations: 1.969 kB / 1.144 GB, free: 307.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=84): time 0.003888/3.121, allocations: 1.584 MB / 1.146 GB, free: 305.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.111e-05/3.121, allocations: 59.84 kB / 1.146 GB, free: 305.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008371/3.122, allocations: 0.7632 MB / 1.147 GB, free: 305.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/3.122, allocations: 41.58 kB / 1.147 GB, free: 305.1 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Examples/SimpleExamples/TestPressurizer.mo:6:3-7:27:writable] Warning: The parameter OUVfeedwaterValve has fixed = false and a binding equation OUVfeedwaterValve = 0.01, 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Examples/SimpleExamples/TestPressurizer.mo:4:3-5:47:writable] Warning: The parameter Wch has fixed = false and a binding equation Wch = 290000.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.0002749/3.123, allocations: 0.549 MB / 1.147 GB, free: 304.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/3.123, allocations: 292.2 kB / 1.147 GB, free: 304.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/3.123, allocations: 115.5 kB / 1.148 GB, free: 304.4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.393e-05/3.123, allocations: 394 kB / 1.148 GB, free: 304.1 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/3.123, allocations: 291.8 kB / 1.148 GB, free: 303.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/3.124, allocations: 0.6298 MB / 1.149 GB, free: 303.2 MB / 0.8106 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.007421/3.131, allocations: 2.604 MB / 1.151 GB, free: 301.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/3.131, allocations: 4 kB / 1.151 GB, free: 301 MB / 0.8106 GB Notification: Performance of matching and sorting (n=154) (initialization): time 0.002219/3.134, allocations: 1.375 MB / 1.153 GB, free: 300.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/3.134, allocations: 10.08 kB / 1.153 GB, free: 300.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/3.134, allocations: 12 kB / 1.153 GB, free: 300 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003952/3.138, allocations: 1.246 MB / 1.154 GB, free: 298.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000417/3.138, allocations: 151.5 kB / 1.154 GB, free: 298.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/3.14, allocations: 2.296 MB / 1.156 GB, free: 296.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006652/3.14, allocations: 130.4 kB / 1.157 GB, free: 296.6 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/3.14, allocations: 51.88 kB / 1.157 GB, free: 296.6 MB / 0.8106 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.pressurizer.P = 0.0 pressurizer.P = $START.pressurizer.P. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 17 (pressurizer.Cex.ftype,pressurizer.Cs.ftype,sourceP.C.ftype,pressurizer.fluids[1],FeedwaterValve.fluid,SteamValve.fluid,lumpedStraightPipe.fluid,sinkQ.fluid,sinkQ1.fluid,sourceP.fluid1,pressurizer.Cs.diff_on_1,SteamValve.C2.diff_on_1,pressurizer.Cex.diff_on_1,pressurizer.Cas.diff_on_2,sourceP.C.diff_on_2,pressurizer.Cs.diff_on_2,FeedwaterValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,4), (4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0003887/3.141, allocations: 271.1 kB / 1.157 GB, free: 296.4 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/3.141, allocations: 90.81 kB / 1.157 GB, free: 296.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002187/3.143, allocations: 1.162 MB / 1.158 GB, free: 295.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001676/3.145, allocations: 0.9056 MB / 1.159 GB, free: 294.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/3.145, allocations: 0 / 1.159 GB, free: 294.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/3.145, allocations: 7.984 kB / 1.159 GB, free: 294.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003604/3.149, allocations: 2.297 MB / 1.161 GB, free: 293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/3.149, allocations: 1.125 kB / 1.161 GB, free: 293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/3.149, allocations: 97.81 kB / 1.161 GB, free: 292.9 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/3.15, allocations: 304.2 kB / 1.162 GB, free: 292.7 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.001e-05/3.15, allocations: 23.67 kB / 1.162 GB, free: 292.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007729/3.151, allocations: 1.699 MB / 1.163 GB, free: 290.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/3.151, allocations: 0 / 1.163 GB, free: 290.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/3.154, allocations: 1.492 MB / 1.165 GB, free: 289.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/3.154, allocations: 254.7 kB / 1.165 GB, free: 289.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/3.154, allocations: 12 kB / 1.165 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/3.155, allocations: 19.94 kB / 1.165 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/3.155, allocations: 50.55 kB / 1.165 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.768e-05/3.155, allocations: 27.98 kB / 1.165 GB, free: 289.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0005551/3.155, allocations: 0.4919 MB / 1.166 GB, free: 288.6 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/3.155, allocations: 0 / 1.166 GB, free: 288.6 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005474/3.161, allocations: 1.893 MB / 1.167 GB, free: 286.9 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pressurizer.y,pressurizer.P,pressurizer.hl,pressurizer.hv,pressurizer.Tp) * 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 (61): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,62.5%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems 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): 3 systems {(1,4), (1,3), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01281/3.174, allocations: 4.64 MB / 1.172 GB, free: 282.7 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002691/3.176, allocations: 1.038 MB / 1.173 GB, free: 281.6 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/3.177, allocations: 4 kB / 1.173 GB, free: 281.6 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00107/3.178, allocations: 0.5563 MB / 1.173 GB, free: 281 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/3.18, allocations: 262.5 kB / 1.174 GB, free: 280.8 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/3.196, allocations: 9.774 MB / 1.183 GB, free: 270.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/3.197, allocations: 1.108 MB / 1.184 GB, free: 269.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005656/3.198, allocations: 135.5 kB / 1.184 GB, free: 269.3 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004083/3.198, allocations: 451.3 kB / 1.185 GB, free: 268.9 MB / 0.8106 GB Notification: Performance of SimCode: time 1.012e-06/3.198, allocations: 2.844 kB / 1.185 GB, free: 268.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09514/3.293, allocations: 72.05 MB / 1.255 GB, free: 198 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/3.293, allocations: 292.5 kB / 1.256 GB, free: 197.6 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.087/8.38, allocations: 0 / 1.256 GB, free: 197.6 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestPressurizer_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestPressurizer.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestPressurizer.pipe 2>&1)