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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7832/0.7832, 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.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.0004556/0.0004556, allocations: 12.62 kB / 245.6 MB, free: 15.61 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05277/0.05323, allocations: 33.06 MB / 278.6 MB, free: 0.6484 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.533/1.586, allocations: 301.1 MB / 0.5661 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04096/1.627, allocations: 34.9 MB / 0.6002 GB, free: 15.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/1.627, allocations: 4 kB / 0.6002 GB, free: 15.53 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.628, allocations: 187.2 kB / 0.6004 GB, free: 15.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003145/1.628, allocations: 175 kB / 0.6006 GB, free: 15.18 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.0227/1.651, allocations: 9.878 MB / 0.6102 GB, free: 5.281 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/1.651, allocations: 394.3 kB / 0.6106 GB, free: 4.895 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/1.651, allocations: 112.6 kB / 0.6107 GB, free: 4.785 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002293/1.652, allocations: 171.3 kB / 0.6109 GB, free: 4.617 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002177/1.652, allocations: 179.3 kB / 0.611 GB, free: 4.441 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/1.652, allocations: 16 kB / 0.6111 GB, free: 4.426 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02993/1.682, allocations: 17.97 MB / 0.6286 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001242/1.682, allocations: 75.7 kB / 0.6287 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002199/1.682, allocations: 159.1 kB / 0.6288 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01433/1.696, allocations: 8.544 MB / 0.6372 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/1.696, allocations: 0 / 0.6372 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.273e-06/1.696, allocations: 4 kB / 0.6372 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.207e-06/1.696, allocations: 0 / 0.6372 GB, free: 9.629 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.004053/1.7, allocations: 1.591 MB / 0.6387 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/1.7, allocations: 8.031 kB / 0.6387 GB, free: 7.973 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.114e-05/1.701, allocations: 47.66 kB / 0.6388 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00034/1.701, allocations: 282.3 kB / 0.6391 GB, free: 7.609 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/1.701, allocations: 16.44 kB / 0.6391 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/1.701, allocations: 20 kB / 0.6391 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/1.701, allocations: 323.4 kB / 0.6394 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/1.701, allocations: 0 / 0.6394 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/1.701, allocations: 12 kB / 0.6394 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/1.701, allocations: 11.98 kB / 0.6394 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/1.702, allocations: 209 kB / 0.6396 GB, free: 7 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.03819/1.74, allocations: 18.24 MB / 0.6574 GB, free: 2.879 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/1.74, allocations: 122.5 kB / 0.6575 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/1.74, allocations: 88.83 kB / 0.6576 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3106/2.051, allocations: 77.73 MB / 0.7335 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/2.051, allocations: 33.44 kB / 0.7336 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.993e-06/2.051, allocations: 0 / 0.7336 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0009494/2.052, allocations: 495.9 kB / 0.734 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/2.052, allocations: 61.84 kB / 0.7341 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/2.052, allocations: 356 kB / 0.7344 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/2.052, allocations: 29.08 kB / 0.7345 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.428e-05/2.052, allocations: 184.6 kB / 0.7346 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/2.052, allocations: 122.9 kB / 0.7348 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/2.052, allocations: 49.14 kB / 0.7348 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.566e-05/2.052, allocations: 344.4 kB / 0.7351 GB, free: 208 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/2.053, allocations: 95.59 kB / 0.7352 GB, free: 208 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/2.053, allocations: 135.1 kB / 0.7354 GB, free: 208 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002234/2.053, allocations: 248.6 kB / 0.7356 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/2.053, allocations: 6.594 kB / 0.7356 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003796/2.053, allocations: 327.2 kB / 0.7359 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/2.053, allocations: 8.531 kB / 0.7359 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/2.053, allocations: 8.297 kB / 0.7359 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007356/2.054, allocations: 140.4 kB / 0.7361 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.97e-05/2.054, allocations: 14.84 kB / 0.7361 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000375/2.054, allocations: 0.6127 MB / 0.7367 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/2.055, allocations: 29.67 kB / 0.7367 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/2.055, allocations: 8.234 kB / 0.7367 GB, free: 207.3 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.0001094/2.055, allocations: 161.8 kB / 0.7369 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/2.055, allocations: 33.05 kB / 0.7369 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/2.055, allocations: 0.6394 MB / 0.7375 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003536/2.056, allocations: 249.6 kB / 0.7378 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/2.056, allocations: 6.688 kB / 0.7378 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/2.056, allocations: 0.6562 kB / 0.7378 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008417/2.057, allocations: 0.8128 MB / 0.7386 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/2.057, allocations: 4 kB / 0.7386 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.047e-05/2.057, allocations: 21.58 kB / 0.7386 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003135/2.057, allocations: 108.3 kB / 0.7387 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/2.057, allocations: 1.781 kB / 0.7387 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003356/2.057, allocations: 0.6403 MB / 0.7393 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/2.057, allocations: 1.688 kB / 0.7393 GB, free: 206 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/2.058, allocations: 385.3 kB / 0.7397 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.442e-05/2.058, allocations: 124.1 kB / 0.7398 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/2.058, allocations: 8.234 kB / 0.7398 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/2.058, allocations: 8.812 kB / 0.7398 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.503e-05/2.058, allocations: 10.5 kB / 0.7398 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/2.058, allocations: 4.906 kB / 0.7398 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002572/2.058, allocations: 332.4 kB / 0.7401 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/2.058, allocations: 0 / 0.7401 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002248/2.06, allocations: 1.228 MB / 0.7413 GB, free: 205.6 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.004135/2.065, allocations: 1.756 MB / 0.7431 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004761/2.065, allocations: 262.9 kB / 0.7433 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/2.065, allocations: 4.062 kB / 0.7433 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002322/2.065, allocations: 98.94 kB / 0.7434 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/2.066, allocations: 135.1 kB / 0.7435 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007555/2.067, allocations: 0.6943 MB / 0.7442 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/2.067, allocations: 0.8043 MB / 0.745 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/2.067, allocations: 40.39 kB / 0.745 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.9e-07/2.067, allocations: 0.5625 kB / 0.745 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.0232/2.09, allocations: 26.11 MB / 0.7705 GB, free: 181.6 MB / 0.5919 GB " [Timeout remaining time 658] 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: 9.501124480972067] Failed to read output from testmodel.py, exit status != 0: 2.1976217369083315 2.206039707 0.507724563 Calling exit ...