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.8137/0.8137, allocations: 153.8 MB / 172.7 MB, free: 4.867 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.0004989/0.0004989, allocations: 15.98 kB / 249.7 MB, free: 4.441 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1736, allocations: 33.36 MB / 283.1 MB, free: 1.738 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.816/1.989, allocations: 307.5 MB / 0.5768 GB, free: 17.41 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03192/2.021, allocations: 30.82 MB / 0.6069 GB, free: 2.691 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003425/2.021, allocations: 2.938 kB / 0.6069 GB, free: 2.691 MB / 478.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.0005328/2.022, allocations: 154.7 kB / 0.607 GB, free: 2.645 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002915/2.022, allocations: 175.7 kB / 0.6072 GB, free: 2.555 MB / 478.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.02717/2.049, allocations: 9.846 MB / 0.6168 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000892/2.05, allocations: 390.3 kB / 0.6172 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/2.051, allocations: 120.7 kB / 0.6173 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003316/2.051, allocations: 171.3 kB / 0.6174 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/2.051, allocations: 167.3 kB / 0.6176 GB, free: 11.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.5e-05/2.051, allocations: 22.12 kB / 0.6176 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03545/2.087, allocations: 16.83 MB / 0.6341 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000191/2.087, allocations: 79.64 kB / 0.6341 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002331/2.087, allocations: 123.3 kB / 0.6343 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02266/2.11, allocations: 8.552 MB / 0.6426 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/2.11, allocations: 8 kB / 0.6426 GB, free: 2 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.274e-06/2.11, allocations: 0 / 0.6426 GB, free: 2 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.449e-05/2.11, allocations: 0 / 0.6426 GB, free: 2 MB / 0.4981 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.004261/2.114, allocations: 1.5 MB / 0.6441 GB, free: 472 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/2.114, allocations: 8.031 kB / 0.6441 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.726e-05/2.114, allocations: 63.59 kB / 0.6441 GB, free: 392 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.122e-05/2.114, allocations: 44.47 kB / 0.6442 GB, free: 348 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/2.115, allocations: 235.9 kB / 0.6444 GB, free: 88 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/2.115, allocations: 17.05 kB / 0.6444 GB, free: 72 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/2.115, allocations: 20 kB / 0.6444 GB, free: 52 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/2.115, allocations: 327.4 kB / 0.6448 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/2.115, allocations: 4 kB / 0.6448 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/2.115, allocations: 4.516 kB / 0.6448 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/2.115, allocations: 19.92 kB / 0.6448 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003083/2.115, allocations: 206.2 kB / 0.645 GB, free: 15.48 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.0358/2.151, allocations: 10.94 MB / 0.6557 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/2.152, allocations: 128.6 kB / 0.6558 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001217/2.152, allocations: 89.7 kB / 0.6559 GB, free: 4.25 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1482/2.3, allocations: 43.58 MB / 0.6984 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/2.3, allocations: 38.56 kB / 0.6985 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.154e-06/2.3, allocations: 0 / 0.6985 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001167/2.301, allocations: 432.3 kB / 0.6989 GB, free: 8.148 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/2.301, allocations: 51.41 kB / 0.6989 GB, free: 8.086 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/2.301, allocations: 364.4 kB / 0.6993 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/2.301, allocations: 25.7 kB / 0.6993 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/2.302, allocations: 193.4 kB / 0.6995 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.153e-05/2.302, allocations: 115 kB / 0.6996 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.353e-05/2.302, allocations: 45.69 kB / 0.6996 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001804/2.302, allocations: 350.8 kB / 0.7 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/2.302, allocations: 87.97 kB / 0.7001 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/2.302, allocations: 140.2 kB / 0.7002 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/2.303, allocations: 252.7 kB / 0.7004 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/2.303, allocations: 4 kB / 0.7004 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005767/2.303, allocations: 350.2 kB / 0.7008 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/2.303, allocations: 4 kB / 0.7008 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/2.303, allocations: 0.75 kB / 0.7008 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000781/2.304, allocations: 141.5 kB / 0.7009 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.337e-05/2.304, allocations: 19.92 kB / 0.7009 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006145/2.305, allocations: 0.6077 MB / 0.7015 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/2.305, allocations: 28.98 kB / 0.7015 GB, free: 5.305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/2.305, allocations: 4 kB / 0.7016 GB, free: 5.301 MB / 0.5606 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.000186/2.305, allocations: 174.8 kB / 0.7017 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/2.305, allocations: 35.2 kB / 0.7018 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008732/2.306, allocations: 0.6357 MB / 0.7024 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004334/2.306, allocations: 258.3 kB / 0.7026 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.306, allocations: 0 / 0.7026 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/2.306, allocations: 4 kB / 0.7026 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/2.308, allocations: 0.7564 MB / 0.7034 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/2.308, allocations: 0 / 0.7034 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.347e-05/2.308, allocations: 15.94 kB / 0.7034 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003414/2.308, allocations: 107.9 kB / 0.7035 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/2.308, allocations: 5.156 kB / 0.7035 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005846/2.309, allocations: 0.6499 MB / 0.7041 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/2.309, allocations: 0.8594 kB / 0.7041 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005383/2.309, allocations: 385.7 kB / 0.7045 GB, free: 2.113 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.242e-05/2.309, allocations: 47.67 kB / 0.7045 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/2.309, allocations: 13.02 kB / 0.7045 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/2.309, allocations: 0 / 0.7045 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.245e-05/2.309, allocations: 12.86 kB / 0.7046 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/2.309, allocations: 8.062 kB / 0.7046 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003849/2.31, allocations: 339.1 kB / 0.7049 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.31, allocations: 0 / 0.7049 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003438/2.313, allocations: 1.22 MB / 0.7061 GB, free: 492 kB / 0.5606 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.005674/2.319, allocations: 2.589 MB / 0.7086 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006893/2.32, allocations: 257.5 kB / 0.7089 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/2.32, allocations: 0 / 0.7089 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002853/2.32, allocations: 104.2 kB / 0.709 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007757/2.321, allocations: 128.7 kB / 0.7091 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005391/2.326, allocations: 3.733 MB / 0.7127 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/2.326, allocations: 197.1 kB / 0.7129 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001228/2.326, allocations: 38.34 kB / 0.7129 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/2.326, allocations: 123.4 kB / 0.7131 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of SimCode: time 4.71e-07/2.326, allocations: 1.969 kB / 0.7131 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09499/2.421, allocations: 50.03 MB / 0.7619 GB, free: 7.914 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/16.99, allocations: 13.19 kB / 0.7619 GB, free: 7.902 MB / 0.6231 GB " [Timeout remaining time 642] (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: 19.137636529281735] Failed to read output from testmodel.py, exit status != 0: 17.533310850616544 17.543872266 15.431683246 Calling exit ...