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.4831/0.4831, allocations: 111.6 MB / 131.4 MB, free: 4.906 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/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 2.695e-06/2.695e-06, allocations: 0 / 176.4 MB, free: 9.055 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.705e-05/1.975e-05, allocations: 6.25 kB / 176.4 MB, free: 9.047 MB / 170.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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.07/1.07, allocations: 257 MB / 433.5 MB, free: 276 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02625/1.096, allocations: 32.72 MB / 466.2 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/1.096, allocations: 0 / 466.2 MB, free: 15.42 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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). Notification: Performance of NFTyping.typeComponents: time 0.0003981/1.097, allocations: 163.2 kB / 466.4 MB, free: 15.26 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001952/1.097, allocations: 175 kB / 466.5 MB, free: 15.09 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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.01774/1.115, allocations: 9.939 MB / 476.5 MB, free: 5.105 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/1.115, allocations: 406 kB / 476.9 MB, free: 4.707 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/1.115, allocations: 116.8 kB / 477 MB, free: 4.59 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/1.116, allocations: 255.2 kB / 477.2 MB, free: 4.34 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/1.116, allocations: 139.7 kB / 477.4 MB, free: 4.203 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/1.116, allocations: 20 kB / 477.4 MB, free: 4.184 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2097/1.325, allocations: 16.83 MB / 494.2 MB, free: 8.82 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/1.326, allocations: 79.14 kB / 494.3 MB, free: 8.82 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/1.326, allocations: 100.6 kB / 494.4 MB, free: 8.82 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/1.342, allocations: 10.82 MB / 0.4934 GB, free: 5.465 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.342, allocations: 0 / 0.4934 GB, free: 5.465 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.342, allocations: 3.375 kB / 0.4934 GB, free: 5.465 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/1.342, allocations: 3.469 kB / 0.4934 GB, free: 5.465 MB / 426.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.003069/1.345, allocations: 1.612 MB / 0.4949 GB, free: 4.316 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/1.345, allocations: 12.36 kB / 0.495 GB, free: 4.312 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.821e-05/1.345, allocations: 50.77 kB / 0.495 GB, free: 4.289 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/1.345, allocations: 215.4 kB / 0.4952 GB, free: 4.098 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/1.345, allocations: 20.12 kB / 0.4952 GB, free: 4.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/1.346, allocations: 19.19 kB / 0.4952 GB, free: 4.082 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/1.346, allocations: 251.6 kB / 0.4955 GB, free: 3.898 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/1.346, allocations: 3.375 kB / 0.4955 GB, free: 3.898 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/1.346, allocations: 10.86 kB / 0.4955 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/1.346, allocations: 12.31 kB / 0.4955 GB, free: 3.887 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.728e-05/1.346, allocations: 84.47 kB / 0.4956 GB, free: 3.871 MB / 426.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.01406/1.36, allocations: 9.739 MB / 0.5051 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/1.36, allocations: 70.41 kB / 0.5052 GB, free: 13.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.718e-05/1.36, allocations: 31.69 kB / 0.5052 GB, free: 13.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06094/1.421, allocations: 38.16 MB / 0.5425 GB, free: 7.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.421, allocations: 35.56 kB / 0.5425 GB, free: 7.727 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 2.425e-06/1.421, allocations: 0 / 0.5425 GB, free: 7.727 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006958/1.422, allocations: 274.3 kB / 0.5428 GB, free: 7.453 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/1.422, allocations: 51.41 kB / 0.5428 GB, free: 7.391 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/1.422, allocations: 336 kB / 0.5431 GB, free: 7.078 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/1.422, allocations: 25.7 kB / 0.5432 GB, free: 7.047 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/1.422, allocations: 249.4 kB / 0.5434 GB, free: 6.809 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/1.422, allocations: 116.1 kB / 0.5435 GB, free: 6.703 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-05/1.422, allocations: 59.8 kB / 0.5436 GB, free: 6.645 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/1.423, allocations: 0.5302 MB / 0.5441 GB, free: 6.117 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.055e-05/1.423, allocations: 27.27 kB / 0.5441 GB, free: 6.094 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.673e-05/1.423, allocations: 95.36 kB / 0.5442 GB, free: 5.988 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/1.423, allocations: 144.4 kB / 0.5443 GB, free: 5.836 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.423, allocations: 0 / 0.5443 GB, free: 5.836 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002276/1.423, allocations: 219.6 kB / 0.5445 GB, free: 5.621 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/1.423, allocations: 8 kB / 0.5446 GB, free: 5.613 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/1.423, allocations: 0 / 0.5446 GB, free: 5.613 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/1.423, allocations: 94.42 kB / 0.5446 GB, free: 5.523 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.247e-05/1.423, allocations: 8 kB / 0.5446 GB, free: 5.516 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003813/1.424, allocations: 0.8615 MB / 0.5455 GB, free: 4.633 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.908e-05/1.424, allocations: 31.67 kB / 0.5455 GB, free: 4.602 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/1.424, allocations: 8 kB / 0.5455 GB, free: 4.594 MB / 474.7 MB 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 9.27e-05/1.424, allocations: 160.6 kB / 0.5457 GB, free: 4.426 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/1.424, allocations: 27.81 kB / 0.5457 GB, free: 4.398 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005393/1.425, allocations: 0.6505 MB / 0.5463 GB, free: 3.738 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001645/1.425, allocations: 175.9 kB / 0.5465 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/1.425, allocations: 0 / 0.5465 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/1.425, allocations: 0 / 0.5465 GB, free: 3.566 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/1.425, allocations: 0.6186 MB / 0.5471 GB, free: 2.949 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/1.425, allocations: 0 / 0.5471 GB, free: 2.949 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/1.425, allocations: 23.64 kB / 0.5471 GB, free: 2.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/1.426, allocations: 76.12 kB / 0.5472 GB, free: 2.852 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/1.426, allocations: 0 / 0.5472 GB, free: 2.852 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004117/1.426, allocations: 0.8528 MB / 0.548 GB, free: 1.973 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.426, allocations: 0.5 kB / 0.548 GB, free: 1.973 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/1.426, allocations: 358.8 kB / 0.5484 GB, free: 1.609 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/1.426, allocations: 41.03 kB / 0.5484 GB, free: 1.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.154e-05/1.426, allocations: 11.89 kB / 0.5484 GB, free: 1.559 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.01e-05/1.426, allocations: 8.672 kB / 0.5484 GB, free: 1.551 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/1.426, allocations: 11.98 kB / 0.5485 GB, free: 1.539 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.09e-06/1.426, allocations: 0 / 0.5485 GB, free: 1.539 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001282/1.427, allocations: 267.6 kB / 0.5487 GB, free: 1.289 MB / 474.7 MB Notification: Performance of sort global known variables: time 6e-08/1.427, allocations: 0 / 0.5487 GB, free: 1.289 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00271/1.429, allocations: 1.224 MB / 0.5499 GB, free: 64 kB / 474.7 MB 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.003265/1.432, allocations: 2.011 MB / 0.5519 GB, free: 14.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002961/1.433, allocations: 179.2 kB / 0.552 GB, free: 14.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/1.433, allocations: 0 / 0.552 GB, free: 14.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001065/1.433, allocations: 78.64 kB / 0.5521 GB, free: 14.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003913/1.433, allocations: 128.5 kB / 0.5522 GB, free: 13.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008728/1.434, allocations: 0.597 MB / 0.5528 GB, free: 13.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.666e-05/1.434, allocations: 107 kB / 0.5529 GB, free: 13.18 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 6.42e-05/1.434, allocations: 28.88 kB / 0.5529 GB, free: 13.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/1.434, allocations: 142.1 kB / 0.5531 GB, free: 13.01 MB / 490.7 MB Notification: Performance of SimCode: time 4.11e-07/1.434, allocations: 0 / 0.5531 GB, free: 13.01 MB / 490.7 MB Notification: Performance of Templates: time 0.048/1.482, allocations: 50.37 MB / 0.6023 GB, free: 10.89 MB / 0.5261 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=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.283798454795033]