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.8459/0.8459, allocations: 153.9 MB / 172.7 MB, free: 4.93 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.0004951/0.0004951, allocations: 11.97 kB / 249.8 MB, free: 4.434 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1665, allocations: 33.36 MB / 283.2 MB, free: 1.832 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.828/1.995, allocations: 307.6 MB / 0.5769 GB, free: 15.94 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03579/2.031, allocations: 35.03 MB / 0.6111 GB, free: 14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003662/2.031, allocations: 3.25 kB / 0.6111 GB, free: 14 MB / 494.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.0005791/2.032, allocations: 181.5 kB / 0.6113 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003894/2.032, allocations: 178.8 kB / 0.6115 GB, free: 13.84 MB / 494.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.02814/2.06, allocations: 9.981 MB / 0.6212 GB, free: 7.969 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007401/2.061, allocations: 394.2 kB / 0.6216 GB, free: 7.582 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/2.061, allocations: 108.8 kB / 0.6217 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003387/2.061, allocations: 185 kB / 0.6219 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002507/2.062, allocations: 179.3 kB / 0.622 GB, free: 7.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/2.062, allocations: 16 kB / 0.6221 GB, free: 7.109 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03809/2.1, allocations: 18 MB / 0.6396 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001853/2.1, allocations: 79.64 kB / 0.6397 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002456/2.1, allocations: 159.1 kB / 0.6399 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02287/2.123, allocations: 8.548 MB / 0.6482 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/2.123, allocations: 0 / 0.6482 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.843e-06/2.123, allocations: 0.8438 kB / 0.6482 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.107e-06/2.123, allocations: 0 / 0.6482 GB, free: 12.27 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.004328/2.127, allocations: 1.508 MB / 0.6497 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.395e-05/2.128, allocations: 8.031 kB / 0.6497 GB, free: 10.72 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.977e-05/2.128, allocations: 70.53 kB / 0.6498 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.367e-05/2.128, allocations: 39.72 kB / 0.6498 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003492/2.128, allocations: 236 kB / 0.65 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/2.128, allocations: 17.23 kB / 0.65 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/2.128, allocations: 16 kB / 0.6501 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/2.129, allocations: 328.3 kB / 0.6504 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/2.129, allocations: 0 / 0.6504 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/2.129, allocations: 11.94 kB / 0.6504 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/2.129, allocations: 12 kB / 0.6504 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/2.129, allocations: 210.3 kB / 0.6506 GB, free: 9.746 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.0359/2.165, allocations: 11.34 MB / 0.6617 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002325/2.165, allocations: 130.5 kB / 0.6618 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/2.165, allocations: 92.83 kB / 0.6619 GB, free: 14 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.147/2.312, allocations: 43.41 MB / 0.7043 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/2.312, allocations: 39.75 kB / 0.7043 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.204e-06/2.312, allocations: 0.75 kB / 0.7043 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001113/2.313, allocations: 421.4 kB / 0.7047 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/2.313, allocations: 55.41 kB / 0.7048 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/2.314, allocations: 360.5 kB / 0.7051 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/2.314, allocations: 25.7 kB / 0.7051 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/2.314, allocations: 188.7 kB / 0.7053 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.785e-05/2.314, allocations: 122.9 kB / 0.7054 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.939e-05/2.314, allocations: 49.7 kB / 0.7055 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001539/2.314, allocations: 347.8 kB / 0.7058 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001387/2.315, allocations: 95.97 kB / 0.7059 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/2.315, allocations: 140.2 kB / 0.706 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/2.315, allocations: 249.7 kB / 0.7063 GB, free: 424 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/2.315, allocations: 0 / 0.7063 GB, free: 424 kB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005185/2.316, allocations: 353.4 kB / 0.7066 GB, free: 60 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/2.316, allocations: 4 kB / 0.7066 GB, free: 56 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/2.316, allocations: 0 / 0.7066 GB, free: 56 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008063/2.316, allocations: 140.9 kB / 0.7067 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.627e-05/2.316, allocations: 21.38 kB / 0.7068 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005761/2.317, allocations: 0.6136 MB / 0.7074 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/2.317, allocations: 28.45 kB / 0.7074 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/2.317, allocations: 15.98 kB / 0.7074 GB, free: 15.21 MB / 0.5762 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.0001705/2.317, allocations: 157.7 kB / 0.7076 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.336e-05/2.317, allocations: 27.81 kB / 0.7076 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008669/2.318, allocations: 0.6391 MB / 0.7082 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004493/2.319, allocations: 259.6 kB / 0.7085 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/2.319, allocations: 1.031 kB / 0.7085 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/2.319, allocations: 3.984 kB / 0.7085 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/2.32, allocations: 0.7875 MB / 0.7092 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/2.32, allocations: 7.984 kB / 0.7092 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.916e-05/2.32, allocations: 17 kB / 0.7093 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000358/2.32, allocations: 104.8 kB / 0.7094 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/2.32, allocations: 11.94 kB / 0.7094 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005538/2.321, allocations: 0.64 MB / 0.71 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/2.321, allocations: 4.031 kB / 0.71 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/2.321, allocations: 381.6 kB / 0.7104 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.903e-05/2.322, allocations: 44.72 kB / 0.7104 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.289e-05/2.322, allocations: 18.19 kB / 0.7104 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/2.322, allocations: 0 / 0.7104 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/2.322, allocations: 23.92 kB / 0.7104 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/2.322, allocations: 4 kB / 0.7104 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003789/2.322, allocations: 331.1 kB / 0.7108 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.322, allocations: 0 / 0.7108 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003044/2.325, allocations: 1.224 MB / 0.712 GB, free: 10.38 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.006114/2.331, allocations: 2.578 MB / 0.7145 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007163/2.332, allocations: 262.3 kB / 0.7147 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.332, allocations: 0 / 0.7147 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003013/2.332, allocations: 108.6 kB / 0.7148 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007994/2.333, allocations: 133.8 kB / 0.715 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005658/2.339, allocations: 3.744 MB / 0.7186 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/2.339, allocations: 0.8068 MB / 0.7194 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001209/2.339, allocations: 28.81 kB / 0.7194 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/2.339, allocations: 127.4 kB / 0.7195 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of SimCode: time 1.252e-06/2.339, allocations: 0 / 0.7195 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09577/2.435, allocations: 49.57 MB / 0.768 GB, free: 1.547 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.88/17.32, allocations: 19.86 kB / 0.768 GB, free: 1.535 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.434686730000067] Failed to read output from testmodel.py, exit status != 0: 17.822800247000032 17.83346972 15.70787926 Calling exit ...