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.5639/0.5639, allocations: 111.6 MB / 131.5 MB, free: 4.918 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.645e-06/2.645e-06, allocations: 0 / 176.5 MB, free: 8.992 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.71e-05/2.975e-05, allocations: 5.047 kB / 176.5 MB, free: 8.988 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.21/1.21, allocations: 262.8 MB / 439.4 MB, free: 15.07 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03242/1.242, allocations: 33.23 MB / 472.6 MB, free: 13.72 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/1.243, allocations: 4 kB / 472.6 MB, free: 13.72 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.0005207/1.243, allocations: 167.1 kB / 472.7 MB, free: 13.55 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002938/1.244, allocations: 183 kB / 472.9 MB, free: 13.38 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.02232/1.266, allocations: 10.02 MB / 482.9 MB, free: 3.312 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005951/1.266, allocations: 402.1 kB / 483.3 MB, free: 2.914 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/1.267, allocations: 126.7 kB / 483.5 MB, free: 2.793 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/1.267, allocations: 243.3 kB / 483.7 MB, free: 2.555 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/1.267, allocations: 127.7 kB / 483.8 MB, free: 2.43 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.991e-05/1.267, allocations: 20 kB / 483.8 MB, free: 2.41 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2732/1.54, allocations: 16.83 MB / 0.4889 GB, free: 7.992 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/1.541, allocations: 77.41 kB / 0.489 GB, free: 7.992 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/1.541, allocations: 106.9 kB / 0.4891 GB, free: 7.992 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02358/1.564, allocations: 10.82 MB / 0.4997 GB, free: 3.227 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.564, allocations: 0 / 0.4997 GB, free: 3.227 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.564, allocations: 0 / 0.4997 GB, free: 3.227 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.706e-06/1.564, allocations: 0 / 0.4997 GB, free: 3.227 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.004395/1.569, allocations: 1.473 MB / 0.5011 GB, free: 2.223 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/1.569, allocations: 14.3 kB / 0.5011 GB, free: 2.219 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.652e-05/1.569, allocations: 44.61 kB / 0.5012 GB, free: 2.199 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/1.569, allocations: 196.9 kB / 0.5014 GB, free: 2.031 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/1.569, allocations: 15.47 kB / 0.5014 GB, free: 2.027 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/1.569, allocations: 20.28 kB / 0.5014 GB, free: 2.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/1.569, allocations: 238.8 kB / 0.5016 GB, free: 1.855 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/1.569, allocations: 2 kB / 0.5016 GB, free: 1.855 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/1.569, allocations: 11.03 kB / 0.5016 GB, free: 1.848 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/1.569, allocations: 9.594 kB / 0.5016 GB, free: 1.844 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/1.57, allocations: 87.98 kB / 0.5017 GB, free: 1.828 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.01873/1.588, allocations: 9.201 MB / 0.5107 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001563/1.588, allocations: 101.2 kB / 0.5108 GB, free: 11.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.626e-05/1.588, allocations: 28.86 kB / 0.5108 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06845/1.657, allocations: 39.05 MB / 0.549 GB, free: 4.469 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/1.657, allocations: 38.55 kB / 0.549 GB, free: 4.422 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 4.349e-06/1.657, allocations: 0.7031 kB / 0.549 GB, free: 4.422 MB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005918/1.658, allocations: 217.7 kB / 0.5492 GB, free: 4.207 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/1.658, allocations: 51.41 kB / 0.5493 GB, free: 4.145 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/1.658, allocations: 246.7 kB / 0.5495 GB, free: 3.922 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/1.658, allocations: 29.7 kB / 0.5495 GB, free: 3.887 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.19e-05/1.658, allocations: 179.7 kB / 0.5497 GB, free: 3.723 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.466e-05/1.658, allocations: 113.1 kB / 0.5498 GB, free: 3.617 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.642e-05/1.658, allocations: 48.75 kB / 0.5499 GB, free: 3.57 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.14e-05/1.658, allocations: 348.1 kB / 0.5502 GB, free: 3.238 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.622e-05/1.658, allocations: 30.83 kB / 0.5502 GB, free: 3.207 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.907e-05/1.658, allocations: 71.83 kB / 0.5503 GB, free: 3.133 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/1.658, allocations: 136.6 kB / 0.5504 GB, free: 2.996 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.658, allocations: 0 / 0.5504 GB, free: 2.996 MB / 474.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002047/1.658, allocations: 182 kB / 0.5506 GB, free: 2.816 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/1.659, allocations: 4 kB / 0.5506 GB, free: 2.812 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.076e-06/1.659, allocations: 0 / 0.5506 GB, free: 2.812 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003461/1.659, allocations: 84.72 kB / 0.5507 GB, free: 2.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.508e-05/1.659, allocations: 15.28 kB / 0.5507 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003534/1.659, allocations: 0.5661 MB / 0.5512 GB, free: 2.133 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.107e-05/1.659, allocations: 27.73 kB / 0.5513 GB, free: 2.105 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/1.659, allocations: 4 kB / 0.5513 GB, free: 2.102 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.996e-05/1.659, allocations: 121.2 kB / 0.5514 GB, free: 1.973 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/1.659, allocations: 11.98 kB / 0.5514 GB, free: 1.961 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004711/1.66, allocations: 0.537 MB / 0.5519 GB, free: 1.438 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001437/1.66, allocations: 140 kB / 0.5521 GB, free: 1.297 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/1.66, allocations: 0 / 0.5521 GB, free: 1.297 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/1.66, allocations: 5.312 kB / 0.5521 GB, free: 1.293 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000546/1.661, allocations: 0.5289 MB / 0.5526 GB, free: 0.7734 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/1.661, allocations: 0 / 0.5526 GB, free: 0.7734 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.92e-05/1.661, allocations: 22.98 kB / 0.5526 GB, free: 0.7539 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/1.661, allocations: 62.69 kB / 0.5527 GB, free: 0.6914 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/1.661, allocations: 8.938 kB / 0.5527 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002926/1.661, allocations: 0.5896 MB / 0.5532 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.661, allocations: 0 / 0.5532 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/1.661, allocations: 308.8 kB / 0.5535 GB, free: 15.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/1.661, allocations: 35.69 kB / 0.5536 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/1.662, allocations: 15.89 kB / 0.5536 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.979e-05/1.662, allocations: 0 / 0.5536 GB, free: 15.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/1.662, allocations: 21.3 kB / 0.5536 GB, free: 15.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/1.662, allocations: 0 / 0.5536 GB, free: 15.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.000103/1.662, allocations: 129.6 kB / 0.5537 GB, free: 15.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/1.662, allocations: 0 / 0.5537 GB, free: 15.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003006/1.665, allocations: 1.228 MB / 0.5549 GB, free: 14.34 MB / 490.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.004748/1.669, allocations: 2.046 MB / 0.5569 GB, free: 12.53 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003803/1.67, allocations: 185.2 kB / 0.5571 GB, free: 12.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/1.67, allocations: 0 / 0.5571 GB, free: 12.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/1.67, allocations: 77.95 kB / 0.5572 GB, free: 12.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/1.67, allocations: 126.9 kB / 0.5573 GB, free: 12.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/1.671, allocations: 0.592 MB / 0.5579 GB, free: 11.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.393e-05/1.671, allocations: 111 kB / 0.558 GB, free: 11.43 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.179e-05/1.672, allocations: 24.52 kB / 0.558 GB, free: 11.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/1.672, allocations: 114.5 kB / 0.5581 GB, free: 11.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.032e-06/1.672, allocations: 3.938 kB / 0.5581 GB, free: 11.29 MB / 490.7 MB Notification: Performance of Templates: time 0.05371/1.725, allocations: 49.64 MB / 0.6066 GB, free: 9.93 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.35062081227079]