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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7484/0.7484, allocations: 150.8 MB / 166.1 MB, free: 15.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.218e-05/1.212e-05, allocations: 0 / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1324, allocations: 31.99 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.421/1.554, allocations: 296.3 MB / 0.5206 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4376/1.991, allocations: 188 MB / 0.7042 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006462/1.992, allocations: 14.41 kB / 0.7042 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006821/1.993, allocations: 299.9 kB / 0.7045 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000718/1.994, allocations: 388.1 kB / 0.7049 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02228/2.016, allocations: 9.455 MB / 0.7141 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001491/2.017, allocations: 1.451 MB / 0.7155 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006218/2.018, allocations: 0.6008 MB / 0.7161 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004422/2.018, allocations: 463 kB / 0.7165 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004375/2.019, allocations: 0.5075 MB / 0.717 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.994e-05/2.019, allocations: 40.78 kB / 0.7171 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02635/2.045, allocations: 18.29 MB / 0.7349 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004287/2.046, allocations: 239.3 kB / 0.7352 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007994/2.047, allocations: 0.546 MB / 0.7357 GB, free: 3.395 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01759/2.064, allocations: 10.17 MB / 0.7456 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/2.064, allocations: 3.562 kB / 0.7456 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.074e-06/2.064, allocations: 0 / 0.7456 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.674e-05/2.064, allocations: 2.938 kB / 0.7456 GB, free: 15.41 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.005789/2.07, allocations: 2.36 MB / 0.7479 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/2.07, allocations: 11.34 kB / 0.748 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002338/2.07, allocations: 139.6 kB / 0.7481 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007287/2.071, allocations: 0.6194 MB / 0.7487 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.776e-05/2.071, allocations: 65.94 kB / 0.7488 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/2.071, allocations: 84.84 kB / 0.7488 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/2.073, allocations: 1.107 MB / 0.7499 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/2.073, allocations: 6.906 kB / 0.7499 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.371e-05/2.073, allocations: 37.53 kB / 0.75 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/2.073, allocations: 34.05 kB / 0.75 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/2.074, allocations: 0.7968 MB / 0.7508 GB, free: 12.95 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.004975/2.079, allocations: 5.475 MB / 0.7561 GB, free: 9.012 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009206/2.08, allocations: 0.6196 MB / 0.7567 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004965/2.08, allocations: 429 kB / 0.7571 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3666/2.447, allocations: 188.2 MB / 0.9409 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/2.447, allocations: 49.41 kB / 0.9409 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=123): time 2.494e-06/2.447, allocations: 0 / 0.9409 GB, free: 3.277 MB / 0.7794 GB Notification: Performance of matching and sorting (n=123): time 0.004364/2.451, allocations: 1.962 MB / 0.9429 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/2.452, allocations: 89.67 kB / 0.9429 GB, free: 1.582 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/2.453, allocations: 0.8823 MB / 0.9438 GB, free: 0.8945 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/2.453, allocations: 37.02 kB / 0.9438 GB, free: 0.8594 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.0003081/2.453, allocations: 428.9 kB / 0.9442 GB, free: 0.5859 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002788/2.453, allocations: 417.4 kB / 0.9446 GB, free: 236 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/2.453, allocations: 129.8 kB / 0.9448 GB, free: 144 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001354/2.454, allocations: 356 kB / 0.9451 GB, free: 15.81 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006176/2.454, allocations: 417.7 kB / 0.9455 GB, free: 15.55 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007123/2.455, allocations: 0.6018 MB / 0.9461 GB, free: 15.08 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.009317/2.464, allocations: 3.407 MB / 0.9494 GB, free: 12.41 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/2.464, allocations: 0 / 0.9494 GB, free: 12.41 MB / 0.795 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002381/2.467, allocations: 1.484 MB / 0.9509 GB, free: 11.41 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/2.467, allocations: 4 kB / 0.9509 GB, free: 11.41 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/2.467, allocations: 8 kB / 0.9509 GB, free: 11.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/2.47, allocations: 0.9736 MB / 0.9518 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008198/2.471, allocations: 260.5 kB / 0.9521 GB, free: 10.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003658/2.475, allocations: 3.822 MB / 0.9558 GB, free: 6.641 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006357/2.475, allocations: 108.7 kB / 0.9559 GB, free: 6.535 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/2.475, allocations: 48.09 kB / 0.956 GB, free: 6.488 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.0004978/2.476, allocations: 294.1 kB / 0.9562 GB, free: 6.207 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/2.476, allocations: 106.6 kB / 0.9563 GB, free: 6.102 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00284/2.479, allocations: 1.808 MB / 0.9581 GB, free: 4.281 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002189/2.481, allocations: 1.381 MB / 0.9595 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/2.481, allocations: 4 kB / 0.9595 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/2.481, allocations: 3.984 kB / 0.9595 GB, free: 2.883 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005528/2.487, allocations: 3.472 MB / 0.9629 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/2.487, allocations: 4 kB / 0.9629 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007392/2.488, allocations: 180.6 kB / 0.963 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/2.489, allocations: 0.5389 MB / 0.9636 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-05/2.489, allocations: 31.98 kB / 0.9636 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/2.491, allocations: 1.899 MB / 0.9654 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/2.491, allocations: 4 kB / 0.9655 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003422/2.494, allocations: 2.291 MB / 0.9677 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004803/2.495, allocations: 318.9 kB / 0.968 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/2.495, allocations: 23.84 kB / 0.968 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005342/2.495, allocations: 47.83 kB / 0.9681 GB, free: 9.922 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/2.495, allocations: 83.81 kB / 0.9681 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.538e-05/2.495, allocations: 41.84 kB / 0.9682 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007999/2.496, allocations: 0.6317 MB / 0.9688 GB, free: 9.176 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/2.496, allocations: 0 / 0.9688 GB, free: 9.176 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004086/2.5, allocations: 1.608 MB / 0.9704 GB, free: 7.566 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.007038/2.507, allocations: 2.236 MB / 0.9726 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003357/2.511, allocations: 1.715 MB / 0.9742 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/2.511, allocations: 0 / 0.9742 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.001878/2.513, allocations: 0.9226 MB / 0.9751 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/2.515, allocations: 357.8 kB / 0.9755 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1595/2.674, allocations: 3.348 MB / 0.9787 GB, free: 458.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007333/2.675, allocations: 1.211 MB / 0.9799 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005324/2.676, allocations: 118.2 kB / 0.98 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/2.676, allocations: 75.81 kB / 0.9801 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of SimCode: time 5.51e-07/2.676, allocations: 0 / 0.9801 GB, free: 457.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.06442/2.74, allocations: 58.27 MB / 1.037 GB, free: 428.5 MB / 0.8106 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.makefile Environment - environmentSimulation: (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestPressurizer.pipe 2>&1) Environment - environmentSimulation: