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.8458/0.8458, allocations: 153.8 MB / 170.2 MB, free: 13.78 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.0005025/0.0005025, allocations: 13.44 kB / 246.2 MB, free: 14.94 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05997/0.06047, allocations: 33.34 MB / 279.6 MB, free: 15.2 MB / 238.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.725/1.785, allocations: 307.3 MB / 0.5731 GB, free: 10.68 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04282/1.828, allocations: 34.99 MB / 0.6073 GB, free: 7.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002071/1.828, allocations: 4 kB / 0.6073 GB, free: 7.559 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.0004994/1.829, allocations: 176.1 kB / 0.6074 GB, free: 7.387 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/1.829, allocations: 175 kB / 0.6076 GB, free: 7.215 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.02394/1.853, allocations: 9.903 MB / 0.6173 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006475/1.854, allocations: 394.2 kB / 0.6177 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/1.854, allocations: 108.6 kB / 0.6178 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/1.854, allocations: 175.3 kB / 0.6179 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/1.855, allocations: 175.3 kB / 0.6181 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/1.855, allocations: 16 kB / 0.6181 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03033/1.885, allocations: 18 MB / 0.6357 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/1.885, allocations: 67.77 kB / 0.6357 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002263/1.885, allocations: 171 kB / 0.6359 GB, free: 10.19 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01875/1.904, allocations: 8.548 MB / 0.6443 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/1.904, allocations: 4 kB / 0.6443 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.794e-06/1.904, allocations: 0 / 0.6443 GB, free: 1.617 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.025e-06/1.904, allocations: 0 / 0.6443 GB, free: 1.617 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.004434/1.908, allocations: 1.583 MB / 0.6458 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/1.908, allocations: 8.031 kB / 0.6458 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.832e-05/1.909, allocations: 62.53 kB / 0.6459 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.401e-05/1.909, allocations: 51.47 kB / 0.6459 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/1.909, allocations: 290.3 kB / 0.6462 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/1.909, allocations: 16.44 kB / 0.6462 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/1.909, allocations: 20 kB / 0.6462 GB, free: 15.49 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/1.909, allocations: 315.4 kB / 0.6465 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.909, allocations: 4 kB / 0.6465 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/1.91, allocations: 12 kB / 0.6466 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/1.91, allocations: 19.91 kB / 0.6466 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/1.91, allocations: 206.3 kB / 0.6468 GB, free: 14.92 MB / 0.5294 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.04013/1.95, allocations: 18.22 MB / 0.6646 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/1.95, allocations: 118.5 kB / 0.6647 GB, free: 10.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/1.95, allocations: 84.83 kB / 0.6648 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3423/2.293, allocations: 82.88 MB / 0.7457 GB, free: 195.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/2.293, allocations: 34.5 kB / 0.7457 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.064e-06/2.293, allocations: 0 / 0.7457 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001008/2.294, allocations: 0.4891 MB / 0.7462 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.946e-05/2.294, allocations: 55.16 kB / 0.7463 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/2.294, allocations: 353.4 kB / 0.7466 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.828e-06/2.294, allocations: 25.7 kB / 0.7466 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.314e-05/2.294, allocations: 196.2 kB / 0.7468 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/2.294, allocations: 112.3 kB / 0.7469 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.169e-05/2.294, allocations: 51.81 kB / 0.747 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.072e-05/2.294, allocations: 350.1 kB / 0.7473 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/2.294, allocations: 89.03 kB / 0.7474 GB, free: 194.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/2.295, allocations: 143.2 kB / 0.7475 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/2.295, allocations: 251.9 kB / 0.7478 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/2.295, allocations: 0 / 0.7478 GB, free: 194.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003668/2.295, allocations: 331.6 kB / 0.7481 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/2.295, allocations: 7.812 kB / 0.7481 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/2.295, allocations: 1.312 kB / 0.7481 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007513/2.296, allocations: 142.6 kB / 0.7482 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.422e-05/2.296, allocations: 15.8 kB / 0.7482 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003935/2.296, allocations: 0.6178 MB / 0.7488 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/2.296, allocations: 34.39 kB / 0.7489 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/2.296, allocations: 3.781 kB / 0.7489 GB, free: 194 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.0001123/2.297, allocations: 161.8 kB / 0.749 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.654e-05/2.297, allocations: 35.48 kB / 0.7491 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000631/2.297, allocations: 0.6271 MB / 0.7497 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000346/2.298, allocations: 255 kB / 0.7499 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.298, allocations: 3.984 kB / 0.7499 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/2.298, allocations: 3.844 kB / 0.7499 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008566/2.298, allocations: 0.8122 MB / 0.7507 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/2.298, allocations: 3.938 kB / 0.7507 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.475e-05/2.299, allocations: 25.58 kB / 0.7507 GB, free: 193 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003127/2.299, allocations: 98.33 kB / 0.7508 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/2.299, allocations: 4.406 kB / 0.7508 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003426/2.299, allocations: 0.6376 MB / 0.7515 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/2.299, allocations: 0 / 0.7515 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/2.3, allocations: 379.8 kB / 0.7518 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.831e-05/2.3, allocations: 119.6 kB / 0.7519 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/2.3, allocations: 14.55 kB / 0.752 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/2.3, allocations: 6.25 kB / 0.752 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/2.3, allocations: 8.516 kB / 0.752 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/2.3, allocations: 14.3 kB / 0.752 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002688/2.3, allocations: 333.2 kB / 0.7523 GB, free: 192 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/2.3, allocations: 0 / 0.7523 GB, free: 192 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002595/2.303, allocations: 1.225 MB / 0.7535 GB, free: 191.6 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.004679/2.307, allocations: 2.588 MB / 0.756 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005414/2.308, allocations: 257.4 kB / 0.7563 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/2.308, allocations: 0 / 0.7563 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002459/2.308, allocations: 112.2 kB / 0.7564 GB, free: 189.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007051/2.309, allocations: 126.8 kB / 0.7565 GB, free: 189 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/2.313, allocations: 3.724 MB / 0.7601 GB, free: 185.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/2.313, allocations: 0.8029 MB / 0.7609 GB, free: 184.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.923e-05/2.313, allocations: 42.94 kB / 0.761 GB, free: 184.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/2.313, allocations: 127.4 kB / 0.7611 GB, free: 184.5 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/2.313, allocations: 0 / 0.7611 GB, free: 184.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07354/2.387, allocations: 49.34 MB / 0.8093 GB, free: 136 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.08/16.46, allocations: 5.25 kB / 0.8093 GB, free: 136 MB / 0.5919 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.380856308998773] Failed to read output from testmodel.py, exit status != 0: 16.740767119990778 16.750380938 14.844117142 Calling exit ...