Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.5797/0.5797, allocations: 120.4 MB / 139.5 MB, free: 12.98 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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 216.6 MB, free: 8.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.883e-05/2.129e-05, allocations: 2.281 kB / 216.6 MB, free: 8.703 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.TestDiaphragm): time 0.988/0.9881, allocations: 254.2 MB / 470.8 MB, free: 8.934 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.254/1.242, allocations: 30.74 MB / 0.4898 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001497/1.242, allocations: 2.125 kB / 0.4898 GB, free: 0.9414 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/Diaphragm.mo:30:3-32:42: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/Diaphragm.mo:33:3-35:37: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.0003211/1.243, allocations: 103.2 kB / 0.4899 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/1.243, allocations: 119.8 kB / 0.49 GB, free: 0.9336 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.01706/1.26, allocations: 9.847 MB / 0.4996 GB, free: 15.08 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.000409/1.26, allocations: 370.3 kB / 0.5 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/1.26, allocations: 98.19 kB / 0.5001 GB, free: 14.92 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/1.261, allocations: 227.7 kB / 0.5003 GB, free: 14.79 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/1.261, allocations: 80.36 kB / 0.5004 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.556e-05/1.261, allocations: 19.47 kB / 0.5004 GB, free: 14.75 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02182/1.283, allocations: 16.85 MB / 0.5168 GB, free: 2.984 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 7.313e-05/1.283, allocations: 51.69 kB / 0.5169 GB, free: 2.938 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/1.283, allocations: 90.09 kB / 0.517 GB, free: 2.855 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01363/1.296, allocations: 10.86 MB / 0.5276 GB, free: 8.484 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/1.296, allocations: 0 / 0.5276 GB, free: 8.484 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.296, allocations: 5.312 kB / 0.5276 GB, free: 8.48 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.802e-06/1.296, allocations: 0 / 0.5276 GB, free: 8.48 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003718/1.3, allocations: 1.431 MB / 0.529 GB, free: 7.016 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/1.3, allocations: 12.66 kB / 0.529 GB, free: 7.004 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.694e-05/1.3, allocations: 62.53 kB / 0.5291 GB, free: 6.934 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.987e-05/1.3, allocations: 28.72 kB / 0.5291 GB, free: 6.906 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/1.301, allocations: 176.1 kB / 0.5293 GB, free: 6.711 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/1.301, allocations: 18.28 kB / 0.5293 GB, free: 6.695 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.227e-05/1.301, allocations: 20 kB / 0.5293 GB, free: 6.676 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/1.301, allocations: 347.2 kB / 0.5296 GB, free: 6.301 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/1.301, allocations: 0.75 kB / 0.5296 GB, free: 6.301 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/1.301, allocations: 9.5 kB / 0.5296 GB, free: 6.293 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/1.301, allocations: 17.66 kB / 0.5296 GB, free: 6.277 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/1.301, allocations: 181.7 kB / 0.5298 GB, free: 6.098 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.01718/1.318, allocations: 10.92 MB / 0.5405 GB, free: 11.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/1.319, allocations: 122.6 kB / 0.5406 GB, free: 11.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.79e-05/1.319, allocations: 80.77 kB / 0.5407 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07071/1.389, allocations: 43.61 MB / 0.5833 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/1.389, allocations: 34.55 kB / 0.5833 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 3.577e-06/1.389, allocations: 2.297 kB / 0.5833 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0007029/1.39, allocations: 339.7 kB / 0.5836 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/1.39, allocations: 82.92 kB / 0.5837 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/1.39, allocations: 231 kB / 0.5839 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/1.39, allocations: 33.7 kB / 0.584 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/1.39, allocations: 152.7 kB / 0.5841 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/1.391, allocations: 119.6 kB / 0.5842 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.792e-05/1.391, allocations: 49.69 kB / 0.5843 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.692e-05/1.391, allocations: 338.8 kB / 0.5846 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.735e-05/1.391, allocations: 73.3 kB / 0.5847 GB, free: 13.95 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/1.391, allocations: 160.2 kB / 0.5848 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/1.391, allocations: 233.9 kB / 0.585 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.391, allocations: 4 kB / 0.585 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0002972/1.391, allocations: 302.1 kB / 0.5853 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/1.391, allocations: 7.984 kB / 0.5853 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/1.391, allocations: 4 kB / 0.5853 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008849/1.392, allocations: 142.6 kB / 0.5855 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.381e-05/1.392, allocations: 15.98 kB / 0.5855 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002676/1.395, allocations: 0.6119 MB / 0.5861 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/1.395, allocations: 31.67 kB / 0.5861 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/1.395, allocations: 4 kB / 0.5861 GB, free: 12.37 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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.0001435/1.395, allocations: 141.8 kB / 0.5863 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/1.395, allocations: 24.42 kB / 0.5863 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008924/1.396, allocations: 0.6016 MB / 0.5869 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004512/1.397, allocations: 223 kB / 0.5871 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.397, allocations: 0.5625 kB / 0.5871 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.397, allocations: 7.938 kB / 0.5871 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/1.398, allocations: 0.6721 MB / 0.5877 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/1.398, allocations: 0 / 0.5877 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.431e-05/1.398, allocations: 19.94 kB / 0.5878 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/1.398, allocations: 104.7 kB / 0.5879 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/1.398, allocations: 13.14 kB / 0.5879 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004833/1.399, allocations: 0.6324 MB / 0.5885 GB, free: 9.777 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/1.399, allocations: 7.969 kB / 0.5885 GB, free: 9.77 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004463/1.399, allocations: 336.1 kB / 0.5888 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.225e-05/1.399, allocations: 32.52 kB / 0.5889 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/1.399, allocations: 15.89 kB / 0.5889 GB, free: 9.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.976e-05/1.399, allocations: 8 kB / 0.5889 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/1.399, allocations: 16.62 kB / 0.5889 GB, free: 9.352 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/1.399, allocations: 4 kB / 0.5889 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001656/1.4, allocations: 239.1 kB / 0.5891 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/1.4, allocations: 0 / 0.5891 GB, free: 9.117 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002243/1.402, allocations: 1.231 MB / 0.5903 GB, free: 7.883 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.003941/1.406, allocations: 2.734 MB / 0.593 GB, free: 5.355 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003907/1.406, allocations: 226.4 kB / 0.5932 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.406, allocations: 0 / 0.5932 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001289/1.406, allocations: 96 kB / 0.5933 GB, free: 5.035 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/1.407, allocations: 124.8 kB / 0.5934 GB, free: 4.918 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/1.41, allocations: 3.094 MB / 0.5964 GB, free: 1.715 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/1.41, allocations: 164.7 kB / 0.5966 GB, free: 1.535 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 9.341e-05/1.41, allocations: 28.67 kB / 0.5966 GB, free: 1.508 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.989e-05/1.41, allocations: 92.47 kB / 0.5967 GB, free: 1.414 MB / 0.5261 GB Notification: Performance of SimCode: time 5.31e-07/1.41, allocations: 0 / 0.5967 GB, free: 1.414 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06395/1.474, allocations: 49.45 MB / 0.645 GB, free: 336 kB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.88/10.35, allocations: 11.94 kB / 0.645 GB, free: 324 kB / 0.573 GB " [Timeout remaining time 649] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.049791756086051] Failed to read output from testmodel.py, exit status != 0: 10.692185723222792 10.779315579 9.481252677 Calling exit ...