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.5478/0.5478, allocations: 120.4 MB / 140.2 MB, free: 13 MB / 138.7 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 3.006e-06/3.006e-06, allocations: 0 / 217.9 MB, free: 8.656 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.515e-05, allocations: 6.188 kB / 217.9 MB, free: 8.652 MB / 202.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 0.9542/0.9542, allocations: 254.3 MB / 472.2 MB, free: 8.793 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3554/1.31, allocations: 165.1 MB / 0.6224 GB, free: 10.9 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002153/1.31, allocations: 15.88 kB / 0.6224 GB, free: 10.89 MB / 0.5573 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.000258/1.31, allocations: 88.86 kB / 0.6225 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002594/1.31, allocations: 182.7 kB / 0.6226 GB, free: 10.62 MB / 0.5573 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.02158/1.332, allocations: 11.73 MB / 0.6341 GB, free: 14.89 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0004829/1.332, allocations: 446.5 kB / 0.6345 GB, free: 14.45 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/1.333, allocations: 195.1 kB / 0.6347 GB, free: 14.26 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/1.333, allocations: 263.4 kB / 0.635 GB, free: 14 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/1.333, allocations: 187.5 kB / 0.6351 GB, free: 13.82 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/1.333, allocations: 32 kB / 0.6352 GB, free: 13.79 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02332/1.356, allocations: 18.71 MB / 0.6534 GB, free: 11.05 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001519/1.357, allocations: 123.5 kB / 0.6536 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001721/1.357, allocations: 139.6 kB / 0.6537 GB, free: 10.79 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02071/1.377, allocations: 12.46 MB / 0.6659 GB, free: 14.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.377, allocations: 0 / 0.6659 GB, free: 14.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.004e-06/1.377, allocations: 3.938 kB / 0.6659 GB, free: 14.29 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.261e-06/1.377, allocations: 0 / 0.6659 GB, free: 14.29 MB / 0.6042 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.003012/1.38, allocations: 1.867 MB / 0.6677 GB, free: 12.39 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/1.38, allocations: 11.97 kB / 0.6677 GB, free: 12.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.468e-05/1.381, allocations: 60.41 kB / 0.6678 GB, free: 12.32 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/1.381, allocations: 311.2 kB / 0.6681 GB, free: 11.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/1.381, allocations: 21 kB / 0.6681 GB, free: 11.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/1.381, allocations: 36 kB / 0.6681 GB, free: 11.93 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003934/1.381, allocations: 376.9 kB / 0.6685 GB, free: 11.54 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/1.381, allocations: 0 / 0.6685 GB, free: 11.54 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/1.381, allocations: 16 kB / 0.6685 GB, free: 11.52 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/1.381, allocations: 11.94 kB / 0.6685 GB, free: 11.51 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/1.382, allocations: 263 kB / 0.6687 GB, free: 11.25 MB / 0.6042 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.004233/1.386, allocations: 3.184 MB / 0.6719 GB, free: 8.027 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/1.386, allocations: 111.7 kB / 0.672 GB, free: 7.91 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.016e-05/1.386, allocations: 44.84 kB / 0.672 GB, free: 7.863 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1108/1.497, allocations: 67.14 MB / 0.7376 GB, free: 4.656 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/1.497, allocations: 30.56 kB / 0.7376 GB, free: 4.617 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 3.046e-06/1.497, allocations: 4.938 kB / 0.7376 GB, free: 4.613 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.000613/1.498, allocations: 242.8 kB / 0.7378 GB, free: 4.367 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/1.498, allocations: 51.41 kB / 0.7379 GB, free: 4.305 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/1.498, allocations: 437.5 kB / 0.7383 GB, free: 3.867 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/1.498, allocations: 33.7 kB / 0.7383 GB, free: 3.828 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/1.498, allocations: 271.9 kB / 0.7386 GB, free: 3.555 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/1.498, allocations: 23.8 kB / 0.7386 GB, free: 3.531 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/1.498, allocations: 69.59 kB / 0.7387 GB, free: 3.457 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 8.467e-05/1.498, allocations: 346.8 kB / 0.739 GB, free: 3.109 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.769e-05/1.498, allocations: 59.97 kB / 0.7391 GB, free: 3.051 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/1.498, allocations: 161.3 kB / 0.7392 GB, free: 2.848 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/1.499, allocations: 233.9 kB / 0.7394 GB, free: 2.574 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.499, allocations: 4 kB / 0.7395 GB, free: 2.57 MB / 0.6667 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003728/1.499, allocations: 304 kB / 0.7397 GB, free: 2.266 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/1.499, allocations: 8 kB / 0.7397 GB, free: 2.258 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.499, allocations: 4 kB / 0.7398 GB, free: 2.254 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004511/1.5, allocations: 118.8 kB / 0.7399 GB, free: 2.137 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/1.5, allocations: 39.92 kB / 0.7399 GB, free: 2.098 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000307/1.5, allocations: 0.5647 MB / 0.7405 GB, free: 1.508 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.047e-05/1.5, allocations: 27.78 kB / 0.7405 GB, free: 1.48 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/1.5, allocations: 17.17 kB / 0.7405 GB, free: 1.465 MB / 0.6667 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.0001443/1.5, allocations: 178.9 kB / 0.7407 GB, free: 1.281 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/1.5, allocations: 43.7 kB / 0.7407 GB, free: 1.238 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/1.5, allocations: 208.6 kB / 0.7409 GB, free: 1.023 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/1.5, allocations: 4 kB / 0.7409 GB, free: 1.02 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/1.5, allocations: 4.562 kB / 0.7409 GB, free: 1.016 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/1.5, allocations: 0 / 0.7409 GB, free: 1.016 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003434/1.501, allocations: 281 kB / 0.7412 GB, free: 0.7109 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/1.501, allocations: 0 / 0.7412 GB, free: 0.7109 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.582e-05/1.501, allocations: 4 kB / 0.7412 GB, free: 0.707 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002214/1.501, allocations: 78.16 kB / 0.7413 GB, free: 0.6289 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/1.501, allocations: 4.594 kB / 0.7413 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002513/1.501, allocations: 0.568 MB / 0.7418 GB, free: 32 kB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/1.501, allocations: 3.938 kB / 0.7418 GB, free: 28 kB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1745/1.676, allocations: 199.4 kB / 0.742 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/1.676, allocations: 54.81 kB / 0.7421 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.704e-05/1.676, allocations: 1 kB / 0.7421 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.309e-05/1.676, allocations: 3.562 kB / 0.7421 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.991e-05/1.676, allocations: 7.594 kB / 0.7421 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.093e-06/1.676, allocations: 3.578 kB / 0.7421 GB, free: 305.8 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0002979/1.676, allocations: 312.5 kB / 0.7424 GB, free: 305.7 MB / 0.6667 GB Notification: Performance of sort global known variables: time 8e-08/1.676, allocations: 1.25 kB / 0.7424 GB, free: 305.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.00323/1.68, allocations: 1.487 MB / 0.7438 GB, free: 305.7 MB / 0.6667 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.004787/1.684, allocations: 2.419 MB / 0.7462 GB, free: 305.6 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0004966/1.685, allocations: 158.5 kB / 0.7464 GB, free: 305.6 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.685, allocations: 0 / 0.7464 GB, free: 305.6 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/1.685, allocations: 62.48 kB / 0.7464 GB, free: 305.6 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/1.685, allocations: 72.83 kB / 0.7465 GB, free: 305.6 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/1.686, allocations: 0.6777 MB / 0.7471 GB, free: 305.3 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/1.687, allocations: 211.7 kB / 0.7473 GB, free: 305.2 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.513e-05/1.687, allocations: 35.69 kB / 0.7474 GB, free: 305.2 MB / 0.6667 GB Notification: Performance of SimCode: time 6.21e-07/1.687, allocations: 0 / 0.7474 GB, free: 305.2 MB / 0.6667 GB Notification: Performance of Templates: time 0.02506/1.712, allocations: 30.27 MB / 0.7769 GB, free: 277.6 MB / 0.6667 GB " [Timeout remaining time 658] 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.166772397235036] Failed to read output from testmodel.py, exit status != 0: 1.9294789284467697 1.854396483 0.47546641399999995 Calling exit ...