Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",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.8254/0.8254, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003445/0.0003445, allocations: 14.88 kB / 236.5 MB, free: 2.062 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06/0.06036, allocations: 31.34 MB / 267.9 MB, free: 7.613 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.71/1.771, allocations: 294.7 MB / 0.5494 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03865/1.81, allocations: 34.76 MB / 0.5834 GB, free: 10.08 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002548/1.81, allocations: 4 kB / 0.5834 GB, free: 10.07 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0006028/1.81, allocations: 187.2 kB / 0.5835 GB, free: 9.891 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/1.811, allocations: 167.1 kB / 0.5837 GB, free: 9.727 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02651/1.837, allocations: 9.92 MB / 0.5934 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000597/1.838, allocations: 382.3 kB / 0.5938 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002628/1.838, allocations: 128.6 kB / 0.5939 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/1.839, allocations: 171.3 kB / 0.594 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/1.839, allocations: 175.3 kB / 0.5942 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.523e-05/1.839, allocations: 20 kB / 0.5942 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03026/1.869, allocations: 17.96 MB / 0.6118 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/1.869, allocations: 71.77 kB / 0.6118 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002144/1.87, allocations: 159 kB / 0.612 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01824/1.888, allocations: 8.54 MB / 0.6203 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/1.888, allocations: 0 / 0.6203 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.364e-06/1.888, allocations: 0 / 0.6203 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.315e-05/1.888, allocations: 7.984 kB / 0.6203 GB, free: 4.164 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003824/1.892, allocations: 1.583 MB / 0.6219 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/1.892, allocations: 8.031 kB / 0.6219 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.062e-05/1.892, allocations: 66.53 kB / 0.622 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.378e-05/1.892, allocations: 43.66 kB / 0.622 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/1.892, allocations: 294.2 kB / 0.6223 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/1.892, allocations: 16.44 kB / 0.6223 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/1.892, allocations: 20 kB / 0.6223 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004314/1.893, allocations: 319.4 kB / 0.6226 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.893, allocations: 0 / 0.6226 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/1.893, allocations: 12 kB / 0.6226 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/1.893, allocations: 19.92 kB / 0.6226 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002674/1.893, allocations: 197.1 kB / 0.6228 GB, free: 1.48 MB / 0.4981 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.03614/1.929, allocations: 18.23 MB / 0.6406 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/1.929, allocations: 146.5 kB / 0.6408 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/1.93, allocations: 104.8 kB / 0.6409 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3402/2.27, allocations: 77.74 MB / 0.7168 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/2.27, allocations: 35.81 kB / 0.7168 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.354e-06/2.27, allocations: 0 / 0.7168 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001093/2.271, allocations: 0.494 MB / 0.7173 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/2.271, allocations: 58.56 kB / 0.7174 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003312/2.271, allocations: 352.1 kB / 0.7177 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/2.271, allocations: 29.03 kB / 0.7177 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/2.272, allocations: 190.5 kB / 0.7179 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 6.02e-05/2.272, allocations: 115.2 kB / 0.718 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/2.272, allocations: 55.41 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.47e-05/2.272, allocations: 342.4 kB / 0.7184 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/2.272, allocations: 93.88 kB / 0.7185 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/2.272, allocations: 134.8 kB / 0.7186 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/2.272, allocations: 250.9 kB / 0.7189 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/2.272, allocations: 0 / 0.7189 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004416/2.273, allocations: 347.4 kB / 0.7192 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/2.273, allocations: 9.531 kB / 0.7192 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/2.273, allocations: 4.125 kB / 0.7192 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008092/2.274, allocations: 135 kB / 0.7193 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.381e-05/2.274, allocations: 15.05 kB / 0.7193 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004514/2.274, allocations: 0.6167 MB / 0.7199 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/2.274, allocations: 25.2 kB / 0.72 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/2.274, allocations: 9.719 kB / 0.72 GB, free: 210.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001328/2.274, allocations: 161.8 kB / 0.7201 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/2.274, allocations: 38.73 kB / 0.7202 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007/2.275, allocations: 0.6515 MB / 0.7208 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003639/2.276, allocations: 263.3 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/2.276, allocations: 1.906 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/2.276, allocations: 1.406 kB / 0.7211 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008764/2.276, allocations: 0.8288 MB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/2.276, allocations: 0 / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.221e-05/2.277, allocations: 23.89 kB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003263/2.277, allocations: 100.1 kB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/2.277, allocations: 10.14 kB / 0.722 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003602/2.277, allocations: 0.6338 MB / 0.7226 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/2.277, allocations: 0 / 0.7226 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004423/2.278, allocations: 389.1 kB / 0.723 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.861e-05/2.278, allocations: 130.8 kB / 0.7231 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.756e-05/2.278, allocations: 13.5 kB / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/2.278, allocations: 0 / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/2.278, allocations: 9.109 kB / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/2.278, allocations: 6.469 kB / 0.7231 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003273/2.278, allocations: 332.6 kB / 0.7235 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.278, allocations: 0 / 0.7235 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002888/2.281, allocations: 1.224 MB / 0.7247 GB, free: 208.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004992/2.286, allocations: 2.579 MB / 0.7272 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006009/2.287, allocations: 291.5 kB / 0.7275 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/2.287, allocations: 256 / 0.7275 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002608/2.287, allocations: 118.8 kB / 0.7276 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007493/2.288, allocations: 133.8 kB / 0.7277 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004167/2.292, allocations: 3.721 MB / 0.7313 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002017/2.292, allocations: 0.8047 MB / 0.7321 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001164/2.292, allocations: 34.06 kB / 0.7321 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/2.293, allocations: 127.2 kB / 0.7323 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of SimCode: time 6.22e-07/2.293, allocations: 0 / 0.7323 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06672/2.359, allocations: 49.21 MB / 0.7803 GB, free: 167 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/15.69, allocations: 9.25 kB / 0.7803 GB, free: 167 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)