Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8105/0.8105, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003397, allocations: 17.08 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05921/0.05957, allocations: 31.35 MB / 267.9 MB, free: 7.531 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.SimpleExamples.TestControlValve): time 1.646/1.706, allocations: 294.8 MB / 0.5495 GB, free: 12.94 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0403/1.746, allocations: 34.76 MB / 0.5835 GB, free: 10.04 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/1.747, allocations: 0 / 0.5835 GB, free: 10.04 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.0005572/1.747, allocations: 163.2 kB / 0.5836 GB, free: 9.883 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003774/1.748, allocations: 159 kB / 0.5838 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.0271/1.775, allocations: 9.727 MB / 0.5933 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008444/1.776, allocations: 390.3 kB / 0.5936 GB, free: 15.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002522/1.776, allocations: 136.6 kB / 0.5938 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/1.776, allocations: 167.3 kB / 0.5939 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002053/1.776, allocations: 163.4 kB / 0.5941 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/1.776, allocations: 23.94 kB / 0.5941 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03049/1.807, allocations: 17.96 MB / 0.6116 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/1.807, allocations: 71.77 kB / 0.6117 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002107/1.807, allocations: 163 kB / 0.6119 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.018/1.825, allocations: 8.523 MB / 0.6202 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/1.825, allocations: 4 kB / 0.6202 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/1.825, allocations: 4 kB / 0.6202 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.652e-05/1.825, allocations: 0 / 0.6202 GB, free: 4.355 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.004155/1.83, allocations: 1.52 MB / 0.6217 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/1.83, allocations: 12.02 kB / 0.6217 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.944e-05/1.83, allocations: 62.55 kB / 0.6218 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.676e-05/1.83, allocations: 39.47 kB / 0.6218 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/1.83, allocations: 298 kB / 0.6221 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.119e-05/1.83, allocations: 16.44 kB / 0.6221 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/1.83, allocations: 24 kB / 0.6221 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/1.831, allocations: 315.4 kB / 0.6224 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/1.831, allocations: 0 / 0.6224 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/1.831, allocations: 12 kB / 0.6224 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/1.831, allocations: 19.92 kB / 0.6224 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002882/1.831, allocations: 213 kB / 0.6227 GB, free: 1.727 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.03648/1.867, allocations: 18.21 MB / 0.6404 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/1.868, allocations: 142.5 kB / 0.6406 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/1.868, allocations: 108.8 kB / 0.6407 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.339/2.207, allocations: 77.74 MB / 0.7166 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/2.207, allocations: 30.56 kB / 0.7166 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.492e-06/2.207, allocations: 4 kB / 0.7166 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001053/2.208, allocations: 0.4923 MB / 0.7171 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/2.208, allocations: 61.25 kB / 0.7172 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003136/2.208, allocations: 351 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/2.208, allocations: 32.52 kB / 0.7175 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.354e-05/2.209, allocations: 183 kB / 0.7177 GB, free: 211 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/2.209, allocations: 110.4 kB / 0.7178 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/2.209, allocations: 47.42 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.627e-05/2.209, allocations: 349.1 kB / 0.7182 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/2.209, allocations: 90.09 kB / 0.7183 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/2.209, allocations: 137.6 kB / 0.7184 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/2.209, allocations: 247.1 kB / 0.7186 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/2.209, allocations: 0 / 0.7186 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003723/2.21, allocations: 352.2 kB / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/2.21, allocations: 5.344 kB / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/2.21, allocations: 6.125 kB / 0.719 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000782/2.21, allocations: 139.8 kB / 0.7191 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.635e-05/2.21, allocations: 13.62 kB / 0.7191 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003987/2.211, allocations: 0.6083 MB / 0.7197 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/2.211, allocations: 27.22 kB / 0.7198 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/2.211, allocations: 8.797 kB / 0.7198 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.000116/2.211, allocations: 157.7 kB / 0.7199 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/2.211, allocations: 33.88 kB / 0.7199 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006818/2.212, allocations: 0.6491 MB / 0.7206 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003507/2.212, allocations: 261.2 kB / 0.7208 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/2.212, allocations: 6.844 kB / 0.7208 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/2.212, allocations: 0 / 0.7208 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008451/2.213, allocations: 0.8283 MB / 0.7216 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/2.213, allocations: 1.312 kB / 0.7216 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.092e-05/2.213, allocations: 19.14 kB / 0.7217 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000303/2.213, allocations: 105.1 kB / 0.7218 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/2.214, allocations: 1.938 kB / 0.7218 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003457/2.214, allocations: 0.6357 MB / 0.7224 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/2.214, allocations: 1.188 kB / 0.7224 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004269/2.214, allocations: 386 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.171e-05/2.214, allocations: 125.4 kB / 0.7229 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/2.214, allocations: 15.11 kB / 0.7229 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/2.215, allocations: 2.531 kB / 0.7229 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/2.215, allocations: 9.828 kB / 0.7229 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/2.215, allocations: 7.328 kB / 0.7229 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002769/2.215, allocations: 336 kB / 0.7232 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.215, allocations: 0 / 0.7232 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002748/2.218, allocations: 1.209 MB / 0.7244 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.004781/2.222, allocations: 2.569 MB / 0.7269 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005482/2.223, allocations: 290.8 kB / 0.7272 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/2.223, allocations: 0 / 0.7272 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002513/2.223, allocations: 120.2 kB / 0.7273 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/2.224, allocations: 132.8 kB / 0.7274 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004077/2.228, allocations: 3.703 MB / 0.7311 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/2.228, allocations: 0.803 MB / 0.7318 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001092/2.228, allocations: 34.55 kB / 0.7319 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/2.229, allocations: 128.8 kB / 0.732 GB, free: 205 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/2.229, allocations: 4 kB / 0.732 GB, free: 205 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07034/2.299, allocations: 49.31 MB / 0.7801 GB, free: 167.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/15.57, allocations: 7.781 kB / 0.7802 GB, free: 167.2 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)