Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8315/0.8315, allocations: 150.9 MB / 166.4 MB, free: 14.23 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 15.97 kB / 204.6 MB, free: 9.539 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1684, allocations: 31.33 MB / 236 MB, free: 5.539 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestBend): time 1.643/1.812, allocations: 294.9 MB / 0.5184 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04078/1.853, allocations: 35.08 MB / 0.5526 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002653/1.853, allocations: 3.938 kB / 0.5526 GB, free: 10.23 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57: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 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43: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.0005597/1.854, allocations: 280.1 kB / 0.5529 GB, free: 9.953 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003162/1.854, allocations: 254.9 kB / 0.5532 GB, free: 9.703 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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 4.0.0-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.02386/1.878, allocations: 9.821 MB / 0.5627 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007317/1.879, allocations: 0.491 MB / 0.5632 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/1.879, allocations: 188.3 kB / 0.5634 GB, free: 15.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/1.879, allocations: 235.1 kB / 0.5636 GB, free: 14.97 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003019/1.879, allocations: 299.1 kB / 0.5639 GB, free: 14.68 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/1.879, allocations: 24 kB / 0.5639 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03239/1.912, allocations: 17.82 MB / 0.5813 GB, free: 12.82 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002779/1.912, allocations: 179.4 kB / 0.5815 GB, free: 12.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000339/1.913, allocations: 274.2 kB / 0.5818 GB, free: 12.37 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02346/1.936, allocations: 8.862 MB / 0.5904 GB, free: 3.488 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/1.936, allocations: 0 / 0.5904 GB, free: 3.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.654e-06/1.936, allocations: 0 / 0.5904 GB, free: 3.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/1.936, allocations: 0 / 0.5904 GB, free: 3.488 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00496/1.941, allocations: 1.815 MB / 0.5922 GB, free: 1.621 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/1.941, allocations: 16.02 kB / 0.5922 GB, free: 1.605 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/1.941, allocations: 70.53 kB / 0.5923 GB, free: 1.527 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/1.941, allocations: 67.77 kB / 0.5923 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005357/1.942, allocations: 498.2 kB / 0.5928 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/1.942, allocations: 20.56 kB / 0.5928 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/1.942, allocations: 27.94 kB / 0.5929 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/1.942, allocations: 433.2 kB / 0.5933 GB, free: 436 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/1.943, allocations: 1.406 kB / 0.5933 GB, free: 436 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/1.943, allocations: 12 kB / 0.5933 GB, free: 424 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.195e-05/1.943, allocations: 11.98 kB / 0.5933 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/1.943, allocations: 345.7 kB / 0.5936 GB, free: 64 kB / 478.1 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.03731/1.98, allocations: 18.58 MB / 0.6118 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/1.981, allocations: 171.8 kB / 0.6119 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/1.981, allocations: 113.5 kB / 0.612 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1517/2.133, allocations: 77.46 MB / 0.6877 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/2.133, allocations: 42.56 kB / 0.6877 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.605e-06/2.133, allocations: 0 / 0.6877 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001961/2.135, allocations: 0.5917 MB / 0.6883 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/2.135, allocations: 102.8 kB / 0.6884 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/2.136, allocations: 1.012 MB / 0.6894 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/2.136, allocations: 29.7 kB / 0.6894 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/2.137, allocations: 300.2 kB / 0.6897 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/2.137, allocations: 122.1 kB / 0.6898 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/2.137, allocations: 69.58 kB / 0.6899 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001682/2.137, allocations: 382.7 kB / 0.6903 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/2.137, allocations: 156.4 kB / 0.6904 GB, free: 2.168 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/2.138, allocations: 239.1 kB / 0.6906 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003892/2.138, allocations: 336.7 kB / 0.691 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.138, allocations: 0 / 0.691 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000811/2.139, allocations: 0.5384 MB / 0.6915 GB, free: 1.004 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/2.139, allocations: 4.219 kB / 0.6915 GB, free: 1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/2.139, allocations: 8 kB / 0.6915 GB, free: 0.9922 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001583/2.14, allocations: 216.6 kB / 0.6917 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.632e-05/2.141, allocations: 27.92 kB / 0.6917 GB, free: 0.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006508/2.141, allocations: 0.6749 MB / 0.6924 GB, free: 52 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/2.141, allocations: 43.62 kB / 0.6924 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1835/2.325, allocations: 10.11 kB / 0.6924 GB, free: 225.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004573/2.325, allocations: 249.6 kB / 0.6927 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/2.326, allocations: 63.38 kB / 0.6927 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008553/2.327, allocations: 0.6946 MB / 0.6934 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003307/2.327, allocations: 251 kB / 0.6937 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/2.327, allocations: 2.688 kB / 0.6937 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/2.327, allocations: 4.172 kB / 0.6937 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/2.328, allocations: 0.9826 MB / 0.6946 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/2.328, allocations: 0 / 0.6946 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/2.328, allocations: 16.27 kB / 0.6946 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009124/2.329, allocations: 183.4 kB / 0.6948 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/2.329, allocations: 5.328 kB / 0.6948 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005194/2.33, allocations: 0.7013 MB / 0.6955 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.33, allocations: 0 / 0.6955 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/2.33, allocations: 418.2 kB / 0.6959 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001592/2.33, allocations: 178.2 kB / 0.6961 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/2.33, allocations: 13.2 kB / 0.6961 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/2.331, allocations: 8.5 kB / 0.6961 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/2.331, allocations: 14.45 kB / 0.6961 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/2.331, allocations: 6.672 kB / 0.6961 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008879/2.332, allocations: 0.8145 MB / 0.6969 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/2.332, allocations: 0 / 0.6969 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003606/2.335, allocations: 1.256 MB / 0.6981 GB, free: 224.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005311/2.34, allocations: 2.643 MB / 0.7007 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006756/2.341, allocations: 358.1 kB / 0.7011 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/2.341, allocations: 0 / 0.7011 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002583/2.341, allocations: 120.5 kB / 0.7012 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/2.342, allocations: 150.2 kB / 0.7013 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006457/2.349, allocations: 6.229 MB / 0.7074 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/2.349, allocations: 0.9335 MB / 0.7083 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001852/2.349, allocations: 60.52 kB / 0.7084 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/2.349, allocations: 231.8 kB / 0.7086 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/2.349, allocations: 0 / 0.7086 GB, free: 220.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08231/2.432, allocations: 54.16 MB / 0.7615 GB, free: 182.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.38/15.81, allocations: 15.03 kB / 0.7615 GB, free: 182.2 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend_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_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)