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.8249/0.8249, allocations: 153.8 MB / 170.2 MB, free: 13.77 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.0005109/0.0005109, allocations: 25.25 kB / 246.3 MB, free: 14.91 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06193/0.06244, allocations: 33.34 MB / 279.7 MB, free: 15.11 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.SimpleExamples.TestControlValve): time 1.664/1.727, allocations: 307.4 MB / 0.5733 GB, free: 10.4 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04068/1.768, allocations: 34.97 MB / 0.6074 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002619/1.768, allocations: 4 kB / 0.6074 GB, free: 7.289 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.0005849/1.768, allocations: 195.9 kB / 0.6076 GB, free: 7.098 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004091/1.769, allocations: 167.1 kB / 0.6078 GB, free: 6.934 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.02423/1.793, allocations: 9.919 MB / 0.6175 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006442/1.794, allocations: 394.3 kB / 0.6178 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/1.794, allocations: 104.6 kB / 0.6179 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/1.794, allocations: 183.2 kB / 0.6181 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/1.794, allocations: 175.3 kB / 0.6183 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.091e-05/1.794, allocations: 20 kB / 0.6183 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0307/1.825, allocations: 17.99 MB / 0.6359 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001635/1.825, allocations: 79.69 kB / 0.6359 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002362/1.826, allocations: 155.1 kB / 0.6361 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.01981/1.845, allocations: 8.552 MB / 0.6444 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.845, allocations: 0 / 0.6444 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.284e-06/1.845, allocations: 0 / 0.6444 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.707e-06/1.845, allocations: 0 / 0.6444 GB, free: 1.328 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.004513/1.85, allocations: 1.587 MB / 0.646 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/1.85, allocations: 8.031 kB / 0.646 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.441e-05/1.85, allocations: 66.53 kB / 0.6461 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.756e-05/1.85, allocations: 39.7 kB / 0.6461 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/1.85, allocations: 302.2 kB / 0.6464 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/1.85, allocations: 16.44 kB / 0.6464 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/1.85, allocations: 16 kB / 0.6464 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/1.851, allocations: 323.4 kB / 0.6467 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.851, allocations: 0 / 0.6467 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/1.851, allocations: 4 kB / 0.6467 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/1.851, allocations: 19.92 kB / 0.6467 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/1.851, allocations: 210.4 kB / 0.6469 GB, free: 14.62 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.0389/1.89, allocations: 18.23 MB / 0.6647 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/1.89, allocations: 114.5 kB / 0.6648 GB, free: 10.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/1.89, allocations: 84.83 kB / 0.6649 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3448/2.235, allocations: 82.88 MB / 0.7459 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/2.235, allocations: 42.36 kB / 0.7459 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.495e-06/2.235, allocations: 0 / 0.7459 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001031/2.236, allocations: 496.4 kB / 0.7464 GB, free: 195.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/2.236, allocations: 59.12 kB / 0.7464 GB, free: 195.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/2.237, allocations: 356.8 kB / 0.7468 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/2.237, allocations: 25.7 kB / 0.7468 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.208e-05/2.237, allocations: 194.5 kB / 0.747 GB, free: 195 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/2.237, allocations: 109.7 kB / 0.7471 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/2.237, allocations: 52.83 kB / 0.7471 GB, free: 194.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.37e-05/2.237, allocations: 349.2 kB / 0.7475 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.962e-05/2.237, allocations: 88.28 kB / 0.7476 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/2.237, allocations: 137 kB / 0.7477 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/2.237, allocations: 255.9 kB / 0.7479 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/2.237, allocations: 0 / 0.7479 GB, free: 194.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000374/2.238, allocations: 333.4 kB / 0.7482 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/2.238, allocations: 10.47 kB / 0.7483 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/2.238, allocations: 0 / 0.7483 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/2.239, allocations: 138.8 kB / 0.7484 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.603e-05/2.239, allocations: 15.8 kB / 0.7484 GB, free: 194.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003963/2.239, allocations: 0.611 MB / 0.749 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/2.239, allocations: 35 kB / 0.749 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/2.239, allocations: 3.938 kB / 0.749 GB, free: 193.7 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.0001116/2.239, allocations: 163.9 kB / 0.7492 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/2.239, allocations: 38.98 kB / 0.7492 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006269/2.24, allocations: 0.6262 MB / 0.7498 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003481/2.24, allocations: 253.3 kB / 0.7501 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/2.24, allocations: 2.219 kB / 0.7501 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/2.24, allocations: 0 / 0.7501 GB, free: 193.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008276/2.241, allocations: 0.8124 MB / 0.7509 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/2.241, allocations: 6.344 kB / 0.7509 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.1e-05/2.241, allocations: 27.06 kB / 0.7509 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003093/2.241, allocations: 97.23 kB / 0.751 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/2.241, allocations: 10.36 kB / 0.751 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003629/2.242, allocations: 0.6365 MB / 0.7516 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/2.242, allocations: 0 / 0.7516 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/2.242, allocations: 380.7 kB / 0.752 GB, free: 192 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/2.242, allocations: 119.6 kB / 0.7521 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/2.242, allocations: 13.3 kB / 0.7521 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/2.242, allocations: 2.188 kB / 0.7521 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/2.242, allocations: 18.02 kB / 0.7521 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/2.242, allocations: 5.375 kB / 0.7522 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002737/2.243, allocations: 334.2 kB / 0.7525 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/2.243, allocations: 0 / 0.7525 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002597/2.245, allocations: 1.228 MB / 0.7537 GB, free: 191 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.004372/2.25, allocations: 2.574 MB / 0.7562 GB, free: 188.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005258/2.25, allocations: 268.2 kB / 0.7564 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/2.25, allocations: 0 / 0.7564 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002466/2.251, allocations: 106 kB / 0.7565 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/2.251, allocations: 140.7 kB / 0.7567 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/2.255, allocations: 3.734 MB / 0.7603 GB, free: 185 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/2.255, allocations: 0.8029 MB / 0.7611 GB, free: 184.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.249e-05/2.255, allocations: 35.8 kB / 0.7611 GB, free: 184.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/2.255, allocations: 127.4 kB / 0.7613 GB, free: 184 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/2.255, allocations: 0 / 0.7613 GB, free: 184 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07338/2.329, allocations: 49.31 MB / 0.8094 GB, free: 135.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/16.21, allocations: 8.859 kB / 0.8094 GB, free: 135.5 MB / 0.5919 GB " [Timeout remaining time 644] (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: 18.264771301997826] Failed to read output from testmodel.py, exit status != 0: 16.483527728007175 16.492554403 14.645217357 Calling exit ...