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.8614/0.8614, allocations: 153.8 MB / 173.4 MB, free: 4.938 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.0005268/0.0005268, allocations: 15.98 kB / 251.1 MB, free: 3.984 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1799, allocations: 33.36 MB / 284.4 MB, free: 2.145 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.824/2.004, allocations: 307.5 MB / 0.5781 GB, free: 16.05 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2209/2.225, allocations: 191.3 MB / 0.7649 GB, free: 5.73 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004441/2.225, allocations: 7.938 kB / 0.7649 GB, free: 5.723 MB / 0.6231 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.0003686/2.226, allocations: 103 kB / 0.765 GB, free: 5.625 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0005321/2.226, allocations: 170.8 kB / 0.7652 GB, free: 5.457 MB / 0.6231 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.0342/2.26, allocations: 11.8 MB / 0.7767 GB, free: 9.652 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0008983/2.261, allocations: 430.7 kB / 0.7771 GB, free: 9.227 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003342/2.262, allocations: 189.1 kB / 0.7773 GB, free: 9.035 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002772/2.262, allocations: 187.3 kB / 0.7775 GB, free: 8.852 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/2.262, allocations: 231.1 kB / 0.7777 GB, free: 8.625 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/2.262, allocations: 32 kB / 0.7777 GB, free: 8.594 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04017/2.302, allocations: 20.07 MB / 0.7973 GB, free: 4.504 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002189/2.303, allocations: 121.6 kB / 0.7974 GB, free: 4.387 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.000311/2.303, allocations: 218.8 kB / 0.7976 GB, free: 4.172 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02346/2.326, allocations: 9.903 MB / 0.8073 GB, free: 10.24 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/2.326, allocations: 0 / 0.8073 GB, free: 10.24 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.823e-06/2.326, allocations: 0 / 0.8073 GB, free: 10.24 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.706e-05/2.326, allocations: 0 / 0.8073 GB, free: 10.24 MB / 0.67 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.005019/2.332, allocations: 1.884 MB / 0.8091 GB, free: 8.316 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/2.332, allocations: 16.03 kB / 0.8092 GB, free: 8.301 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/2.332, allocations: 60.97 kB / 0.8092 GB, free: 8.242 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/2.332, allocations: 305 kB / 0.8095 GB, free: 7.918 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/2.332, allocations: 29 kB / 0.8095 GB, free: 7.891 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/2.332, allocations: 32 kB / 0.8096 GB, free: 7.859 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006279/2.333, allocations: 384.8 kB / 0.8099 GB, free: 7.461 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/2.333, allocations: 0 / 0.8099 GB, free: 7.461 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/2.333, allocations: 16 kB / 0.81 GB, free: 7.445 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/2.333, allocations: 8 kB / 0.81 GB, free: 7.438 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004741/2.333, allocations: 258.4 kB / 0.8102 GB, free: 7.188 MB / 0.67 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.008367/2.342, allocations: 3.889 MB / 0.814 GB, free: 3.09 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/2.342, allocations: 118.6 kB / 0.8141 GB, free: 2.965 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.305e-05/2.342, allocations: 44.84 kB / 0.8142 GB, free: 2.918 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4006/2.743, allocations: 66.88 MB / 0.8795 GB, free: 277.4 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/2.743, allocations: 32.62 kB / 0.8795 GB, free: 277.3 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 2.124e-06/2.743, allocations: 0 / 0.8795 GB, free: 277.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.0008585/2.744, allocations: 248.6 kB / 0.8797 GB, free: 277.1 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/2.744, allocations: 59.34 kB / 0.8798 GB, free: 277.1 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/2.744, allocations: 465.3 kB / 0.8802 GB, free: 276.7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/2.744, allocations: 29.7 kB / 0.8803 GB, free: 276.7 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/2.744, allocations: 263.9 kB / 0.8805 GB, free: 276.5 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/2.744, allocations: 36.17 kB / 0.8806 GB, free: 276.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.689e-05/2.744, allocations: 67.16 kB / 0.8806 GB, free: 276.4 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.694e-05/2.744, allocations: 344 kB / 0.8809 GB, free: 276.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/2.745, allocations: 61.22 kB / 0.881 GB, free: 276.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/2.745, allocations: 162.3 kB / 0.8812 GB, free: 275.9 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/2.745, allocations: 229.5 kB / 0.8814 GB, free: 275.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/2.745, allocations: 0.9844 kB / 0.8814 GB, free: 275.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005015/2.745, allocations: 318.4 kB / 0.8817 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/2.745, allocations: 9.844 kB / 0.8817 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/2.745, allocations: 8 kB / 0.8817 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007592/2.746, allocations: 103.4 kB / 0.8818 GB, free: 275.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/2.746, allocations: 46.56 kB / 0.8818 GB, free: 275.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003588/2.747, allocations: 0.5631 MB / 0.8824 GB, free: 274.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/2.747, allocations: 30.89 kB / 0.8824 GB, free: 274.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/2.747, allocations: 10.19 kB / 0.8824 GB, free: 274.7 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.0001675/2.747, allocations: 187.4 kB / 0.8826 GB, free: 274.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/2.747, allocations: 43.44 kB / 0.8826 GB, free: 274.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/2.748, allocations: 222.9 kB / 0.8829 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/2.748, allocations: 0 / 0.8829 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/2.748, allocations: 4 kB / 0.8829 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/2.748, allocations: 3.5 kB / 0.8829 GB, free: 274.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/2.748, allocations: 351.8 kB / 0.8832 GB, free: 274 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/2.748, allocations: 3.281 kB / 0.8832 GB, free: 274 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.468e-05/2.748, allocations: 7.281 kB / 0.8832 GB, free: 274 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000409/2.748, allocations: 72.33 kB / 0.8833 GB, free: 273.9 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/2.748, allocations: 3.938 kB / 0.8833 GB, free: 273.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003069/2.749, allocations: 0.5699 MB / 0.8838 GB, free: 273.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/2.749, allocations: 0 / 0.8838 GB, free: 273.3 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003265/2.749, allocations: 211.6 kB / 0.884 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/2.749, allocations: 62.05 kB / 0.8841 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/2.749, allocations: 3.938 kB / 0.8841 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.543e-05/2.749, allocations: 1.688 kB / 0.8841 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/2.749, allocations: 7.984 kB / 0.8841 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/2.749, allocations: 5.562 kB / 0.8841 GB, free: 273.1 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002997/2.75, allocations: 333.7 kB / 0.8844 GB, free: 272.8 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/2.75, allocations: 0 / 0.8844 GB, free: 272.8 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003136/2.753, allocations: 1.49 MB / 0.8859 GB, free: 271.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.006112/2.759, allocations: 2.23 MB / 0.8881 GB, free: 269.7 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0005181/2.759, allocations: 161.1 kB / 0.8882 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/2.759, allocations: 0 / 0.8882 GB, free: 269.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/2.759, allocations: 63.94 kB / 0.8883 GB, free: 269.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/2.76, allocations: 75.39 kB / 0.8884 GB, free: 269.5 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/2.761, allocations: 0.6874 MB / 0.889 GB, free: 268.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/2.761, allocations: 0.8183 MB / 0.8898 GB, free: 267.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/2.761, allocations: 35.44 kB / 0.8899 GB, free: 267.9 MB / 0.6856 GB Notification: Performance of SimCode: time 4.01e-07/2.761, allocations: 0 / 0.8899 GB, free: 267.9 MB / 0.6856 GB Notification: Performance of Templates: time 0.03332/2.794, allocations: 30.05 MB / 0.9192 GB, free: 238.4 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.592998432228342] Failed to read output from testmodel.py, exit status != 0: 2.9378493048716336 2.946608275 0.6178149310000001 Calling exit ...