Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.8854/0.8854, allocations: 150.9 MB / 166.4 MB, free: 14.3 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003914/0.0003919, allocations: 19.97 kB / 204.6 MB, free: 9.547 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.148, allocations: 31.33 MB / 236 MB, free: 5.418 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.658/1.806, allocations: 294.8 MB / 0.5183 GB, free: 12.94 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03853/1.845, allocations: 35.08 MB / 0.5526 GB, free: 9.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002586/1.845, allocations: 4 kB / 0.5526 GB, free: 9.977 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.0005805/1.846, allocations: 268.3 kB / 0.5528 GB, free: 9.715 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004067/1.846, allocations: 258.9 kB / 0.5531 GB, free: 9.461 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.02561/1.872, allocations: 9.825 MB / 0.5627 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007627/1.873, allocations: 0.4909 MB / 0.5632 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003277/1.873, allocations: 185 kB / 0.5633 GB, free: 14.96 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004952/1.873, allocations: 231.2 kB / 0.5636 GB, free: 14.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/1.874, allocations: 303.1 kB / 0.5639 GB, free: 14.44 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.169e-05/1.874, allocations: 24 kB / 0.5639 GB, free: 14.41 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03425/1.908, allocations: 17.81 MB / 0.5813 GB, free: 12.58 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/1.909, allocations: 171.4 kB / 0.5814 GB, free: 12.41 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003262/1.909, allocations: 286.2 kB / 0.5817 GB, free: 12.13 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01945/1.928, allocations: 8.858 MB / 0.5904 GB, free: 3.25 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/1.928, allocations: 0 / 0.5904 GB, free: 3.25 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.114e-06/1.928, allocations: 3.938 kB / 0.5904 GB, free: 3.246 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.636e-05/1.928, allocations: 4 kB / 0.5904 GB, free: 3.242 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.00474/1.933, allocations: 1.816 MB / 0.5921 GB, free: 1.375 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/1.933, allocations: 8.031 kB / 0.5921 GB, free: 1.367 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.208e-05/1.933, allocations: 70.53 kB / 0.5922 GB, free: 1.289 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/1.933, allocations: 71.16 kB / 0.5923 GB, free: 1.219 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/1.934, allocations: 0.4916 MB / 0.5928 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/1.934, allocations: 16.56 kB / 0.5928 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/1.934, allocations: 27.94 kB / 0.5928 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006049/1.935, allocations: 429.3 kB / 0.5932 GB, free: 192 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/1.935, allocations: 0 / 0.5932 GB, free: 192 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/1.935, allocations: 12 kB / 0.5932 GB, free: 180 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/1.935, allocations: 15.98 kB / 0.5932 GB, free: 164 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000459/1.935, allocations: 345.7 kB / 0.5936 GB, free: 15.82 MB / 494.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.04063/1.976, allocations: 18.58 MB / 0.6117 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006811/1.977, allocations: 174.5 kB / 0.6119 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/1.977, allocations: 105.5 kB / 0.612 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1633/2.14, allocations: 77.47 MB / 0.6876 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/2.14, allocations: 34.56 kB / 0.6877 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.354e-06/2.14, allocations: 0 / 0.6877 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001932/2.142, allocations: 0.5956 MB / 0.6883 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/2.142, allocations: 106.8 kB / 0.6884 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/2.144, allocations: 1.004 MB / 0.6893 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/2.144, allocations: 29.7 kB / 0.6894 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/2.144, allocations: 308.1 kB / 0.6897 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/2.144, allocations: 122.1 kB / 0.6898 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/2.144, allocations: 65.59 kB / 0.6898 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001596/2.144, allocations: 382.7 kB / 0.6902 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/2.145, allocations: 160.4 kB / 0.6904 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/2.145, allocations: 239.1 kB / 0.6906 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/2.145, allocations: 332.7 kB / 0.6909 GB, free: 1.312 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/2.145, allocations: 4 kB / 0.6909 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007781/2.146, allocations: 0.5384 MB / 0.6914 GB, free: 0.7617 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/2.146, allocations: 4 kB / 0.6914 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/2.146, allocations: 0 / 0.6914 GB, free: 0.7578 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/2.148, allocations: 228.8 kB / 0.6916 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.348e-05/2.148, allocations: 19.94 kB / 0.6917 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1767/2.325, allocations: 0.6718 MB / 0.6923 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/2.325, allocations: 42 kB / 0.6924 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/2.325, allocations: 11.78 kB / 0.6924 GB, free: 225.4 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.0002923/2.325, allocations: 251.1 kB / 0.6926 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/2.326, allocations: 64.94 kB / 0.6927 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008211/2.326, allocations: 0.6969 MB / 0.6934 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003327/2.327, allocations: 250.5 kB / 0.6936 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/2.327, allocations: 3.031 kB / 0.6936 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/2.327, allocations: 1.172 kB / 0.6936 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/2.328, allocations: 0.9852 MB / 0.6946 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/2.328, allocations: 0 / 0.6946 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/2.328, allocations: 18.59 kB / 0.6946 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000994/2.329, allocations: 187.5 kB / 0.6948 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/2.329, allocations: 5.906 kB / 0.6948 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005838/2.33, allocations: 0.6961 MB / 0.6954 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.33, allocations: 3.859 kB / 0.6954 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004908/2.33, allocations: 421.5 kB / 0.6958 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/2.33, allocations: 167.8 kB / 0.696 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.649e-05/2.33, allocations: 17.81 kB / 0.696 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/2.331, allocations: 10.86 kB / 0.696 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.498e-05/2.331, allocations: 12.09 kB / 0.696 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/2.331, allocations: 9.266 kB / 0.6961 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00105/2.332, allocations: 0.8097 MB / 0.6968 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/2.332, allocations: 3.094 kB / 0.6969 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003801/2.336, allocations: 1.256 MB / 0.6981 GB, free: 223.7 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.005559/2.341, allocations: 2.63 MB / 0.7006 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007713/2.342, allocations: 366.5 kB / 0.701 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/2.342, allocations: 1 kB / 0.701 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003007/2.342, allocations: 111.5 kB / 0.7011 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009388/2.343, allocations: 154.7 kB / 0.7013 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007752/2.351, allocations: 6.224 MB / 0.7073 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/2.351, allocations: 0.9317 MB / 0.7082 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001975/2.352, allocations: 59.56 kB / 0.7083 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/2.352, allocations: 231.9 kB / 0.7085 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of SimCode: time 5.81e-07/2.352, allocations: 0 / 0.7085 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08214/2.434, allocations: 54.2 MB / 0.7614 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.11/15.55, allocations: 7.703 kB / 0.7615 GB, free: 181.8 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)