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.7807/0.7807, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003108, allocations: 15.11 kB / 236.5 MB, free: 2.062 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05641/0.05674, allocations: 31.35 MB / 267.9 MB, free: 7.617 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.561/1.618, allocations: 294.7 MB / 0.5494 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03553/1.654, allocations: 34.76 MB / 0.5833 GB, free: 10.13 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002345/1.654, allocations: 4 kB / 0.5833 GB, free: 10.12 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.0004645/1.654, allocations: 159.2 kB / 0.5835 GB, free: 9.969 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/1.655, allocations: 155.1 kB / 0.5836 GB, free: 9.816 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.02265/1.677, allocations: 9.723 MB / 0.5931 GB, free: 80 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005897/1.678, allocations: 390.3 kB / 0.5935 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/1.678, allocations: 136.5 kB / 0.5936 GB, free: 15.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/1.678, allocations: 163.3 kB / 0.5938 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/1.679, allocations: 171.3 kB / 0.5939 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.968e-05/1.679, allocations: 16 kB / 0.5939 GB, free: 15.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02974/1.708, allocations: 17.97 MB / 0.6115 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/1.709, allocations: 75.7 kB / 0.6116 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001989/1.709, allocations: 159 kB / 0.6117 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0182/1.727, allocations: 8.527 MB / 0.62 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/1.727, allocations: 4 kB / 0.62 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.493e-06/1.727, allocations: 0 / 0.62 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.955e-06/1.727, allocations: 0 / 0.62 GB, free: 4.449 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.003936/1.731, allocations: 1.524 MB / 0.6215 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/1.731, allocations: 12.03 kB / 0.6215 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.446e-05/1.731, allocations: 66.53 kB / 0.6216 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.031e-05/1.731, allocations: 39.47 kB / 0.6216 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/1.731, allocations: 298 kB / 0.6219 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/1.731, allocations: 12.44 kB / 0.6219 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/1.731, allocations: 20 kB / 0.622 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004086/1.732, allocations: 323.4 kB / 0.6223 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/1.732, allocations: 0 / 0.6223 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/1.732, allocations: 11.98 kB / 0.6223 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/1.732, allocations: 19.92 kB / 0.6223 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/1.732, allocations: 201.1 kB / 0.6225 GB, free: 1.824 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.03485/1.767, allocations: 18.22 MB / 0.6403 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/1.767, allocations: 142.5 kB / 0.6404 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/1.767, allocations: 108.8 kB / 0.6405 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3188/2.086, allocations: 77.73 MB / 0.7164 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/2.086, allocations: 34.88 kB / 0.7165 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.934e-06/2.086, allocations: 0 / 0.7165 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001004/2.087, allocations: 0.4922 MB / 0.7169 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/2.087, allocations: 58.09 kB / 0.717 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/2.088, allocations: 352.5 kB / 0.7173 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/2.088, allocations: 28.89 kB / 0.7174 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.916e-05/2.088, allocations: 186.1 kB / 0.7175 GB, free: 211 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.853e-05/2.088, allocations: 115.9 kB / 0.7176 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/2.088, allocations: 51.97 kB / 0.7177 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.855e-05/2.088, allocations: 341 kB / 0.718 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/2.088, allocations: 92.33 kB / 0.7181 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/2.088, allocations: 135 kB / 0.7182 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/2.088, allocations: 249.3 kB / 0.7185 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/2.088, allocations: 0 / 0.7185 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003586/2.089, allocations: 347.5 kB / 0.7188 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/2.089, allocations: 9.125 kB / 0.7188 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/2.089, allocations: 7.844 kB / 0.7188 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007494/2.09, allocations: 134 kB / 0.719 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.423e-05/2.09, allocations: 14.66 kB / 0.719 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004008/2.09, allocations: 0.6106 MB / 0.7196 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/2.09, allocations: 31.38 kB / 0.7196 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/2.09, allocations: 5.5 kB / 0.7196 GB, free: 209.9 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.0001131/2.09, allocations: 164.4 kB / 0.7198 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/2.09, allocations: 36.56 kB / 0.7198 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006608/2.091, allocations: 0.657 MB / 0.7204 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003477/2.091, allocations: 257.1 kB / 0.7207 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/2.091, allocations: 2.75 kB / 0.7207 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/2.091, allocations: 0.6562 kB / 0.7207 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008324/2.092, allocations: 0.8328 MB / 0.7215 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/2.092, allocations: 0 / 0.7215 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.305e-05/2.092, allocations: 21.11 kB / 0.7215 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002929/2.093, allocations: 108.8 kB / 0.7216 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/2.093, allocations: 2.312 kB / 0.7216 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003322/2.093, allocations: 0.6358 MB / 0.7222 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/2.093, allocations: 0.5625 kB / 0.7222 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/2.093, allocations: 382.8 kB / 0.7226 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/2.094, allocations: 122.9 kB / 0.7227 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/2.094, allocations: 10.47 kB / 0.7227 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/2.094, allocations: 4.594 kB / 0.7227 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.446e-05/2.094, allocations: 9.766 kB / 0.7227 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/2.094, allocations: 9.594 kB / 0.7228 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002633/2.094, allocations: 332 kB / 0.7231 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/2.094, allocations: 0 / 0.7231 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002607/2.097, allocations: 1.211 MB / 0.7243 GB, free: 208.2 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.004671/2.101, allocations: 2.561 MB / 0.7268 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005891/2.102, allocations: 287.8 kB / 0.727 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/2.102, allocations: 256 / 0.727 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002388/2.102, allocations: 119.8 kB / 0.7271 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007002/2.103, allocations: 133.9 kB / 0.7273 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/2.107, allocations: 3.696 MB / 0.7309 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/2.107, allocations: 0.8054 MB / 0.7317 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001129/2.107, allocations: 35.98 kB / 0.7317 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/2.107, allocations: 126.6 kB / 0.7318 GB, free: 205 MB / 0.5919 GB Notification: Performance of SimCode: time 4.41e-07/2.107, allocations: 0 / 0.7318 GB, free: 205 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06694/2.174, allocations: 49.35 MB / 0.78 GB, free: 167.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/15.4, allocations: 7.188 kB / 0.78 GB, free: 167.3 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)