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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.9005/0.9005, allocations: 153.8 MB / 173.4 MB, free: 4.871 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005513/0.0005513, allocations: 11.98 kB / 251 MB, free: 3.934 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1907, allocations: 33.36 MB / 284.3 MB, free: 2.078 MB / 222.1 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 2.004/2.194, allocations: 307.5 MB / 0.578 GB, free: 17.31 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03321/2.227, allocations: 30.82 MB / 0.6081 GB, free: 2.641 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/2.228, allocations: 3.5 kB / 0.6081 GB, free: 2.641 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0005222/2.228, allocations: 153.7 kB / 0.6082 GB, free: 2.594 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/2.229, allocations: 172.3 kB / 0.6084 GB, free: 2.504 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.02785/2.257, allocations: 9.842 MB / 0.618 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000783/2.257, allocations: 398.2 kB / 0.6184 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/2.258, allocations: 112.8 kB / 0.6185 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003368/2.258, allocations: 183.3 kB / 0.6187 GB, free: 11.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002318/2.258, allocations: 159.3 kB / 0.6188 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.681e-05/2.258, allocations: 20 kB / 0.6188 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04034/2.298, allocations: 16.83 MB / 0.6353 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002727/2.299, allocations: 75.7 kB / 0.6354 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000292/2.299, allocations: 135.3 kB / 0.6355 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02551/2.325, allocations: 8.544 MB / 0.6438 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/2.325, allocations: 8 kB / 0.6438 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.044e-06/2.325, allocations: 3.938 kB / 0.6438 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.598e-06/2.325, allocations: 0 / 0.6438 GB, free: 1.984 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.005799/2.33, allocations: 1.501 MB / 0.6453 GB, free: 456 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/2.33, allocations: 8.031 kB / 0.6453 GB, free: 448 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.543e-05/2.33, allocations: 43.72 kB / 0.6454 GB, free: 404 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/2.331, allocations: 228.9 kB / 0.6456 GB, free: 152 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/2.331, allocations: 24.31 kB / 0.6456 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/2.331, allocations: 20 kB / 0.6456 GB, free: 108 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000566/2.332, allocations: 323.4 kB / 0.6459 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/2.332, allocations: 3.938 kB / 0.6459 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/2.332, allocations: 12 kB / 0.6459 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/2.332, allocations: 18.89 kB / 0.646 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003358/2.332, allocations: 202 kB / 0.6461 GB, free: 15.54 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.03764/2.37, allocations: 10.87 MB / 0.6568 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/2.37, allocations: 126.5 kB / 0.6569 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/2.37, allocations: 93.67 kB / 0.657 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1561/2.526, allocations: 43.59 MB / 0.6995 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.886e-05/2.526, allocations: 32.44 kB / 0.6996 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.565e-06/2.526, allocations: 8 kB / 0.6996 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001195/2.527, allocations: 420.3 kB / 0.7 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/2.527, allocations: 55.41 kB / 0.7 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003921/2.528, allocations: 313.1 kB / 0.7003 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/2.528, allocations: 29.7 kB / 0.7004 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/2.528, allocations: 200.5 kB / 0.7005 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.786e-05/2.528, allocations: 111 kB / 0.7007 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/2.528, allocations: 49.69 kB / 0.7007 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001799/2.528, allocations: 338.8 kB / 0.701 GB, free: 7.172 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/2.528, allocations: 95.97 kB / 0.7011 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/2.529, allocations: 140.2 kB / 0.7012 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003412/2.529, allocations: 248.8 kB / 0.7015 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/2.529, allocations: 0 / 0.7015 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005463/2.53, allocations: 349.5 kB / 0.7018 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/2.53, allocations: 4.75 kB / 0.7018 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/2.53, allocations: 1.203 kB / 0.7018 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008442/2.53, allocations: 141.6 kB / 0.702 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.017e-05/2.53, allocations: 23.92 kB / 0.702 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006249/2.531, allocations: 0.6017 MB / 0.7026 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/2.531, allocations: 28.52 kB / 0.7026 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/2.531, allocations: 4 kB / 0.7026 GB, free: 5.492 MB / 0.5606 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.000184/2.531, allocations: 166.4 kB / 0.7028 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.766e-05/2.531, allocations: 27.81 kB / 0.7028 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009318/2.532, allocations: 0.6329 MB / 0.7034 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00046/2.533, allocations: 267.7 kB / 0.7037 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/2.533, allocations: 0 / 0.7037 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/2.533, allocations: 3.984 kB / 0.7037 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/2.534, allocations: 0.7148 MB / 0.7044 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/2.534, allocations: 2.094 kB / 0.7044 GB, free: 3.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.891e-05/2.534, allocations: 16 kB / 0.7044 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/2.534, allocations: 100.8 kB / 0.7045 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/2.534, allocations: 7.938 kB / 0.7045 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005958/2.535, allocations: 0.6498 MB / 0.7051 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/2.535, allocations: 2.031 kB / 0.7051 GB, free: 2.754 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005607/2.536, allocations: 385.7 kB / 0.7055 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.721e-05/2.536, allocations: 43.67 kB / 0.7055 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.462e-05/2.536, allocations: 11.95 kB / 0.7055 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/2.536, allocations: 6.141 kB / 0.7055 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/2.536, allocations: 12.92 kB / 0.7056 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/2.536, allocations: 4 kB / 0.7056 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003509/2.536, allocations: 307.2 kB / 0.7059 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/2.536, allocations: 0 / 0.7059 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003441/2.54, allocations: 1.228 MB / 0.7071 GB, free: 0.7539 MB / 0.5606 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.005336/2.545, allocations: 1.763 MB / 0.7088 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007729/2.546, allocations: 263.4 kB / 0.709 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/2.546, allocations: 0 / 0.709 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003057/2.546, allocations: 105.2 kB / 0.7091 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007638/2.547, allocations: 115.3 kB / 0.7092 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/2.548, allocations: 0.6993 MB / 0.7099 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/2.549, allocations: 202.3 kB / 0.7101 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/2.549, allocations: 23.44 kB / 0.7101 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.549, allocations: 0 / 0.7101 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of Templates: time 0.04261/2.591, allocations: 26.06 MB / 0.7356 GB, free: 3.941 MB / 0.5919 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 11.692799168173224] Failed to read output from testmodel.py, exit status != 0: 2.7849010499194264 3.056983274 0.471596386 Calling exit ...