Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.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.Examples.Book.SimpleExamples.Volume.TestPressurizer,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_Volume_TestPressurizer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_Volume_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.8162/0.8162, allocations: 150.8 MB / 166.1 MB, free: 15.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.384e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1432, 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.Volume.TestPressurizer): time 1.52/1.664, allocations: 297.3 MB / 0.5216 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.44/2.104, allocations: 188 MB / 0.7052 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000764/2.104, allocations: 13.41 kB / 0.7052 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000832/2.105, allocations: 297.3 kB / 0.7055 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001185/2.106, allocations: 391.8 kB / 0.7059 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02254/2.129, allocations: 9.449 MB / 0.7151 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001508/2.131, allocations: 1.454 MB / 0.7165 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006184/2.131, allocations: 0.6061 MB / 0.7171 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004739/2.132, allocations: 466.7 kB / 0.7176 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004643/2.132, allocations: 0.5036 MB / 0.7181 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.301e-05/2.132, allocations: 40.47 kB / 0.7181 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02673/2.159, allocations: 18.29 MB / 0.736 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003215/2.159, allocations: 232.4 kB / 0.7362 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006577/2.16, allocations: 0.5526 MB / 0.7367 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01803/2.178, allocations: 10.16 MB / 0.7467 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/2.178, allocations: 0 / 0.7467 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.104e-06/2.178, allocations: 3.844 kB / 0.7467 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.379e-05/2.178, allocations: 0 / 0.7467 GB, free: 15.53 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: 273 * Number of variables: 273 Notification: Performance of Generate backend data structure: time 0.005419/2.183, allocations: 2.365 MB / 0.749 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/2.184, allocations: 9.375 kB / 0.749 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/2.184, allocations: 152.3 kB / 0.7491 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/2.184, allocations: 138.8 kB / 0.7493 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000673/2.185, allocations: 0.6267 MB / 0.7499 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/2.185, allocations: 65.03 kB / 0.7499 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/2.185, allocations: 88.97 kB / 0.75 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/2.186, allocations: 1.097 MB / 0.7511 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/2.186, allocations: 4 kB / 0.7511 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.453e-05/2.186, allocations: 34.5 kB / 0.7511 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/2.186, allocations: 40.38 kB / 0.7512 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/2.187, allocations: 0.8024 MB / 0.7519 GB, free: 13 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.004933/2.192, allocations: 5.464 MB / 0.7573 GB, free: 9.074 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009541/2.193, allocations: 0.6284 MB / 0.7579 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005115/2.194, allocations: 436.7 kB / 0.7583 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3706/2.564, allocations: 188.2 MB / 0.9421 GB, free: 3.293 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.099e-05/2.565, allocations: 46.48 kB / 0.9421 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=123): time 3.216e-06/2.565, allocations: 0 / 0.9421 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=123): time 0.004384/2.569, allocations: 1.968 MB / 0.944 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/2.569, allocations: 85.66 kB / 0.9441 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009765/2.57, allocations: 0.8742 MB / 0.945 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/2.57, allocations: 37.08 kB / 0.945 GB, free: 0.8359 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Examples/Book/SimpleExamples/Volume/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/Examples/Book/SimpleExamples/Volume/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.0002931/2.57, allocations: 439.4 kB / 0.9454 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002577/2.571, allocations: 409.1 kB / 0.9458 GB, free: 208 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/2.571, allocations: 133.9 kB / 0.9459 GB, free: 112 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001283/2.571, allocations: 360 kB / 0.9463 GB, free: 15.77 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006098/2.572, allocations: 413.6 kB / 0.9467 GB, free: 15.52 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000717/2.572, allocations: 0.598 MB / 0.9473 GB, free: 15.05 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.009532/2.582, allocations: 3.395 MB / 0.9506 GB, free: 12.39 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/2.582, allocations: 4 kB / 0.9506 GB, free: 12.39 MB / 0.795 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002448/2.584, allocations: 1.482 MB / 0.952 GB, free: 11.39 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/2.584, allocations: 9.25 kB / 0.952 GB, free: 11.39 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/2.584, allocations: 4 kB / 0.952 GB, free: 11.38 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003625/2.588, allocations: 0.9825 MB / 0.953 GB, free: 10.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008884/2.589, allocations: 258.6 kB / 0.9532 GB, free: 10.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003633/2.593, allocations: 3.833 MB / 0.957 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006767/2.593, allocations: 111 kB / 0.9571 GB, free: 6.324 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/2.593, allocations: 36 kB / 0.9571 GB, free: 6.289 MB / 0.795 GB Warning: Assuming fixed start value for the following 1 variables: regulation_Niveau.pIsat.Integrateur1.x0:DISCRETE(fixed = true protected = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: $DER.pressurizer.hv = 0.0 $DER.regulation_Niveau.pIsat.Integrateur1.x = 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: 15 ($PRE.regulation_Niveau.pIsat.Integrateur1.x0,regulation_Niveau.pIsat.Integrateur1.x0,regulation_Niveau.pIsat.Integrateur1.reset.signal,sinkQ1.C.a,pressurizer.Cex.b,pressurizer.Cs.b,pressurizer.Cas.a,sinkQ.C.a,sourceP.C.b,lumpedStraightPipe.C2.b,lumpedStraightPipe.C1.a,SteamValve.C2.b,SteamValve.C1.a,FeedwaterValve_Spray.C2.b,FeedwaterValve_Spray.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 0 systems * Non-linear Jacobian (size): 1 system {1} * 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), (5,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0004926/2.594, allocations: 306 kB / 0.9574 GB, free: 5.996 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/2.594, allocations: 113.4 kB / 0.9575 GB, free: 5.887 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002808/2.597, allocations: 1.789 MB / 0.9593 GB, free: 4.082 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002154/2.599, allocations: 1.382 MB / 0.9606 GB, free: 2.691 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/2.599, allocations: 8.062 kB / 0.9606 GB, free: 2.684 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/2.599, allocations: 3.984 kB / 0.9606 GB, free: 2.68 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005236/2.604, allocations: 3.468 MB / 0.964 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/2.604, allocations: 4.312 kB / 0.964 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/2.605, allocations: 187.5 kB / 0.9642 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001687/2.607, allocations: 0.5358 MB / 0.9647 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.995e-05/2.607, allocations: 27.98 kB / 0.9648 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/2.608, allocations: 1.905 MB / 0.9666 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/2.608, allocations: 2.906 kB / 0.9666 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/2.611, allocations: 2.29 MB / 0.9689 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004411/2.612, allocations: 314.9 kB / 0.9692 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/2.612, allocations: 24 kB / 0.9692 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004832/2.612, allocations: 45.64 kB / 0.9692 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/2.613, allocations: 87.72 kB / 0.9693 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.616e-05/2.613, allocations: 32 kB / 0.9693 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007411/2.613, allocations: 0.6278 MB / 0.97 GB, free: 8.98 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/2.613, allocations: 0 / 0.97 GB, free: 8.98 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003728/2.617, allocations: 1.612 MB / 0.9715 GB, free: 7.367 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (pressurizer.y,pressurizer.P,pressurizer.hl,pressurizer.hv,pressurizer.Tp,regulation_Niveau.pIsat.Integrateur1.x,regulation_Niveau.pT1_1.x) * Number of discrete variables: 1 (regulation_Niveau.pIsat.Integrateur1.x0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 1 * 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.009634/2.627, allocations: 4.99 MB / 0.9764 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00317/2.63, allocations: 1.706 MB / 0.9781 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/2.63, allocations: 0 / 0.9781 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.1593/2.789, allocations: 0.9123 MB / 0.979 GB, free: 459.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/2.792, allocations: 356.5 kB / 0.9793 GB, free: 459.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/2.807, allocations: 11.53 MB / 0.9906 GB, free: 455.6 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/2.808, allocations: 1.207 MB / 0.9917 GB, free: 454.9 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004902/2.808, allocations: 121.3 kB / 0.9919 GB, free: 454.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/2.809, allocations: 0.5156 MB / 0.9924 GB, free: 454.9 MB / 0.8106 GB Notification: Performance of SimCode: time 7.61e-07/2.809, allocations: 2.719 kB / 0.9924 GB, free: 454.9 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.089/2.898, allocations: 72.3 MB / 1.063 GB, free: 406.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/2.898, allocations: 302.2 kB / 1.063 GB, free: 405.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.94/7.838, allocations: 0 / 1.063 GB, free: 405.8 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_Volume_TestPressurizer_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_Volume_TestPressurizer.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.pipe 2>&1)