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.5906/0.5906, allocations: 111.6 MB / 131.7 MB, free: 5.066 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.174e-06/2.174e-06, allocations: 0 / 176.4 MB, free: 9.516 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.713e-05/2.931e-05, allocations: 5.703 kB / 176.4 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.097/1.097, allocations: 256.9 MB / 433.4 MB, free: 424 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02942/1.126, allocations: 33.23 MB / 466.6 MB, free: 15.05 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/1.126, allocations: 4 kB / 466.6 MB, free: 15.05 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.0004451/1.127, allocations: 155.2 kB / 466.8 MB, free: 14.9 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/1.127, allocations: 179 kB / 466.9 MB, free: 14.72 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.01959/1.147, allocations: 9.927 MB / 476.9 MB, free: 4.75 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005355/1.147, allocations: 414 kB / 477.3 MB, free: 4.344 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/1.147, allocations: 112.8 kB / 477.4 MB, free: 4.23 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/1.148, allocations: 247.3 kB / 477.6 MB, free: 3.988 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/1.148, allocations: 143.7 kB / 477.8 MB, free: 3.848 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/1.148, allocations: 16 kB / 477.8 MB, free: 3.832 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2247/1.373, allocations: 16.83 MB / 494.6 MB, free: 8.742 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/1.373, allocations: 83.61 kB / 494.7 MB, free: 8.742 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/1.373, allocations: 96.27 kB / 494.8 MB, free: 8.742 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01873/1.392, allocations: 10.81 MB / 0.4937 GB, free: 5.051 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/1.392, allocations: 3.906 kB / 0.4937 GB, free: 5.051 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.392, allocations: 3.281 kB / 0.4938 GB, free: 5.051 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.788e-06/1.392, allocations: 3.938 kB / 0.4938 GB, free: 5.047 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.003412/1.395, allocations: 1.602 MB / 0.4953 GB, free: 3.887 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/1.395, allocations: 13.95 kB / 0.4953 GB, free: 3.883 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.524e-05/1.395, allocations: 53.23 kB / 0.4954 GB, free: 3.855 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/1.395, allocations: 222.1 kB / 0.4956 GB, free: 3.664 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/1.395, allocations: 13.88 kB / 0.4956 GB, free: 3.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/1.395, allocations: 20.16 kB / 0.4956 GB, free: 3.652 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/1.396, allocations: 274 kB / 0.4959 GB, free: 3.449 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/1.396, allocations: 6.25 kB / 0.4959 GB, free: 3.445 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/1.396, allocations: 6.5 kB / 0.4959 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/1.396, allocations: 9.375 kB / 0.4959 GB, free: 3.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/1.396, allocations: 116.2 kB / 0.496 GB, free: 3.41 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.01784/1.414, allocations: 11.2 MB / 0.507 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/1.414, allocations: 85.86 kB / 0.507 GB, free: 12.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.264e-05/1.414, allocations: 43.67 kB / 0.5071 GB, free: 12.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07454/1.488, allocations: 43.75 MB / 0.5498 GB, free: 304 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.695e-05/1.488, allocations: 37.39 kB / 0.5498 GB, free: 256 kB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 2.334e-06/1.488, allocations: 0 / 0.5498 GB, free: 256 kB / 474.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007573/1.489, allocations: 285 kB / 0.5501 GB, free: 15.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/1.489, allocations: 59.41 kB / 0.5502 GB, free: 15.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/1.489, allocations: 330.2 kB / 0.5505 GB, free: 15.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/1.489, allocations: 25.7 kB / 0.5505 GB, free: 15.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/1.49, allocations: 247.2 kB / 0.5507 GB, free: 15.28 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.771e-05/1.49, allocations: 119 kB / 0.5509 GB, free: 15.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.983e-05/1.49, allocations: 55.34 kB / 0.5509 GB, free: 15.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/1.49, allocations: 0.5235 MB / 0.5514 GB, free: 14.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.65e-05/1.49, allocations: 43.97 kB / 0.5515 GB, free: 14.52 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.834e-05/1.49, allocations: 101.8 kB / 0.5516 GB, free: 14.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001591/1.49, allocations: 172.6 kB / 0.5517 GB, free: 14.23 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.49, allocations: 4 kB / 0.5517 GB, free: 14.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002767/1.49, allocations: 239.3 kB / 0.552 GB, free: 13.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/1.49, allocations: 4 kB / 0.552 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/1.49, allocations: 4 kB / 0.552 GB, free: 13.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00044/1.491, allocations: 111.6 kB / 0.5521 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.763e-05/1.491, allocations: 19.17 kB / 0.5521 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004173/1.491, allocations: 0.8552 MB / 0.5529 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.512e-05/1.491, allocations: 27.73 kB / 0.553 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/1.491, allocations: 8.031 kB / 0.553 GB, free: 12.93 MB / 490.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.0001031/1.492, allocations: 164 kB / 0.5531 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/1.492, allocations: 35.8 kB / 0.5532 GB, free: 12.72 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005789/1.492, allocations: 0.6438 MB / 0.5538 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001996/1.492, allocations: 186.5 kB / 0.554 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.492, allocations: 4.625 kB / 0.554 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.492, allocations: 4 kB / 0.554 GB, free: 11.79 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000669/1.493, allocations: 0.6852 MB / 0.5546 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/1.493, allocations: 0 / 0.5546 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.923e-05/1.493, allocations: 20.41 kB / 0.5547 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/1.493, allocations: 88.61 kB / 0.5547 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/1.493, allocations: 7.938 kB / 0.5547 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003328/1.494, allocations: 0.857 MB / 0.5556 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.494, allocations: 0.9375 kB / 0.5556 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/1.494, allocations: 376.4 kB / 0.5559 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/1.494, allocations: 43.72 kB / 0.556 GB, free: 9.637 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/1.494, allocations: 8 kB / 0.556 GB, free: 9.629 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.235e-05/1.494, allocations: 4.031 kB / 0.556 GB, free: 9.625 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.603e-05/1.494, allocations: 14 kB / 0.556 GB, free: 9.613 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/1.494, allocations: 4 kB / 0.556 GB, free: 9.609 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001862/1.494, allocations: 287.1 kB / 0.5563 GB, free: 9.328 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.1e-08/1.494, allocations: 0 / 0.5563 GB, free: 9.328 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002752/1.497, allocations: 1.227 MB / 0.5575 GB, free: 8.098 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.003682/1.501, allocations: 1.913 MB / 0.5594 GB, free: 6.418 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000457/1.501, allocations: 214.4 kB / 0.5596 GB, free: 6.203 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/1.501, allocations: 0 / 0.5596 GB, free: 6.203 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/1.501, allocations: 93.86 kB / 0.5597 GB, free: 6.113 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/1.502, allocations: 132.6 kB / 0.5598 GB, free: 5.996 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/1.503, allocations: 0.5961 MB / 0.5604 GB, free: 5.379 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.3e-05/1.503, allocations: 106.9 kB / 0.5605 GB, free: 5.258 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 7.061e-05/1.503, allocations: 25.83 kB / 0.5605 GB, free: 5.234 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/1.503, allocations: 28.5 kB / 0.5605 GB, free: 5.203 MB / 490.7 MB Notification: Performance of SimCode: time 1.452e-06/1.503, allocations: 0 / 0.5605 GB, free: 5.203 MB / 490.7 MB Notification: Performance of Templates: time 0.03974/1.543, allocations: 43.52 MB / 0.603 GB, free: 9.988 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.302363683935255]