Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.8493/0.8493, allocations: 120.4 MB / 139.5 MB, free: 480 kB / 126.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.184e-06/2.184e-06, allocations: 0 / 217.2 MB, free: 13.67 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.108e-05/2.326e-05, allocations: 2.281 kB / 217.2 MB, free: 13.66 MB / 206.1 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.531/1.531, allocations: 254.3 MB / 471.5 MB, free: 11.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.4256/1.957, allocations: 165.1 MB / 0.6217 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/1.957, allocations: 11.88 kB / 0.6217 GB, free: 15.2 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002972/1.958, allocations: 99.38 kB / 0.6218 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004306/1.958, allocations: 174.8 kB / 0.6219 GB, free: 14.93 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03182/1.99, allocations: 11.73 MB / 0.6334 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007105/1.991, allocations: 454.5 kB / 0.6338 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/1.991, allocations: 185.1 kB / 0.634 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003835/1.991, allocations: 267.4 kB / 0.6342 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/1.992, allocations: 183.5 kB / 0.6344 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.881e-05/1.992, allocations: 36 kB / 0.6345 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03666/2.028, allocations: 18.73 MB / 0.6527 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001967/2.029, allocations: 119.6 kB / 0.6529 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002299/2.029, allocations: 143.6 kB / 0.653 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02394/2.053, allocations: 12.45 MB / 0.6652 GB, free: 2.59 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/2.053, allocations: 0 / 0.6652 GB, free: 2.59 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.443e-06/2.053, allocations: 5.125 kB / 0.6652 GB, free: 2.586 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.105e-06/2.053, allocations: 0 / 0.6652 GB, free: 2.586 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004473/2.057, allocations: 1.853 MB / 0.667 GB, free: 0.6914 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/2.057, allocations: 8.031 kB / 0.667 GB, free: 0.6836 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/2.057, allocations: 56.42 kB / 0.667 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004975/2.058, allocations: 319.1 kB / 0.6673 GB, free: 296 kB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/2.058, allocations: 29 kB / 0.6674 GB, free: 268 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.045e-05/2.058, allocations: 28 kB / 0.6674 GB, free: 240 kB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006443/2.059, allocations: 384.9 kB / 0.6678 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/2.059, allocations: 0 / 0.6678 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/2.059, allocations: 21.78 kB / 0.6678 GB, free: 15.81 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/2.059, allocations: 11.94 kB / 0.6678 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/2.059, allocations: 259.2 kB / 0.668 GB, free: 15.55 MB / 0.6075 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.007684/2.067, allocations: 3.188 MB / 0.6711 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002274/2.067, allocations: 103.5 kB / 0.6712 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.611e-05/2.067, allocations: 44.83 kB / 0.6713 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2414/2.309, allocations: 67.13 MB / 0.7369 GB, free: 8.965 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.625e-05/2.309, allocations: 35.19 kB / 0.7369 GB, free: 8.922 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/2.309, allocations: 4 kB / 0.7369 GB, free: 8.918 MB / 0.67 GB Notification: Performance of matching and sorting (n=7): time 0.0008866/2.309, allocations: 230.8 kB / 0.7371 GB, free: 8.684 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/2.309, allocations: 51.97 kB / 0.7372 GB, free: 8.621 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000605/2.31, allocations: 453.3 kB / 0.7376 GB, free: 8.168 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/2.31, allocations: 25.7 kB / 0.7376 GB, free: 8.137 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/2.31, allocations: 268 kB / 0.7379 GB, free: 7.867 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/2.31, allocations: 27.78 kB / 0.7379 GB, free: 7.84 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/2.31, allocations: 65.61 kB / 0.738 GB, free: 7.77 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001639/2.311, allocations: 343.5 kB / 0.7383 GB, free: 7.426 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/2.311, allocations: 67.95 kB / 0.7384 GB, free: 7.359 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002041/2.311, allocations: 156.8 kB / 0.7385 GB, free: 7.16 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003311/2.311, allocations: 233.6 kB / 0.7387 GB, free: 6.887 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/2.311, allocations: 0 / 0.7387 GB, free: 6.887 MB / 0.67 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006369/2.312, allocations: 317.1 kB / 0.739 GB, free: 6.574 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/2.312, allocations: 4 kB / 0.739 GB, free: 6.57 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/2.312, allocations: 4 kB / 0.739 GB, free: 6.566 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008397/2.313, allocations: 118.3 kB / 0.7391 GB, free: 6.449 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/2.313, allocations: 39.92 kB / 0.7392 GB, free: 6.41 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005534/2.314, allocations: 0.5646 MB / 0.7397 GB, free: 5.82 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/2.314, allocations: 28.33 kB / 0.7398 GB, free: 5.793 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/2.314, allocations: 16 kB / 0.7398 GB, free: 5.777 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002119/2.314, allocations: 181.8 kB / 0.74 GB, free: 5.59 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.736e-05/2.314, allocations: 39.7 kB / 0.74 GB, free: 5.551 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005352/2.315, allocations: 226.1 kB / 0.7402 GB, free: 5.32 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/2.315, allocations: 6.188 kB / 0.7402 GB, free: 5.316 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/2.315, allocations: 0 / 0.7402 GB, free: 5.316 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/2.315, allocations: 0 / 0.7402 GB, free: 5.316 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/2.315, allocations: 269.1 kB / 0.7405 GB, free: 5.023 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/2.315, allocations: 0 / 0.7405 GB, free: 5.023 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.003e-05/2.315, allocations: 8 kB / 0.7405 GB, free: 5.016 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004676/2.315, allocations: 79.02 kB / 0.7406 GB, free: 4.938 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/2.315, allocations: 0 / 0.7406 GB, free: 4.938 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005001/2.316, allocations: 0.5607 MB / 0.7411 GB, free: 4.352 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/2.316, allocations: 3.984 kB / 0.7411 GB, free: 4.348 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/2.316, allocations: 213.6 kB / 0.7413 GB, free: 4.117 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/2.316, allocations: 47.73 kB / 0.7414 GB, free: 4.07 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.312e-05/2.316, allocations: 11.94 kB / 0.7414 GB, free: 4.059 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.575e-05/2.317, allocations: 8.609 kB / 0.7414 GB, free: 4.051 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/2.317, allocations: 8 kB / 0.7414 GB, free: 4.043 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/2.317, allocations: 0 / 0.7414 GB, free: 4.043 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0003716/2.317, allocations: 303.1 kB / 0.7417 GB, free: 3.75 MB / 0.67 GB Notification: Performance of sort global known variables: time 1e-07/2.317, allocations: 0 / 0.7417 GB, free: 3.75 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.003623/2.321, allocations: 1.492 MB / 0.7431 GB, free: 2.254 MB / 0.67 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 (4): * Single equations (assignments): 3 * 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.1708/2.491, allocations: 2.41 MB / 0.7455 GB, free: 307.1 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0006018/2.492, allocations: 158.7 kB / 0.7456 GB, free: 307.1 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/2.492, allocations: 0 / 0.7456 GB, free: 307.1 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0001929/2.492, allocations: 66.22 kB / 0.7457 GB, free: 307.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/2.493, allocations: 70.47 kB / 0.7458 GB, free: 307.1 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/2.494, allocations: 0.6367 MB / 0.7464 GB, free: 306.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/2.494, allocations: 211.5 kB / 0.7466 GB, free: 306.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001336/2.494, allocations: 46.12 kB / 0.7466 GB, free: 306.8 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.402e-05/2.494, allocations: 29.19 kB / 0.7467 GB, free: 306.7 MB / 0.67 GB Notification: Performance of SimCode: time 9.62e-07/2.494, allocations: 3.375 kB / 0.7467 GB, free: 306.7 MB / 0.67 GB Notification: Performance of Templates: time 0.05/2.544, allocations: 46.2 MB / 0.7918 GB, free: 267.2 MB / 0.67 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.506164222955704] Failed to read output from testmodel.py, exit status != 0: 2.6646015867590904 2.674397525 0.6193549890000001 Calling exit ...