Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.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.SimpleExamples.TestPressurizer_CC,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPressurizer_CC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPressurizer_CC",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.7846/0.7846, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.309e-05/2.31e-05, allocations: 4 kB / 204.9 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2084, allocations: 31.98 MB / 236.8 MB, free: 5.391 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.SimpleExamples.TestPressurizer_CC): time 1.697/1.905, allocations: 297.4 MB / 0.5217 GB, free: 10.63 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4504/2.355, allocations: 188 MB / 0.7053 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008025/2.356, allocations: 13.47 kB / 0.7053 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008968/2.357, allocations: 297.7 kB / 0.7056 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00136/2.359, allocations: 388.1 kB / 0.706 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02421/2.383, allocations: 9.458 MB / 0.7152 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001565/2.384, allocations: 1.449 MB / 0.7166 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006584/2.385, allocations: 0.6033 MB / 0.7172 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005174/2.386, allocations: 470.7 kB / 0.7177 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004586/2.386, allocations: 0.4997 MB / 0.7182 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.448e-05/2.386, allocations: 42.34 kB / 0.7182 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02606/2.412, allocations: 18.28 MB / 0.7361 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000312/2.413, allocations: 236.2 kB / 0.7363 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006211/2.413, allocations: 0.5484 MB / 0.7368 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01838/2.432, allocations: 10.17 MB / 0.7468 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/2.432, allocations: 3.094 kB / 0.7468 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.174e-06/2.432, allocations: 0 / 0.7468 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.563e-05/2.432, allocations: 0 / 0.7468 GB, free: 15.46 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.005576/2.437, allocations: 2.363 MB / 0.7491 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/2.437, allocations: 11.34 kB / 0.7491 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/2.437, allocations: 147.1 kB / 0.7492 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/2.438, allocations: 139 kB / 0.7494 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/2.438, allocations: 0.6251 MB / 0.75 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/2.438, allocations: 65.66 kB / 0.75 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/2.438, allocations: 85.03 kB / 0.7501 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/2.44, allocations: 1.102 MB / 0.7512 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/2.44, allocations: 5.031 kB / 0.7512 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/2.44, allocations: 34.44 kB / 0.7512 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/2.44, allocations: 42.25 kB / 0.7513 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/2.441, allocations: 0.7936 MB / 0.752 GB, free: 12.93 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.004833/2.446, allocations: 5.484 MB / 0.7574 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009006/2.447, allocations: 0.6156 MB / 0.758 GB, free: 8.914 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/2.447, allocations: 437.7 kB / 0.7584 GB, free: 8.875 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3734/2.821, allocations: 188.2 MB / 0.9422 GB, free: 3.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/2.821, allocations: 38.81 kB / 0.9422 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=123): time 2.555e-06/2.821, allocations: 4 kB / 0.9422 GB, free: 3.184 MB / 0.7794 GB Notification: Performance of matching and sorting (n=123): time 0.004397/2.825, allocations: 1.968 MB / 0.9441 GB, free: 1.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/2.825, allocations: 84.58 kB / 0.9442 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009941/2.826, allocations: 0.8748 MB / 0.9451 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.26e-05/2.826, allocations: 44.77 kB / 0.9451 GB, free: 0.7695 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Examples/SimpleExamples/TestPressurizer_CC.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/SimpleExamples/TestPressurizer_CC.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.0003007/2.827, allocations: 440.3 kB / 0.9455 GB, free: 500 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002769/2.827, allocations: 414.7 kB / 0.9459 GB, free: 140 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/2.827, allocations: 125.9 kB / 0.946 GB, free: 52 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001472/2.827, allocations: 362 kB / 0.9464 GB, free: 15.71 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006003/2.828, allocations: 413.6 kB / 0.9468 GB, free: 15.46 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007325/2.829, allocations: 0.6041 MB / 0.9474 GB, free: 14.98 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.009413/2.838, allocations: 3.384 MB / 0.9507 GB, free: 12.33 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/2.838, allocations: 0 / 0.9507 GB, free: 12.33 MB / 0.795 GB Notification: Performance of matching and sorting (n=178) (initialization): time 0.002327/2.84, allocations: 1.488 MB / 0.9521 GB, free: 11.33 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/2.84, allocations: 8 kB / 0.9521 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/2.84, allocations: 8.031 kB / 0.9522 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003556/2.844, allocations: 0.9724 MB / 0.9531 GB, free: 10.45 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008352/2.845, allocations: 258 kB / 0.9533 GB, free: 10.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/2.849, allocations: 3.832 MB / 0.9571 GB, free: 6.344 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006189/2.849, allocations: 106.8 kB / 0.9572 GB, free: 6.238 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.224e-05/2.849, allocations: 36.19 kB / 0.9572 GB, free: 6.203 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.0004952/2.85, allocations: 308.8 kB / 0.9575 GB, free: 5.906 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/2.85, allocations: 106.5 kB / 0.9576 GB, free: 5.801 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/2.853, allocations: 1.8 MB / 0.9594 GB, free: 3.988 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002187/2.855, allocations: 1.383 MB / 0.9607 GB, free: 2.594 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/2.855, allocations: 0 / 0.9607 GB, free: 2.594 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/2.855, allocations: 13.83 kB / 0.9607 GB, free: 2.582 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005288/2.86, allocations: 3.464 MB / 0.9641 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/2.86, allocations: 3.562 kB / 0.9641 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/2.861, allocations: 187.5 kB / 0.9643 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/2.863, allocations: 0.5426 MB / 0.9648 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/2.863, allocations: 23.98 kB / 0.9649 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/2.864, allocations: 1.909 MB / 0.9667 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/2.864, allocations: 2.906 kB / 0.9667 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003408/2.867, allocations: 2.289 MB / 0.969 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004039/2.868, allocations: 318.9 kB / 0.9693 GB, free: 9.688 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/2.868, allocations: 24 kB / 0.9693 GB, free: 9.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/2.868, allocations: 47.89 kB / 0.9693 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/2.869, allocations: 79.73 kB / 0.9694 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-05/2.869, allocations: 35.98 kB / 0.9694 GB, free: 9.508 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007349/2.869, allocations: 0.6239 MB / 0.9701 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/2.869, allocations: 0 / 0.9701 GB, free: 8.887 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.003904/2.873, allocations: 1.612 MB / 0.9716 GB, free: 7.273 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.009711/2.883, allocations: 4.984 MB / 0.9765 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003267/2.886, allocations: 1.722 MB / 0.9782 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/2.886, allocations: 0 / 0.9782 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.1573/3.044, allocations: 0.9081 MB / 0.9791 GB, free: 459 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/3.046, allocations: 359.5 kB / 0.9794 GB, free: 459 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/3.062, allocations: 11.53 MB / 0.9907 GB, free: 455.2 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/3.063, allocations: 1.204 MB / 0.9918 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004764/3.063, allocations: 122.1 kB / 0.992 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000469/3.064, allocations: 0.5138 MB / 0.9925 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of SimCode: time 1.082e-06/3.064, allocations: 1.719 kB / 0.9925 GB, free: 454.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08554/3.149, allocations: 72.29 MB / 1.063 GB, free: 405.8 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/3.149, allocations: 293.9 kB / 1.063 GB, free: 405.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.773/7.923, allocations: 0 / 1.063 GB, free: 405.4 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPressurizer_CC_fmu --startTime=0 --stopTime=3000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPressurizer_CC.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPressurizer_CC.pipe 2>&1)