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.8282/0.8282, allocations: 153.9 MB / 172.7 MB, free: 4.949 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.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 0.0005032/0.0005032, allocations: 15.97 kB / 249.8 MB, free: 4.508 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1727, allocations: 33.37 MB / 283.2 MB, free: 1.824 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.797/1.97, allocations: 307.4 MB / 0.5768 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0348/2.005, allocations: 35.03 MB / 0.611 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/2.005, allocations: 2.156 kB / 0.611 GB, free: 14.2 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.0006498/2.006, allocations: 185.4 kB / 0.6111 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004171/2.006, allocations: 174.4 kB / 0.6113 GB, free: 14.04 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.0271/2.033, allocations: 9.974 MB / 0.6211 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007653/2.034, allocations: 398.2 kB / 0.6214 GB, free: 7.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002231/2.034, allocations: 112.7 kB / 0.6215 GB, free: 7.695 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/2.035, allocations: 177 kB / 0.6217 GB, free: 7.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/2.035, allocations: 179.3 kB / 0.6219 GB, free: 7.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/2.035, allocations: 16 kB / 0.6219 GB, free: 7.332 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03806/2.073, allocations: 18 MB / 0.6395 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001635/2.073, allocations: 75.7 kB / 0.6396 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002473/2.073, allocations: 167 kB / 0.6397 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02251/2.096, allocations: 8.54 MB / 0.648 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/2.096, allocations: 0 / 0.648 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.144e-06/2.096, allocations: 0 / 0.648 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.374e-05/2.096, allocations: 0 / 0.648 GB, free: 12.51 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.004404/2.1, allocations: 1.516 MB / 0.6495 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/2.1, allocations: 12.97 kB / 0.6495 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.092e-05/2.1, allocations: 62.53 kB / 0.6496 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.101e-05/2.1, allocations: 39.72 kB / 0.6496 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/2.101, allocations: 236 kB / 0.6499 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/2.101, allocations: 17 kB / 0.6499 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/2.101, allocations: 16 kB / 0.6499 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/2.101, allocations: 337.2 kB / 0.6502 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/2.101, allocations: 0 / 0.6502 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/2.101, allocations: 5.266 kB / 0.6502 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.797e-05/2.101, allocations: 12 kB / 0.6502 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/2.102, allocations: 217.8 kB / 0.6504 GB, free: 9.969 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.03539/2.137, allocations: 11.34 MB / 0.6615 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002311/2.137, allocations: 122.5 kB / 0.6616 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/2.137, allocations: 92.77 kB / 0.6617 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1453/2.283, allocations: 43.42 MB / 0.7041 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/2.283, allocations: 34.56 kB / 0.7042 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.395e-06/2.283, allocations: 0 / 0.7042 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001155/2.284, allocations: 428.3 kB / 0.7046 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/2.284, allocations: 60.38 kB / 0.7046 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/2.284, allocations: 356.4 kB / 0.705 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/2.284, allocations: 25.7 kB / 0.705 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/2.284, allocations: 184.7 kB / 0.7052 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.567e-05/2.285, allocations: 122.9 kB / 0.7053 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.25e-05/2.285, allocations: 45.7 kB / 0.7053 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001592/2.285, allocations: 350.8 kB / 0.7057 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/2.285, allocations: 91.97 kB / 0.7057 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/2.285, allocations: 144.2 kB / 0.7059 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/2.285, allocations: 257.7 kB / 0.7061 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/2.285, allocations: 0 / 0.7061 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004907/2.286, allocations: 342.2 kB / 0.7065 GB, free: 296 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/2.286, allocations: 4.625 kB / 0.7065 GB, free: 292 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/2.286, allocations: 4 kB / 0.7065 GB, free: 288 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008021/2.287, allocations: 138.4 kB / 0.7066 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.204e-05/2.287, allocations: 19.92 kB / 0.7066 GB, free: 128 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006223/2.287, allocations: 0.6176 MB / 0.7072 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/2.288, allocations: 27.77 kB / 0.7072 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/2.288, allocations: 11.98 kB / 0.7073 GB, free: 15.45 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.0001746/2.288, allocations: 158.5 kB / 0.7074 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.885e-05/2.288, allocations: 29.41 kB / 0.7074 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008801/2.289, allocations: 0.6414 MB / 0.7081 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004303/2.289, allocations: 255.4 kB / 0.7083 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/2.289, allocations: 0 / 0.7083 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/2.289, allocations: 3.984 kB / 0.7083 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001153/2.29, allocations: 0.7915 MB / 0.7091 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/2.29, allocations: 4.984 kB / 0.7091 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.773e-05/2.29, allocations: 16.84 kB / 0.7091 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003549/2.291, allocations: 104.8 kB / 0.7092 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/2.291, allocations: 7.938 kB / 0.7092 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005917/2.291, allocations: 0.6421 MB / 0.7098 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/2.291, allocations: 0 / 0.7098 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006078/2.292, allocations: 388.9 kB / 0.7102 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.52e-05/2.292, allocations: 48.67 kB / 0.7103 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/2.292, allocations: 13.34 kB / 0.7103 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/2.292, allocations: 4 kB / 0.7103 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.13e-05/2.292, allocations: 8.828 kB / 0.7103 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/2.292, allocations: 7.938 kB / 0.7103 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003717/2.293, allocations: 331.1 kB / 0.7106 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.293, allocations: 0 / 0.7106 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003252/2.296, allocations: 1.231 MB / 0.7118 GB, free: 10.6 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.006462/2.302, allocations: 2.589 MB / 0.7143 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007864/2.303, allocations: 259.6 kB / 0.7146 GB, free: 7.762 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/2.303, allocations: 0 / 0.7146 GB, free: 7.762 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002921/2.303, allocations: 110.3 kB / 0.7147 GB, free: 7.656 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008152/2.304, allocations: 128.2 kB / 0.7148 GB, free: 7.543 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006198/2.31, allocations: 3.744 MB / 0.7185 GB, free: 3.691 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004712/2.311, allocations: 0.8029 MB / 0.7192 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000141/2.311, allocations: 32.92 kB / 0.7193 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/2.311, allocations: 127.4 kB / 0.7194 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of SimCode: time 1.222e-06/2.311, allocations: 0 / 0.7194 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09591/2.407, allocations: 49.59 MB / 0.7678 GB, free: 1.801 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/16.54, allocations: 8.047 kB / 0.7678 GB, free: 1.797 MB / 0.6231 GB " [Timeout remaining time 643] (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: 18.72426610399998] Failed to read output from testmodel.py, exit status != 0: 17.091869035000173 17.102577292 15.00424118 Calling exit ...