Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.6154/0.6154, allocations: 120.4 MB / 139.5 MB, free: 12.99 MB / 138.7 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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 216.6 MB, free: 8.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.754e-05/1.992e-05, allocations: 2.281 kB / 216.6 MB, free: 8.699 MB / 202.7 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 0.9922/0.9923, allocations: 254.2 MB / 470.9 MB, free: 8.875 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2371/1.229, allocations: 30.81 MB / 0.4899 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/1.23, allocations: 2.469 kB / 0.4899 GB, free: 0.8867 MB / 442.7 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.000408/1.23, allocations: 155.8 kB / 0.4901 GB, free: 0.8867 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/1.23, allocations: 178.2 kB / 0.4902 GB, free: 0.875 MB / 442.7 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.01759/1.248, allocations: 9.929 MB / 0.4999 GB, free: 14.93 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005107/1.248, allocations: 404.9 kB / 0.5003 GB, free: 14.79 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/1.248, allocations: 117.1 kB / 0.5004 GB, free: 14.74 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/1.249, allocations: 246.7 kB / 0.5007 GB, free: 14.59 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/1.249, allocations: 142.7 kB / 0.5008 GB, free: 14.54 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/1.249, allocations: 18.25 kB / 0.5008 GB, free: 14.54 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02419/1.273, allocations: 16.87 MB / 0.5173 GB, free: 2.547 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/1.273, allocations: 71.97 kB / 0.5174 GB, free: 2.48 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/1.273, allocations: 105.1 kB / 0.5175 GB, free: 2.383 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02085/1.294, allocations: 10.91 MB / 0.5281 GB, free: 7.965 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/1.294, allocations: 0.6562 kB / 0.5281 GB, free: 7.965 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.294, allocations: 2.312 kB / 0.5281 GB, free: 7.965 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.925e-06/1.294, allocations: 0 / 0.5281 GB, free: 7.965 MB / 474.7 MB 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.003828/1.298, allocations: 1.505 MB / 0.5296 GB, free: 6.426 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/1.298, allocations: 12.03 kB / 0.5296 GB, free: 6.414 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/1.298, allocations: 62.53 kB / 0.5297 GB, free: 6.344 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.34e-05/1.298, allocations: 39.72 kB / 0.5297 GB, free: 6.305 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003913/1.299, allocations: 242.9 kB / 0.5299 GB, free: 6.051 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/1.299, allocations: 19.25 kB / 0.53 GB, free: 6.031 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/1.299, allocations: 16 kB / 0.53 GB, free: 6.016 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/1.299, allocations: 320.5 kB / 0.5303 GB, free: 5.684 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.299, allocations: 9.672 kB / 0.5303 GB, free: 5.676 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/1.299, allocations: 8 kB / 0.5303 GB, free: 5.668 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/1.299, allocations: 11.94 kB / 0.5303 GB, free: 5.656 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/1.299, allocations: 213.2 kB / 0.5305 GB, free: 5.445 MB / 474.7 MB 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.01815/1.318, allocations: 10.92 MB / 0.5412 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/1.318, allocations: 126.5 kB / 0.5413 GB, free: 10.49 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.71e-05/1.318, allocations: 93.72 kB / 0.5414 GB, free: 10.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07235/1.39, allocations: 43.59 MB / 0.5839 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/1.39, allocations: 35.55 kB / 0.584 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 3.016e-06/1.39, allocations: 0 / 0.584 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0007961/1.391, allocations: 428.4 kB / 0.5844 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/1.391, allocations: 55.34 kB / 0.5844 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/1.391, allocations: 360.4 kB / 0.5848 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/1.391, allocations: 25.7 kB / 0.5848 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/1.391, allocations: 188.7 kB / 0.585 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/1.391, allocations: 118.6 kB / 0.5851 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.675e-05/1.391, allocations: 49.69 kB / 0.5851 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.64e-05/1.392, allocations: 338.8 kB / 0.5855 GB, free: 13.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.006e-05/1.392, allocations: 99.95 kB / 0.5856 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001023/1.392, allocations: 140.2 kB / 0.5857 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/1.392, allocations: 253.1 kB / 0.5859 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.392, allocations: 0 / 0.5859 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003489/1.392, allocations: 341.8 kB / 0.5863 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.392, allocations: 8 kB / 0.5863 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/1.392, allocations: 0.625 kB / 0.5863 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005082/1.393, allocations: 142 kB / 0.5864 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.165e-05/1.393, allocations: 16.78 kB / 0.5864 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004844/1.393, allocations: 0.6158 MB / 0.587 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.966e-05/1.393, allocations: 27.73 kB / 0.5871 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/1.394, allocations: 8.75 kB / 0.5871 GB, free: 11.47 MB / 0.5261 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.0001375/1.394, allocations: 157.8 kB / 0.5872 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/1.394, allocations: 39.7 kB / 0.5873 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005745/1.394, allocations: 0.6427 MB / 0.5879 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002366/1.394, allocations: 255 kB / 0.5881 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.395, allocations: 1.125 kB / 0.5881 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.395, allocations: 0 / 0.5881 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006893/1.395, allocations: 0.7645 MB / 0.5889 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/1.395, allocations: 0 / 0.5889 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.701e-05/1.395, allocations: 20.55 kB / 0.5889 GB, free: 9.465 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002124/1.395, allocations: 106.9 kB / 0.589 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/1.395, allocations: 8.656 kB / 0.589 GB, free: 9.352 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003236/1.396, allocations: 0.644 MB / 0.5896 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.396, allocations: 32 / 0.5896 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/1.396, allocations: 380 kB / 0.59 GB, free: 8.293 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/1.396, allocations: 47.62 kB / 0.59 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/1.396, allocations: 15.89 kB / 0.5901 GB, free: 8.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.67e-05/1.396, allocations: 3.984 kB / 0.5901 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/1.396, allocations: 17.23 kB / 0.5901 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/1.396, allocations: 4 kB / 0.5901 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002514/1.397, allocations: 331.1 kB / 0.5904 GB, free: 7.887 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6e-08/1.397, allocations: 4.062 kB / 0.5904 GB, free: 7.883 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002582/1.399, allocations: 1.224 MB / 0.5916 GB, free: 6.656 MB / 0.5261 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.004218/1.403, allocations: 2.742 MB / 0.5943 GB, free: 4.121 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004321/1.404, allocations: 269.4 kB / 0.5945 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/1.404, allocations: 0 / 0.5945 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000147/1.404, allocations: 104.8 kB / 0.5946 GB, free: 3.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/1.404, allocations: 136.6 kB / 0.5948 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/1.408, allocations: 3.729 MB / 0.5984 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/1.408, allocations: 201.1 kB / 0.5986 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001034/1.408, allocations: 28.19 kB / 0.5986 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/1.408, allocations: 128.5 kB / 0.5987 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of SimCode: time 8.92e-07/1.408, allocations: 0 / 0.5987 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06561/1.474, allocations: 50.34 MB / 0.6479 GB, free: 13.43 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.895/10.37, allocations: 19.66 kB / 0.6479 GB, free: 13.41 MB / 0.5886 GB " [Timeout remaining time 649] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.144483543932438] Failed to read output from testmodel.py, exit status != 0: 10.714006532914937 10.801567523 9.504313781 Calling exit ...