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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8076/0.8076, allocations: 152.6 MB / 169.6 MB, free: 14.91 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.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 0.0004823/0.0004823, allocations: 21.78 kB / 245.6 MB, free: 15.75 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05537/0.05585, allocations: 33.06 MB / 278.7 MB, free: 0.7188 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.577/1.633, allocations: 301.2 MB / 0.5663 GB, free: 2.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04114/1.674, allocations: 34.9 MB / 0.6004 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/1.674, allocations: 4 kB / 0.6004 GB, free: 15.47 MB / 494.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.000481/1.675, allocations: 194.8 kB / 0.6006 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002637/1.675, allocations: 167.1 kB / 0.6007 GB, free: 15.12 MB / 494.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.02254/1.698, allocations: 9.891 MB / 0.6104 GB, free: 5.219 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005914/1.698, allocations: 390.3 kB / 0.6108 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/1.698, allocations: 108.6 kB / 0.6109 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002303/1.699, allocations: 167.3 kB / 0.611 GB, free: 4.566 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/1.699, allocations: 183.3 kB / 0.6112 GB, free: 4.387 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/1.699, allocations: 16 kB / 0.6112 GB, free: 4.371 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02995/1.729, allocations: 17.97 MB / 0.6288 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001429/1.729, allocations: 79.64 kB / 0.6288 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002161/1.729, allocations: 163.1 kB / 0.629 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01719/1.746, allocations: 8.54 MB / 0.6373 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.746, allocations: 0 / 0.6373 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.433e-06/1.746, allocations: 0 / 0.6373 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.337e-05/1.746, allocations: 0 / 0.6373 GB, free: 9.574 MB / 0.5137 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.003958/1.75, allocations: 1.591 MB / 0.6389 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/1.75, allocations: 8.031 kB / 0.6389 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/1.75, allocations: 43.66 kB / 0.6389 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/1.751, allocations: 290.3 kB / 0.6392 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/1.751, allocations: 16.42 kB / 0.6392 GB, free: 7.535 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.151e-05/1.751, allocations: 20 kB / 0.6393 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/1.751, allocations: 323.4 kB / 0.6396 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/1.751, allocations: 0 / 0.6396 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/1.751, allocations: 8 kB / 0.6396 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/1.751, allocations: 15.98 kB / 0.6396 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002981/1.752, allocations: 209 kB / 0.6398 GB, free: 6.941 MB / 0.5137 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.03836/1.79, allocations: 18.23 MB / 0.6576 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/1.79, allocations: 126.5 kB / 0.6577 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/1.79, allocations: 88.77 kB / 0.6578 GB, free: 2.605 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3165/2.107, allocations: 77.72 MB / 0.7337 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/2.107, allocations: 33.22 kB / 0.7337 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/2.107, allocations: 0 / 0.7337 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009411/2.108, allocations: 497.7 kB / 0.7342 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.828e-05/2.108, allocations: 59.28 kB / 0.7343 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/2.108, allocations: 364.2 kB / 0.7346 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/2.108, allocations: 25.7 kB / 0.7346 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.296e-05/2.108, allocations: 182.5 kB / 0.7348 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.987e-05/2.108, allocations: 120.4 kB / 0.7349 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/2.108, allocations: 54.48 kB / 0.735 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.861e-05/2.108, allocations: 346.2 kB / 0.7353 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.66e-05/2.109, allocations: 94.25 kB / 0.7354 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/2.109, allocations: 129.8 kB / 0.7355 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/2.109, allocations: 250.4 kB / 0.7358 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/2.109, allocations: 2.812 kB / 0.7358 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003522/2.109, allocations: 332.2 kB / 0.7361 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/2.109, allocations: 4.875 kB / 0.7361 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/2.109, allocations: 7.5 kB / 0.7361 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007109/2.11, allocations: 143.4 kB / 0.7362 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.015e-05/2.11, allocations: 14.03 kB / 0.7362 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003662/2.11, allocations: 0.6114 MB / 0.7368 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/2.11, allocations: 27.22 kB / 0.7369 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/2.11, allocations: 9.672 kB / 0.7369 GB, free: 207.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.0001071/2.111, allocations: 161.3 kB / 0.737 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.345e-05/2.111, allocations: 36.64 kB / 0.7371 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005926/2.111, allocations: 0.6388 MB / 0.7377 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003468/2.112, allocations: 247.7 kB / 0.7379 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/2.112, allocations: 0 / 0.7379 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/2.112, allocations: 0 / 0.7379 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008125/2.112, allocations: 0.8165 MB / 0.7387 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/2.112, allocations: 0 / 0.7387 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.251e-05/2.112, allocations: 25.08 kB / 0.7387 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/2.113, allocations: 105.5 kB / 0.7388 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/2.113, allocations: 9.875 kB / 0.7389 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003385/2.113, allocations: 0.6378 MB / 0.7395 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/2.113, allocations: 0 / 0.7395 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/2.114, allocations: 389.4 kB / 0.7398 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/2.114, allocations: 117.5 kB / 0.74 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.862e-05/2.114, allocations: 11.98 kB / 0.74 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/2.114, allocations: 5.531 kB / 0.74 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/2.114, allocations: 8.703 kB / 0.74 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/2.114, allocations: 2.75 kB / 0.74 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002669/2.114, allocations: 337.3 kB / 0.7403 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.114, allocations: 0.9844 kB / 0.7403 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002553/2.117, allocations: 1.224 MB / 0.7415 GB, free: 205.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.004699/2.121, allocations: 1.767 MB / 0.7432 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005805/2.122, allocations: 262.7 kB / 0.7435 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/2.122, allocations: 3.781 kB / 0.7435 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002359/2.122, allocations: 103.9 kB / 0.7436 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006914/2.123, allocations: 129.5 kB / 0.7437 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/2.124, allocations: 0.7092 MB / 0.7444 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/2.124, allocations: 0.8037 MB / 0.7452 GB, free: 204 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.988e-05/2.124, allocations: 26.47 kB / 0.7452 GB, free: 204 MB / 0.5919 GB Notification: Performance of SimCode: time 2.81e-07/2.124, allocations: 0 / 0.7452 GB, free: 204 MB / 0.5919 GB Notification: Performance of Templates: time 0.02667/2.151, allocations: 26.1 MB / 0.7707 GB, free: 181.4 MB / 0.5919 GB " [Timeout remaining time 658] 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=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.499648169847205] Failed to read output from testmodel.py, exit status != 0: 2.2596940740477294 2.267552495 0.519238892 Calling exit ...