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.8725/0.8725, allocations: 153.8 MB / 173.4 MB, free: 4.883 MB / 142.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 0.0005731/0.0005731, allocations: 11.98 kB / 251 MB, free: 3.945 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1758, allocations: 33.35 MB / 284.4 MB, free: 1.93 MB / 222.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.94/2.116, allocations: 307.6 MB / 0.5781 GB, free: 17.37 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2152/2.331, allocations: 165 MB / 0.7392 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/2.332, allocations: 11.94 kB / 0.7393 GB, free: 15.54 MB / 0.6075 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.0003557/2.332, allocations: 108.1 kB / 0.7394 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005488/2.333, allocations: 166.9 kB / 0.7395 GB, free: 15.27 MB / 0.6075 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.03171/2.364, allocations: 11.61 MB / 0.7509 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007898/2.365, allocations: 430.7 kB / 0.7513 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003105/2.365, allocations: 201.1 kB / 0.7515 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/2.366, allocations: 183.3 kB / 0.7516 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/2.366, allocations: 212.7 kB / 0.7518 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/2.366, allocations: 32 kB / 0.7519 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03594/2.402, allocations: 18.67 MB / 0.7701 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002106/2.402, allocations: 119.6 kB / 0.7702 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002582/2.402, allocations: 179 kB / 0.7704 GB, free: 15.62 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02292/2.425, allocations: 9.909 MB / 0.7801 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/2.425, allocations: 0 / 0.7801 GB, free: 5.684 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.583e-06/2.425, allocations: 4 kB / 0.7801 GB, free: 5.68 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.487e-05/2.425, allocations: 0 / 0.7801 GB, free: 5.68 MB / 0.6387 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.005037/2.43, allocations: 1.872 MB / 0.7819 GB, free: 3.766 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/2.43, allocations: 8.031 kB / 0.7819 GB, free: 3.758 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/2.43, allocations: 55.67 kB / 0.782 GB, free: 3.703 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005957/2.431, allocations: 315.2 kB / 0.7823 GB, free: 3.367 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/2.431, allocations: 25 kB / 0.7823 GB, free: 3.344 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.238e-05/2.431, allocations: 32 kB / 0.7823 GB, free: 3.312 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006455/2.432, allocations: 384.8 kB / 0.7827 GB, free: 2.91 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/2.432, allocations: 0 / 0.7827 GB, free: 2.91 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/2.432, allocations: 16 kB / 0.7827 GB, free: 2.895 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/2.432, allocations: 8 kB / 0.7827 GB, free: 2.887 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000478/2.432, allocations: 260.6 kB / 0.783 GB, free: 2.633 MB / 0.6387 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.00801/2.44, allocations: 3.19 MB / 0.7861 GB, free: 15.39 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002484/2.441, allocations: 112.2 kB / 0.7862 GB, free: 15.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.781e-05/2.441, allocations: 46.81 kB / 0.7862 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4356/2.876, allocations: 67.13 MB / 0.8518 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/2.876, allocations: 32 kB / 0.8518 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 3.076e-06/2.876, allocations: 6.656 kB / 0.8518 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.0007981/2.877, allocations: 227.9 kB / 0.852 GB, free: 301.1 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/2.877, allocations: 61.69 kB / 0.8521 GB, free: 301 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/2.878, allocations: 447.4 kB / 0.8525 GB, free: 300.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/2.878, allocations: 25.7 kB / 0.8525 GB, free: 300.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/2.878, allocations: 271.2 kB / 0.8528 GB, free: 300.7 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/2.878, allocations: 33.91 kB / 0.8528 GB, free: 300.7 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/2.878, allocations: 65.78 kB / 0.8529 GB, free: 300.7 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.415e-05/2.878, allocations: 339.2 kB / 0.8532 GB, free: 300.4 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/2.878, allocations: 65.16 kB / 0.8533 GB, free: 300.4 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/2.878, allocations: 156.9 kB / 0.8534 GB, free: 300.3 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002491/2.878, allocations: 233.3 kB / 0.8536 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/2.878, allocations: 1.281 kB / 0.8537 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004983/2.879, allocations: 316.4 kB / 0.854 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/2.879, allocations: 9.031 kB / 0.854 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/2.879, allocations: 0 / 0.854 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007292/2.88, allocations: 116.7 kB / 0.8541 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/2.88, allocations: 39.78 kB / 0.8541 GB, free: 300.1 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003509/2.88, allocations: 0.5685 MB / 0.8547 GB, free: 299.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/2.88, allocations: 33.91 kB / 0.8547 GB, free: 299.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/2.88, allocations: 11.59 kB / 0.8547 GB, free: 299.5 MB / 0.6856 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.0001597/2.88, allocations: 179.3 kB / 0.8549 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.925e-05/2.88, allocations: 39.02 kB / 0.8549 GB, free: 299.4 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004208/2.881, allocations: 210.1 kB / 0.8551 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/2.881, allocations: 0.7656 kB / 0.8551 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/2.881, allocations: 3.516 kB / 0.8551 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/2.881, allocations: 0 / 0.8551 GB, free: 299.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/2.881, allocations: 278.5 kB / 0.8554 GB, free: 299.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/2.881, allocations: 0 / 0.8554 GB, free: 299.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.35e-05/2.881, allocations: 3.812 kB / 0.8554 GB, free: 299.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003926/2.882, allocations: 87.3 kB / 0.8555 GB, free: 299.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/2.882, allocations: 0 / 0.8555 GB, free: 299.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003071/2.882, allocations: 0.5616 MB / 0.856 GB, free: 298.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/2.882, allocations: 0 / 0.856 GB, free: 298.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/2.882, allocations: 213.6 kB / 0.8562 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/2.882, allocations: 53.78 kB / 0.8563 GB, free: 298.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/2.882, allocations: 11.77 kB / 0.8563 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.822e-05/2.882, allocations: 3.75 kB / 0.8563 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/2.882, allocations: 9.203 kB / 0.8563 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/2.882, allocations: 3.797 kB / 0.8563 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002826/2.883, allocations: 299.7 kB / 0.8566 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/2.883, allocations: 0 / 0.8566 GB, free: 298.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.004081/2.887, allocations: 1.487 MB / 0.858 GB, free: 298.5 MB / 0.6856 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.005828/2.893, allocations: 2.238 MB / 0.8602 GB, free: 297.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0005257/2.893, allocations: 152.3 kB / 0.8604 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/2.893, allocations: 7.812 kB / 0.8604 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001523/2.893, allocations: 57.03 kB / 0.8604 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/2.894, allocations: 71.5 kB / 0.8605 GB, free: 297.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/2.895, allocations: 0.6897 MB / 0.8612 GB, free: 297.1 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/2.895, allocations: 219.7 kB / 0.8614 GB, free: 296.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/2.895, allocations: 27.44 kB / 0.8614 GB, free: 296.9 MB / 0.6856 GB Notification: Performance of SimCode: time 6.61e-07/2.895, allocations: 0.7656 kB / 0.8614 GB, free: 296.9 MB / 0.6856 GB Notification: Performance of Templates: time 0.03355/2.929, allocations: 30.01 MB / 0.8907 GB, free: 267.7 MB / 0.6856 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: 12.833596346434206] Failed to read output from testmodel.py, exit status != 0: 3.0561757478863 3.064868361 0.637359592 Calling exit ...