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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.9211/0.9211, allocations: 153.8 MB / 172.6 MB, free: 4.289 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: "" <> 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.000524/0.000524, allocations: 15.97 kB / 249.8 MB, free: 4.293 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1646/0.1652, allocations: 33.35 MB / 283.2 MB, free: 3.895 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.Examples.SimpleExamples.TestControlValve): time 1.829/1.994, allocations: 307.6 MB / 0.5769 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0356/2.03, allocations: 30.81 MB / 0.607 GB, free: 3.469 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/2.03, allocations: 3.938 kB / 0.607 GB, free: 3.465 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0005102/2.031, allocations: 161.3 kB / 0.6072 GB, free: 3.309 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003076/2.031, allocations: 173.5 kB / 0.6073 GB, free: 3.141 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02704/2.058, allocations: 9.842 MB / 0.6169 GB, free: 9.332 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008464/2.059, allocations: 394.2 kB / 0.6173 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/2.059, allocations: 114.6 kB / 0.6174 GB, free: 8.836 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/2.059, allocations: 181.1 kB / 0.6176 GB, free: 8.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/2.06, allocations: 163.3 kB / 0.6178 GB, free: 8.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/2.06, allocations: 20 kB / 0.6178 GB, free: 8.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0314/2.091, allocations: 16.83 MB / 0.6342 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000164/2.091, allocations: 79.64 kB / 0.6343 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002012/2.091, allocations: 123.3 kB / 0.6344 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01877/2.11, allocations: 8.548 MB / 0.6428 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/2.11, allocations: 0 / 0.6428 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.134e-06/2.11, allocations: 3.938 kB / 0.6428 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.135e-06/2.11, allocations: 0 / 0.6428 GB, free: 14.86 MB / 0.5137 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.004035/2.114, allocations: 1.507 MB / 0.6442 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/2.114, allocations: 12.03 kB / 0.6442 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.441e-05/2.114, allocations: 63.22 kB / 0.6443 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.193e-05/2.114, allocations: 39.72 kB / 0.6443 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/2.115, allocations: 236 kB / 0.6446 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/2.115, allocations: 16.44 kB / 0.6446 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/2.115, allocations: 23.88 kB / 0.6446 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004658/2.115, allocations: 323.4 kB / 0.6449 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/2.115, allocations: 6.875 kB / 0.6449 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/2.115, allocations: 8 kB / 0.6449 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/2.115, allocations: 11.98 kB / 0.6449 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/2.116, allocations: 213.8 kB / 0.6451 GB, free: 12.33 MB / 0.5137 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.03653/2.152, allocations: 10.93 MB / 0.6558 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002521/2.152, allocations: 130.5 kB / 0.6559 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/2.153, allocations: 93.89 kB / 0.656 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1508/2.303, allocations: 43.58 MB / 0.6986 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/2.303, allocations: 34.56 kB / 0.6986 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.574e-06/2.303, allocations: 0 / 0.6986 GB, free: 5.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001163/2.305, allocations: 432.3 kB / 0.699 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/2.305, allocations: 51.41 kB / 0.6991 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/2.305, allocations: 360.4 kB / 0.6994 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/2.305, allocations: 25.7 kB / 0.6995 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000148/2.305, allocations: 184.7 kB / 0.6996 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/2.305, allocations: 118.9 kB / 0.6997 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/2.305, allocations: 53.7 kB / 0.6998 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001646/2.306, allocations: 342.8 kB / 0.7001 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/2.306, allocations: 99.97 kB / 0.7002 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/2.306, allocations: 140.2 kB / 0.7004 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/2.306, allocations: 252.7 kB / 0.7006 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/2.306, allocations: 0 / 0.7006 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005133/2.307, allocations: 341.6 kB / 0.7009 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/2.307, allocations: 14 kB / 0.7009 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/2.307, allocations: 0 / 0.7009 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008123/2.308, allocations: 136.6 kB / 0.7011 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.63e-05/2.308, allocations: 15.92 kB / 0.7011 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005985/2.308, allocations: 0.6157 MB / 0.7017 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/2.308, allocations: 23.73 kB / 0.7017 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.985e-05/2.308, allocations: 15.98 kB / 0.7017 GB, free: 2.133 MB / 0.5606 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.0001794/2.309, allocations: 157.7 kB / 0.7019 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/2.309, allocations: 31.77 kB / 0.7019 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001013/2.31, allocations: 0.6428 MB / 0.7025 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005165/2.31, allocations: 267.4 kB / 0.7028 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/2.31, allocations: 0 / 0.7028 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/2.31, allocations: 3.984 kB / 0.7028 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/2.311, allocations: 0.7477 MB / 0.7035 GB, free: 160 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/2.311, allocations: 0 / 0.7035 GB, free: 160 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.694e-05/2.311, allocations: 20 kB / 0.7035 GB, free: 140 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003416/2.312, allocations: 100.8 kB / 0.7036 GB, free: 36 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/2.312, allocations: 11.92 kB / 0.7036 GB, free: 24 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005557/2.312, allocations: 0.6382 MB / 0.7043 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/2.312, allocations: 3.938 kB / 0.7043 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005306/2.313, allocations: 393.1 kB / 0.7046 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.543e-05/2.313, allocations: 47.69 kB / 0.7047 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/2.313, allocations: 11.95 kB / 0.7047 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/2.313, allocations: 3.938 kB / 0.7047 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/2.313, allocations: 15.92 kB / 0.7047 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/2.313, allocations: 10.14 kB / 0.7047 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003714/2.314, allocations: 327.1 kB / 0.705 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/2.314, allocations: 0 / 0.705 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00321/2.317, allocations: 1.228 MB / 0.7062 GB, free: 13.32 MB / 0.5762 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.006784/2.323, allocations: 2.587 MB / 0.7088 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008385/2.324, allocations: 265.5 kB / 0.709 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/2.324, allocations: 0 / 0.709 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002813/2.325, allocations: 105.6 kB / 0.7091 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008375/2.325, allocations: 122.9 kB / 0.7092 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006133/2.332, allocations: 3.732 MB / 0.7129 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/2.332, allocations: 197.1 kB / 0.7131 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001374/2.332, allocations: 37.78 kB / 0.7131 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/2.332, allocations: 127.4 kB / 0.7132 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of SimCode: time 9.02e-07/2.332, allocations: 0 / 0.7132 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09592/2.428, allocations: 50.02 MB / 0.7621 GB, free: 4.426 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.96/17.38, allocations: 8.531 kB / 0.7621 GB, free: 4.422 MB / 0.6231 GB " [Timeout remaining time 642] (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: 19.56911352276802] Failed to read output from testmodel.py, exit status != 0: 17.85269244806841 17.861562952 15.749087645 Calling exit ...