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.2.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo): time 0.4569/0.4569, allocations: 111.7 MB / 121.6 MB, free: 4.734 MB / 122.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07758/0.5345, allocations: 33.98 MB / 155.6 MB, free: 3.66 MB / 154.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.923e-06/1.923e-06, allocations: 0 / 156.9 MB, free: 2.383 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.217e-06/1.114e-05, allocations: 2.312 kB / 156.9 MB, free: 2.379 MB / 154.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestControlValve): time 0.9656/0.9656, allocations: 233.4 MB / 390.3 MB, free: 2.578 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02573/0.9914, allocations: 33.48 MB / 423.8 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.9914, allocations: 0 / 423.8 MB, free: 0.9648 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/BoundaryConditions/SourceP.mo:19:3-20:78:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/PressureLosses/ControlValve.mo:24:3-25:81:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/PressureLosses/ControlValve.mo:26:3-27:79:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.9917, allocations: 173.6 kB / 424 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.9919, allocations: 175 kB / 424.1 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.011/1.003, allocations: 8.728 MB / 432.9 MB, free: 7.863 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/1.003, allocations: 410 kB / 433.3 MB, free: 7.461 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/1.003, allocations: 119.7 kB / 433.4 MB, free: 7.348 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002369/1.004, allocations: 259.3 kB / 433.6 MB, free: 7.094 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/1.004, allocations: 139.6 kB / 433.8 MB, free: 6.957 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/1.004, allocations: 16 kB / 433.8 MB, free: 6.941 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:470:9-470:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:525:9-525:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:708:9-708:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh1satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh2satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du1satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du2satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.01705/1.021, allocations: 18.18 MB / 452 MB, free: 4.746 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 7.726e-05/1.021, allocations: 67.73 kB / 452 MB, free: 4.68 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.619e-05/1.021, allocations: 79.81 kB / 452.1 MB, free: 4.602 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007481/1.028, allocations: 8.265 MB / 460.4 MB, free: 12.32 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/1.028, allocations: 0 / 460.4 MB, free: 12.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.522e-06/1.028, allocations: 4 kB / 460.4 MB, free: 12.31 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/1.028, allocations: 0 / 460.4 MB, free: 12.31 MB / 458.7 MB 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.002367/1.031, allocations: 2.097 MB / 462.5 MB, free: 10.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/1.031, allocations: 8.625 kB / 462.5 MB, free: 10.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/1.031, allocations: 43.95 kB / 462.5 MB, free: 10.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/1.031, allocations: 204 kB / 462.7 MB, free: 9.883 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/1.031, allocations: 12.5 kB / 462.7 MB, free: 9.871 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/1.031, allocations: 20 kB / 462.8 MB, free: 9.852 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/1.031, allocations: 243.2 kB / 463 MB, free: 9.578 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/1.031, allocations: 3.938 kB / 463 MB, free: 9.574 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/1.031, allocations: 8 kB / 463 MB, free: 9.566 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/1.031, allocations: 11.98 kB / 463 MB, free: 9.555 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.094e-05/1.031, allocations: 85.36 kB / 463.1 MB, free: 9.473 MB / 458.7 MB 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.01327/1.045, allocations: 9.191 MB / 472.3 MB, free: 236 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.465e-05/1.045, allocations: 102.5 kB / 472.4 MB, free: 124 kB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.117e-05/1.045, allocations: 37.58 kB / 472.4 MB, free: 84 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05961/1.104, allocations: 39.06 MB / 0.4995 GB, free: 8.977 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/1.104, allocations: 42.5 kB / 0.4995 GB, free: 8.926 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=34): time 1.994e-06/1.104, allocations: 0 / 0.4995 GB, free: 8.926 MB / 0.4948 GB Notification: Performance of matching and sorting (n=34): time 0.0004804/1.105, allocations: 222.5 kB / 0.4998 GB, free: 8.699 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002485/1.105, allocations: 51.41 kB / 0.4998 GB, free: 8.637 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/1.105, allocations: 247 kB / 0.5 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/1.105, allocations: 29.7 kB / 0.5001 GB, free: 8.348 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.845e-05/1.105, allocations: 184.8 kB / 0.5002 GB, free: 8.164 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/1.105, allocations: 111 kB / 0.5003 GB, free: 8.055 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/1.105, allocations: 53.62 kB / 0.5004 GB, free: 7.996 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.206e-05/1.106, allocations: 346.7 kB / 0.5007 GB, free: 7.648 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/1.106, allocations: 30.77 kB / 0.5008 GB, free: 7.617 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.12e-05/1.106, allocations: 76.17 kB / 0.5008 GB, free: 7.527 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.789e-05/1.106, allocations: 130.7 kB / 0.501 GB, free: 7.383 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.106, allocations: 0 / 0.501 GB, free: 7.383 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0001643/1.106, allocations: 180.7 kB / 0.5011 GB, free: 7.195 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/1.106, allocations: 8 kB / 0.5011 GB, free: 7.188 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.106, allocations: 7.875 kB / 0.5011 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/1.106, allocations: 84.88 kB / 0.5012 GB, free: 7.098 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.393e-05/1.106, allocations: 19.92 kB / 0.5012 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002626/1.107, allocations: 0.5601 MB / 0.5018 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.559e-05/1.107, allocations: 19.84 kB / 0.5018 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/1.107, allocations: 4 kB / 0.5018 GB, free: 6.469 MB / 0.4948 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 (SourceP1.C.b,PuitsP1.C.a,ControlValve.C1.a,ControlValve.C2.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 7.264e-05/1.107, allocations: 128.5 kB / 0.5019 GB, free: 6.332 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/1.107, allocations: 11.98 kB / 0.5019 GB, free: 6.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003939/1.107, allocations: 0.519 MB / 0.5025 GB, free: 5.727 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001309/1.107, allocations: 152.2 kB / 0.5026 GB, free: 5.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/1.107, allocations: 4 kB / 0.5026 GB, free: 5.566 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/1.107, allocations: 3.984 kB / 0.5026 GB, free: 5.562 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004545/1.108, allocations: 0.5289 MB / 0.5031 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.108, allocations: 0 / 0.5031 GB, free: 5.004 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.423e-05/1.108, allocations: 16 kB / 0.5031 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.413e-05/1.108, allocations: 35.73 kB / 0.5032 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001317/1.108, allocations: 71.55 kB / 0.5032 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/1.108, allocations: 0 / 0.5032 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002456/1.108, allocations: 0.5891 MB / 0.5038 GB, free: 4.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/1.108, allocations: 3.938 kB / 0.5038 GB, free: 4.258 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/1.108, allocations: 313.4 kB / 0.5041 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/1.108, allocations: 11.89 kB / 0.5041 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.977e-05/1.108, allocations: 4 kB / 0.5041 GB, free: 3.914 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.433e-05/1.108, allocations: 15.91 kB / 0.5041 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/1.108, allocations: 4 kB / 0.5042 GB, free: 3.895 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 8.728e-05/1.108, allocations: 128.7 kB / 0.5043 GB, free: 3.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/1.108, allocations: 4.031 kB / 0.5043 GB, free: 3.766 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001891/1.11, allocations: 1.227 MB / 0.5055 GB, free: 2.535 MB / 0.4948 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.003072/1.113, allocations: 2.082 MB / 0.5075 GB, free: 464 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002635/1.114, allocations: 163.9 kB / 0.5077 GB, free: 292 kB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/1.114, allocations: 11.98 kB / 0.5077 GB, free: 280 kB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/1.114, allocations: 107.6 kB / 0.5078 GB, free: 168 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.136/1.25, allocations: 0.6794 MB / 0.5084 GB, free: 78.68 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/1.253, allocations: 0.6134 MB / 0.509 GB, free: 78.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.517e-05/1.253, allocations: 103.7 kB / 0.5091 GB, free: 78.31 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 6.815e-05/1.253, allocations: 23.55 kB / 0.5092 GB, free: 78.31 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/1.253, allocations: 112.7 kB / 0.5093 GB, free: 78.26 MB / 0.4948 GB Notification: Performance of SimCode: time 7.62e-07/1.253, allocations: 0 / 0.5093 GB, free: 78.26 MB / 0.4948 GB Notification: Performance of Templates: time 0.03169/1.285, allocations: 44.4 MB / 0.5526 GB, free: 59.52 MB / 0.4948 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0615/1.347, allocations: 53.74 MB / 0.6051 GB, free: 19.33 MB / 0.4948 GB " [Timeout remaining time 659] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile [Timeout 660] (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.002006248570979]