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.8024/0.8024, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.000361, allocations: 17.48 kB / 236.5 MB, free: 2.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05757/0.05795, allocations: 31.35 MB / 267.9 MB, free: 7.734 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.652/1.71, allocations: 294.7 MB / 0.5493 GB, free: 13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04832/1.758, allocations: 34.76 MB / 0.5833 GB, free: 10.1 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002815/1.758, allocations: 7.938 kB / 0.5833 GB, free: 10.09 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.000662/1.759, allocations: 161.9 kB / 0.5835 GB, free: 9.934 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004304/1.759, allocations: 155.1 kB / 0.5836 GB, free: 9.781 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.02975/1.789, allocations: 9.73 MB / 0.5931 GB, free: 40 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007436/1.79, allocations: 394.3 kB / 0.5935 GB, free: 15.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/1.79, allocations: 124.6 kB / 0.5936 GB, free: 15.54 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/1.791, allocations: 171.3 kB / 0.5938 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/1.791, allocations: 163.4 kB / 0.5939 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/1.791, allocations: 16 kB / 0.5939 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03568/1.827, allocations: 17.97 MB / 0.6115 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001682/1.827, allocations: 75.75 kB / 0.6116 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002799/1.827, allocations: 159 kB / 0.6117 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02034/1.848, allocations: 8.531 MB / 0.62 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/1.848, allocations: 0 / 0.62 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/1.848, allocations: 0 / 0.62 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.496e-05/1.848, allocations: 3.938 kB / 0.62 GB, free: 4.418 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.004378/1.852, allocations: 1.524 MB / 0.6215 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/1.852, allocations: 12.03 kB / 0.6215 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.71e-05/1.852, allocations: 62.53 kB / 0.6216 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/1.852, allocations: 39.47 kB / 0.6216 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/1.853, allocations: 302 kB / 0.6219 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/1.853, allocations: 12.44 kB / 0.6219 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/1.853, allocations: 20 kB / 0.622 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005656/1.853, allocations: 323.4 kB / 0.6223 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/1.853, allocations: 3.984 kB / 0.6223 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/1.854, allocations: 8 kB / 0.6223 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.083e-05/1.854, allocations: 15.94 kB / 0.6223 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003943/1.854, allocations: 209 kB / 0.6225 GB, free: 1.789 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.0427/1.897, allocations: 18.22 MB / 0.6403 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/1.897, allocations: 138.5 kB / 0.6404 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/1.897, allocations: 104.8 kB / 0.6405 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3646/2.262, allocations: 77.73 MB / 0.7164 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.857e-05/2.262, allocations: 41.31 kB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.956e-06/2.262, allocations: 1.281 kB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001215/2.263, allocations: 497.7 kB / 0.7169 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/2.263, allocations: 60.66 kB / 0.717 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/2.264, allocations: 355.6 kB / 0.7173 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/2.264, allocations: 29.02 kB / 0.7174 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/2.264, allocations: 182.6 kB / 0.7175 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.305e-05/2.264, allocations: 112.5 kB / 0.7176 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/2.264, allocations: 46 kB / 0.7177 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.006e-05/2.264, allocations: 346.9 kB / 0.718 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/2.264, allocations: 98.33 kB / 0.7181 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/2.264, allocations: 134.4 kB / 0.7182 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002809/2.265, allocations: 240.4 kB / 0.7185 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/2.265, allocations: 6.844 kB / 0.7185 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004771/2.265, allocations: 343.8 kB / 0.7188 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/2.265, allocations: 9.625 kB / 0.7188 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/2.265, allocations: 6.719 kB / 0.7188 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008542/2.266, allocations: 141.8 kB / 0.719 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.491e-05/2.266, allocations: 8.219 kB / 0.719 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004111/2.266, allocations: 0.6168 MB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/2.267, allocations: 23.09 kB / 0.7196 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/2.267, allocations: 8.5 kB / 0.7196 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.0001275/2.267, allocations: 162.4 kB / 0.7198 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.711e-05/2.267, allocations: 31.81 kB / 0.7198 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000726/2.268, allocations: 0.6606 MB / 0.7204 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003738/2.268, allocations: 259.8 kB / 0.7207 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/2.268, allocations: 1.25 kB / 0.7207 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/2.268, allocations: 0 / 0.7207 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/2.269, allocations: 0.8324 MB / 0.7215 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/2.269, allocations: 3.094 kB / 0.7215 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.534e-05/2.269, allocations: 16.89 kB / 0.7215 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004095/2.27, allocations: 102.9 kB / 0.7216 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/2.27, allocations: 4.703 kB / 0.7216 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004138/2.27, allocations: 0.6355 MB / 0.7222 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/2.27, allocations: 0.625 kB / 0.7222 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004904/2.27, allocations: 388.2 kB / 0.7226 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/2.271, allocations: 125.2 kB / 0.7227 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/2.271, allocations: 6.5 kB / 0.7227 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/2.271, allocations: 10.5 kB / 0.7227 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/2.271, allocations: 9.609 kB / 0.7227 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/2.271, allocations: 4.875 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002871/2.271, allocations: 333.9 kB / 0.7231 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.5e-07/2.271, allocations: 2.75 kB / 0.7231 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00317/2.274, allocations: 1.204 MB / 0.7242 GB, free: 208.4 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.006083/2.28, allocations: 2.564 MB / 0.7268 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007362/2.281, allocations: 293.7 kB / 0.727 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/2.281, allocations: 0 / 0.727 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000261/2.281, allocations: 112.3 kB / 0.7271 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/2.282, allocations: 129.9 kB / 0.7273 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004863/2.287, allocations: 3.708 MB / 0.7309 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/2.288, allocations: 0.8049 MB / 0.7317 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001635/2.288, allocations: 35.88 kB / 0.7317 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/2.288, allocations: 127.6 kB / 0.7318 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of SimCode: time 7.01e-07/2.288, allocations: 0 / 0.7318 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.592/2.88, allocations: 49.34 MB / 0.78 GB, free: 167.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/17.85, allocations: 9.375 kB / 0.78 GB, free: 167.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)