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.8188/0.8188, allocations: 150.8 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003425, allocations: 19.97 kB / 204.2 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1759, allocations: 31.33 MB / 235.6 MB, free: 5.414 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.641/1.817, allocations: 293.8 MB / 0.5169 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03878/1.855, allocations: 35.29 MB / 0.5514 GB, free: 10.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/1.856, allocations: 0 / 0.5514 GB, free: 10.36 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.0005557/1.856, allocations: 260 kB / 0.5517 GB, free: 10.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003143/1.857, allocations: 243 kB / 0.5519 GB, free: 9.871 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.02311/1.88, allocations: 8.616 MB / 0.5603 GB, free: 1.254 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006906/1.88, allocations: 0.491 MB / 0.5608 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/1.881, allocations: 180.4 kB / 0.561 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000304/1.881, allocations: 235.1 kB / 0.5612 GB, free: 364 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/1.881, allocations: 303.1 kB / 0.5615 GB, free: 60 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/1.881, allocations: 24 kB / 0.5615 GB, free: 36 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02814/1.91, allocations: 17.91 MB / 0.579 GB, free: 14.11 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002277/1.91, allocations: 183.3 kB / 0.5792 GB, free: 13.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002758/1.91, allocations: 274.2 kB / 0.5794 GB, free: 13.66 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02105/1.931, allocations: 8.877 MB / 0.5881 GB, free: 4.758 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/1.931, allocations: 0 / 0.5881 GB, free: 4.758 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.024e-06/1.931, allocations: 0 / 0.5881 GB, free: 4.758 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/1.931, allocations: 0 / 0.5881 GB, free: 4.758 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.005145/1.936, allocations: 1.823 MB / 0.5899 GB, free: 2.883 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/1.936, allocations: 12.03 kB / 0.5899 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.713e-05/1.937, allocations: 66.53 kB / 0.5899 GB, free: 2.797 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/1.937, allocations: 71.14 kB / 0.59 GB, free: 2.727 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/1.937, allocations: 490.2 kB / 0.5905 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/1.937, allocations: 20.56 kB / 0.5905 GB, free: 2.18 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/1.937, allocations: 32.81 kB / 0.5905 GB, free: 2.148 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/1.938, allocations: 433.3 kB / 0.5909 GB, free: 1.691 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/1.938, allocations: 0 / 0.5909 GB, free: 1.691 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.842e-05/1.938, allocations: 12 kB / 0.591 GB, free: 1.68 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/1.938, allocations: 15.98 kB / 0.591 GB, free: 1.664 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003983/1.938, allocations: 341.7 kB / 0.5913 GB, free: 1.328 MB / 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.0364/1.975, allocations: 18.58 MB / 0.6094 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006909/1.975, allocations: 181.5 kB / 0.6096 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/1.976, allocations: 105.5 kB / 0.6097 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1421/2.118, allocations: 77.46 MB / 0.6854 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/2.118, allocations: 34.56 kB / 0.6854 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.004e-06/2.118, allocations: 0 / 0.6854 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001793/2.12, allocations: 0.5995 MB / 0.686 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/2.12, allocations: 106.8 kB / 0.6861 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/2.121, allocations: 1.008 MB / 0.6871 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/2.121, allocations: 25.7 kB / 0.6871 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002286/2.121, allocations: 296.1 kB / 0.6874 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/2.121, allocations: 130.1 kB / 0.6875 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-05/2.121, allocations: 65.59 kB / 0.6876 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001447/2.122, allocations: 386.7 kB / 0.6879 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/2.122, allocations: 156.4 kB / 0.6881 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/2.122, allocations: 239.1 kB / 0.6883 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003625/2.122, allocations: 336.7 kB / 0.6886 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/2.122, allocations: 0 / 0.6886 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007106/2.123, allocations: 0.5308 MB / 0.6891 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/2.123, allocations: 4 kB / 0.6891 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/2.123, allocations: 4 kB / 0.6892 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/2.125, allocations: 218.2 kB / 0.6894 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.031e-05/2.125, allocations: 27.92 kB / 0.6894 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000601/2.125, allocations: 0.6732 MB / 0.69 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000235/2.126, allocations: 43.56 kB / 0.6901 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/2.126, allocations: 8 kB / 0.6901 GB, free: 1.273 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.0002326/2.126, allocations: 253.7 kB / 0.6903 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.569e-05/2.126, allocations: 63.16 kB / 0.6904 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007504/2.127, allocations: 0.7135 MB / 0.6911 GB, free: 168 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1406/2.267, allocations: 242.7 kB / 0.6913 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/2.267, allocations: 0 / 0.6913 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/2.267, allocations: 0.6094 kB / 0.6913 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/2.269, allocations: 0.9838 MB / 0.6923 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/2.269, allocations: 3.094 kB / 0.6923 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.462e-05/2.269, allocations: 17.28 kB / 0.6923 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009339/2.27, allocations: 185.9 kB / 0.6925 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/2.27, allocations: 5.766 kB / 0.6925 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004598/2.27, allocations: 0.7016 MB / 0.6932 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/2.27, allocations: 3.547 kB / 0.6932 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004053/2.271, allocations: 419.9 kB / 0.6936 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/2.271, allocations: 168.1 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.682e-05/2.271, allocations: 12.94 kB / 0.6937 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/2.271, allocations: 12.16 kB / 0.6938 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/2.271, allocations: 10.08 kB / 0.6938 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/2.271, allocations: 10 kB / 0.6938 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007871/2.272, allocations: 0.8084 MB / 0.6946 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.272, allocations: 0 / 0.6946 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003033/2.275, allocations: 1.252 MB / 0.6958 GB, free: 225.1 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.005542/2.281, allocations: 2.708 MB / 0.6984 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006462/2.281, allocations: 356.7 kB / 0.6988 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.281, allocations: 4.062 kB / 0.6988 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002479/2.282, allocations: 111.8 kB / 0.6989 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007935/2.282, allocations: 153.7 kB / 0.699 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/2.289, allocations: 6.38 MB / 0.7053 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/2.29, allocations: 0.9368 MB / 0.7062 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001794/2.29, allocations: 58.66 kB / 0.7062 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/2.29, allocations: 227.7 kB / 0.7065 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of SimCode: time 6.52e-07/2.29, allocations: 0 / 0.7065 GB, free: 221.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06603/2.356, allocations: 54.44 MB / 0.7596 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000129/2.356, allocations: 221.5 kB / 0.7598 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.153/6.509, allocations: 7.938 kB / 0.7598 GB, free: 182.9 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)