Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8455/0.8455, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005056/0.0005056, allocations: 17.7 kB / 239.3 MB, free: 2.234 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06352/0.06404, allocations: 31.35 MB / 270.6 MB, free: 6.719 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestControlValve): time 1.771/1.835, allocations: 295.8 MB / 0.5531 GB, free: 12.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04594/1.881, allocations: 34.76 MB / 0.5871 GB, free: 9.887 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/1.882, allocations: 4 kB / 0.5871 GB, free: 9.883 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47: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 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43: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 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38: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.0005368/1.882, allocations: 171.2 kB / 0.5872 GB, free: 9.715 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/1.883, allocations: 143 kB / 0.5874 GB, free: 9.574 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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. Notification: Performance of NFTyping.typeClassSections: time 0.02655/1.909, allocations: 9.73 MB / 0.5969 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007205/1.91, allocations: 394.1 kB / 0.5972 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/1.91, allocations: 132.5 kB / 0.5974 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/1.91, allocations: 167.3 kB / 0.5975 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/1.911, allocations: 163.4 kB / 0.5977 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.606e-05/1.911, allocations: 20 kB / 0.5977 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03341/1.944, allocations: 17.96 MB / 0.6152 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001702/1.944, allocations: 79.7 kB / 0.6153 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002678/1.945, allocations: 171 kB / 0.6155 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0222/1.967, allocations: 8.536 MB / 0.6238 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/1.967, allocations: 0 / 0.6238 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.803e-06/1.967, allocations: 0 / 0.6238 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.643e-05/1.967, allocations: 0 / 0.6238 GB, free: 4.188 MB / 0.4981 GB 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.005867/1.973, allocations: 1.579 MB / 0.6254 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.973, allocations: 8.031 kB / 0.6254 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.677e-05/1.973, allocations: 62.53 kB / 0.6254 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.513e-05/1.973, allocations: 51.66 kB / 0.6255 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/1.973, allocations: 294.2 kB / 0.6258 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.228e-05/1.973, allocations: 12.44 kB / 0.6258 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/1.973, allocations: 31.92 kB / 0.6258 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/1.974, allocations: 315.4 kB / 0.6261 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/1.974, allocations: 4 kB / 0.6261 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/1.974, allocations: 12 kB / 0.6261 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.714e-05/1.974, allocations: 11.94 kB / 0.6261 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/1.974, allocations: 209 kB / 0.6263 GB, free: 1.488 MB / 0.4981 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.03915/2.013, allocations: 18.23 MB / 0.6441 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/2.014, allocations: 142.5 kB / 0.6443 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/2.014, allocations: 112.8 kB / 0.6444 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3521/2.366, allocations: 77.73 MB / 0.7203 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/2.366, allocations: 33.88 kB / 0.7203 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.174e-06/2.366, allocations: 2 kB / 0.7203 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001034/2.367, allocations: 498.4 kB / 0.7208 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/2.367, allocations: 63.95 kB / 0.7209 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/2.367, allocations: 354.1 kB / 0.7212 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/2.367, allocations: 25.7 kB / 0.7212 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/2.367, allocations: 190.3 kB / 0.7214 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.254e-05/2.368, allocations: 117.9 kB / 0.7215 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.203e-05/2.368, allocations: 46.31 kB / 0.7216 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.228e-05/2.368, allocations: 342 kB / 0.7219 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/2.368, allocations: 98.91 kB / 0.722 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/2.368, allocations: 136 kB / 0.7221 GB, free: 211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/2.368, allocations: 250.3 kB / 0.7223 GB, free: 211 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.368, allocations: 0 / 0.7223 GB, free: 211 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003799/2.369, allocations: 343 kB / 0.7227 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/2.369, allocations: 6.719 kB / 0.7227 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/2.369, allocations: 2.125 kB / 0.7227 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007535/2.369, allocations: 139.7 kB / 0.7228 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.944e-05/2.369, allocations: 15.42 kB / 0.7228 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004237/2.37, allocations: 0.6127 MB / 0.7234 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/2.37, allocations: 30.72 kB / 0.7235 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/2.37, allocations: 8.531 kB / 0.7235 GB, free: 210.4 MB / 0.5919 GB 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.0001263/2.37, allocations: 157 kB / 0.7236 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.774e-05/2.37, allocations: 34.94 kB / 0.7237 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006691/2.371, allocations: 0.6569 MB / 0.7243 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003538/2.371, allocations: 261.8 kB / 0.7245 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/2.371, allocations: 0 / 0.7245 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/2.371, allocations: 0 / 0.7245 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008548/2.372, allocations: 0.8264 MB / 0.7253 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/2.372, allocations: 1.406 kB / 0.7254 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.736e-05/2.372, allocations: 23.58 kB / 0.7254 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003266/2.372, allocations: 105.1 kB / 0.7255 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/2.373, allocations: 0 / 0.7255 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003495/2.373, allocations: 0.6377 MB / 0.7261 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/2.373, allocations: 3.469 kB / 0.7261 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004211/2.373, allocations: 388.9 kB / 0.7265 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.677e-05/2.373, allocations: 126.1 kB / 0.7266 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/2.373, allocations: 9.844 kB / 0.7266 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/2.374, allocations: 11.55 kB / 0.7266 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/2.374, allocations: 7.703 kB / 0.7266 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/2.374, allocations: 4.312 kB / 0.7266 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002911/2.374, allocations: 332.6 kB / 0.7269 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.374, allocations: 0 / 0.7269 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003033/2.377, allocations: 1.224 MB / 0.7281 GB, free: 208.7 MB / 0.5919 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 (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.005488/2.382, allocations: 2.583 MB / 0.7307 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006926/2.383, allocations: 293.3 kB / 0.7309 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/2.383, allocations: 2.75 kB / 0.7309 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002606/2.383, allocations: 115 kB / 0.7311 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/2.384, allocations: 129.8 kB / 0.7312 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004824/2.389, allocations: 3.724 MB / 0.7348 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/2.389, allocations: 0.8082 MB / 0.7356 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001479/2.39, allocations: 41.16 kB / 0.7356 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/2.39, allocations: 125.5 kB / 0.7358 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of SimCode: time 7.11e-07/2.39, allocations: 0 / 0.7358 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07948/2.469, allocations: 49.17 MB / 0.7838 GB, free: 166.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/16.81, allocations: 5.172 kB / 0.7838 GB, free: 166.9 MB / 0.5919 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.740238596103154] Failed to read output from testmodel.py, exit status != 0: 17.04548235598486 17.05474916 15.086097885 Calling exit ...