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.7925/0.7925, allocations: 111.6 MB / 131 MB, free: 5.059 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 1.933e-06/1.933e-06, allocations: 0 / 175.7 MB, free: 9.516 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.531e-05/2.724e-05, allocations: 2.312 kB / 175.7 MB, free: 9.512 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.638/1.638, allocations: 254.5 MB / 430.1 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04846/1.686, allocations: 30.85 MB / 461 MB, free: 1.598 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/1.687, allocations: 4 kB / 461 MB, free: 1.594 MB / 410.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.0005058/1.687, allocations: 163.2 kB / 461.1 MB, free: 1.434 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003254/1.687, allocations: 171 kB / 461.3 MB, free: 1.266 MB / 410.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.02851/1.716, allocations: 9.939 MB / 471.3 MB, free: 7.289 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007187/1.717, allocations: 406.1 kB / 471.6 MB, free: 6.891 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/1.717, allocations: 112.8 kB / 471.8 MB, free: 6.781 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/1.717, allocations: 247.3 kB / 472 MB, free: 6.539 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/1.718, allocations: 139.7 kB / 472.1 MB, free: 6.402 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 4.298e-05/1.718, allocations: 16 kB / 472.2 MB, free: 6.387 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0344/1.752, allocations: 16.84 MB / 489 MB, free: 5.516 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001525/1.752, allocations: 79.69 kB / 489.1 MB, free: 5.438 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/1.752, allocations: 103.7 kB / 489.2 MB, free: 5.336 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1988/1.951, allocations: 10.91 MB / 0.4884 GB, free: 22.45 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.69e-05/1.951, allocations: 5 kB / 0.4884 GB, free: 22.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.951, allocations: 0 / 0.4884 GB, free: 22.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/1.951, allocations: 0 / 0.4884 GB, free: 22.45 MB / 442.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.006011/1.957, allocations: 1.495 MB / 0.4898 GB, free: 21.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/1.957, allocations: 13.45 kB / 0.4898 GB, free: 21.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/1.957, allocations: 50.7 kB / 0.4899 GB, free: 21.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/1.958, allocations: 240.1 kB / 0.4901 GB, free: 21.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/1.958, allocations: 15.38 kB / 0.4901 GB, free: 21.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/1.958, allocations: 20.34 kB / 0.4902 GB, free: 21.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003947/1.958, allocations: 326.1 kB / 0.4905 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/1.958, allocations: 2.125 kB / 0.4905 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/1.958, allocations: 8.875 kB / 0.4905 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/1.958, allocations: 10.28 kB / 0.4905 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/1.958, allocations: 215.4 kB / 0.4907 GB, free: 21.3 MB / 442.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.03347/1.992, allocations: 10.89 MB / 0.5013 GB, free: 20 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/1.992, allocations: 130.4 kB / 0.5014 GB, free: 19.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/1.992, allocations: 86.31 kB / 0.5015 GB, free: 19.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1432/2.135, allocations: 43.63 MB / 0.5441 GB, free: 1.602 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.081e-05/2.136, allocations: 34.56 kB / 0.5442 GB, free: 1.559 MB / 458.7 MB Notification: Performance of pre-optimization done (n=34): time 1.963e-06/2.136, allocations: 4 kB / 0.5442 GB, free: 1.555 MB / 458.7 MB Notification: Performance of matching and sorting (n=34): time 0.001228/2.137, allocations: 421.5 kB / 0.5446 GB, free: 1.242 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/2.137, allocations: 51.41 kB / 0.5446 GB, free: 1.18 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/2.137, allocations: 322.8 kB / 0.5449 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/2.137, allocations: 25.7 kB / 0.545 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/2.137, allocations: 192 kB / 0.5451 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.752e-05/2.138, allocations: 121.4 kB / 0.5453 GB, free: 0.625 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.453e-05/2.138, allocations: 51.56 kB / 0.5453 GB, free: 0.582 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/2.138, allocations: 343.2 kB / 0.5456 GB, free: 256 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/2.138, allocations: 95.25 kB / 0.5457 GB, free: 196 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/2.138, allocations: 145.3 kB / 0.5459 GB, free: 76 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/2.139, allocations: 250 kB / 0.5461 GB, free: 15.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/2.139, allocations: 0 / 0.5461 GB, free: 15.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005447/2.139, allocations: 346.2 kB / 0.5464 GB, free: 15.65 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/2.139, allocations: 5.406 kB / 0.5464 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/2.139, allocations: 0 / 0.5464 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008732/2.14, allocations: 140.2 kB / 0.5466 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.048e-05/2.14, allocations: 15.98 kB / 0.5466 GB, free: 15.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006758/2.141, allocations: 0.6113 MB / 0.5472 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/2.141, allocations: 21.75 kB / 0.5472 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/2.141, allocations: 9.484 kB / 0.5472 GB, free: 14.89 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 (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.0002047/2.141, allocations: 165.5 kB / 0.5474 GB, free: 14.74 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.596e-05/2.141, allocations: 35.77 kB / 0.5474 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009683/2.142, allocations: 0.6353 MB / 0.548 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004892/2.143, allocations: 263.1 kB / 0.5483 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/2.143, allocations: 0 / 0.5483 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/2.143, allocations: 0 / 0.5483 GB, free: 13.96 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/2.144, allocations: 0.716 MB / 0.549 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/2.144, allocations: 0 / 0.549 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.669e-05/2.144, allocations: 22.31 kB / 0.549 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/2.144, allocations: 105.5 kB / 0.5491 GB, free: 13.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/2.144, allocations: 9.625 kB / 0.5491 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008333/2.145, allocations: 0.6494 MB / 0.5497 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/2.145, allocations: 0 / 0.5497 GB, free: 12.62 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006191/2.146, allocations: 381.5 kB / 0.5501 GB, free: 12.29 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.402e-05/2.146, allocations: 34.22 kB / 0.5501 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.397e-05/2.146, allocations: 17.94 kB / 0.5502 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/2.146, allocations: 3.094 kB / 0.5502 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/2.146, allocations: 10.55 kB / 0.5502 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/2.146, allocations: 4 kB / 0.5502 GB, free: 12.23 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003812/2.146, allocations: 308.1 kB / 0.5505 GB, free: 11.99 MB / 474.7 MB Notification: Performance of sort global known variables: time 9e-08/2.146, allocations: 7.375 kB / 0.5505 GB, free: 11.99 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004834/2.151, allocations: 1.23 MB / 0.5517 GB, free: 10.84 MB / 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.007674/2.159, allocations: 1.917 MB / 0.5535 GB, free: 9.211 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0007676/2.16, allocations: 258 kB / 0.5538 GB, free: 9.016 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/2.16, allocations: 0 / 0.5538 GB, free: 9.016 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000341/2.16, allocations: 115.1 kB / 0.5539 GB, free: 8.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008381/2.161, allocations: 121.1 kB / 0.554 GB, free: 8.836 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/2.162, allocations: 0.643 MB / 0.5546 GB, free: 8.207 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/2.162, allocations: 204.7 kB / 0.5548 GB, free: 7.992 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 9.956e-05/2.163, allocations: 28.11 kB / 0.5549 GB, free: 7.969 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/2.163, allocations: 20.5 kB / 0.5549 GB, free: 7.945 MB / 474.7 MB Notification: Performance of SimCode: time 7.61e-07/2.163, allocations: 0 / 0.5549 GB, free: 7.945 MB / 474.7 MB Notification: Performance of Templates: time 0.07101/2.234, allocations: 42.85 MB / 0.5967 GB, free: 13.3 MB / 0.5105 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: 8.155633104033768]