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: translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8081/0.8081, allocations: 150.9 MB / 167.1 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003237/0.0003237, allocations: 15.97 kB / 205.9 MB, free: 9.078 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1262, allocations: 31.33 MB / 237.3 MB, free: 5.727 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.566/1.692, allocations: 294.6 MB / 0.5194 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03882/1.731, allocations: 35.08 MB / 0.5536 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/1.732, allocations: 4 kB / 0.5536 GB, free: 10.2 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.0005129/1.732, allocations: 276.3 kB / 0.5539 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003181/1.732, allocations: 262.8 kB / 0.5541 GB, free: 9.672 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.02264/1.755, allocations: 9.824 MB / 0.5637 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006725/1.756, allocations: 494.8 kB / 0.5642 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002787/1.756, allocations: 181.8 kB / 0.5644 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/1.756, allocations: 243.1 kB / 0.5646 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/1.757, allocations: 299.1 kB / 0.5649 GB, free: 14.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/1.757, allocations: 24 kB / 0.5649 GB, free: 14.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02861/1.785, allocations: 18.04 MB / 0.5825 GB, free: 12.56 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/1.786, allocations: 183.3 kB / 0.5827 GB, free: 12.38 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/1.786, allocations: 266.3 kB / 0.583 GB, free: 12.12 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01731/1.803, allocations: 8.862 MB / 0.5916 GB, free: 3.234 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/1.803, allocations: 4 kB / 0.5916 GB, free: 3.23 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.633e-06/1.803, allocations: 0 / 0.5916 GB, free: 3.23 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/1.803, allocations: 4 kB / 0.5916 GB, free: 3.227 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.00404/1.807, allocations: 1.819 MB / 0.5934 GB, free: 1.355 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/1.807, allocations: 8.031 kB / 0.5934 GB, free: 1.348 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/1.807, allocations: 67.16 kB / 0.5935 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005763/1.808, allocations: 491.9 kB / 0.5939 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.047e-05/1.808, allocations: 16.56 kB / 0.594 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/1.808, allocations: 24 kB / 0.594 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/1.809, allocations: 437.2 kB / 0.5944 GB, free: 264 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/1.809, allocations: 4 kB / 0.5944 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/1.809, allocations: 15.98 kB / 0.5944 GB, free: 244 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/1.809, allocations: 12 kB / 0.5944 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/1.809, allocations: 345.8 kB / 0.5948 GB, free: 15.88 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.03771/1.847, allocations: 18.69 MB / 0.613 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005925/1.848, allocations: 172.1 kB / 0.6132 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/1.848, allocations: 108.8 kB / 0.6133 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1527/2, allocations: 77.93 MB / 0.6894 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/2, allocations: 34.55 kB / 0.6894 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.315e-06/2, allocations: 7.938 kB / 0.6894 GB, free: 4.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001877/2.002, allocations: 0.5854 MB / 0.69 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.38e-05/2.002, allocations: 102.8 kB / 0.6901 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/2.004, allocations: 1 MB / 0.6911 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/2.004, allocations: 29.7 kB / 0.6911 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/2.004, allocations: 304.1 kB / 0.6914 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.932e-05/2.004, allocations: 126.1 kB / 0.6915 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/2.004, allocations: 65.59 kB / 0.6916 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001527/2.004, allocations: 386.6 kB / 0.6919 GB, free: 1.582 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/2.005, allocations: 156.4 kB / 0.6921 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/2.005, allocations: 247.1 kB / 0.6923 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/2.005, allocations: 332.7 kB / 0.6926 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/2.005, allocations: 0 / 0.6926 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007789/2.006, allocations: 0.5346 MB / 0.6932 GB, free: 272 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/2.006, allocations: 8 kB / 0.6932 GB, free: 264 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/2.006, allocations: 4.219 kB / 0.6932 GB, free: 260 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/2.008, allocations: 216.5 kB / 0.6934 GB, free: 40 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.27e-05/2.008, allocations: 23.92 kB / 0.6934 GB, free: 16 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1482/2.156, allocations: 0.675 MB / 0.6941 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/2.156, allocations: 40.58 kB / 0.6941 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/2.156, allocations: 13.69 kB / 0.6941 GB, free: 225.3 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.0002534/2.157, allocations: 252.6 kB / 0.6944 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.407e-05/2.157, allocations: 65.62 kB / 0.6944 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006791/2.157, allocations: 0.6956 MB / 0.6951 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003376/2.158, allocations: 249 kB / 0.6953 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/2.158, allocations: 0 / 0.6953 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/2.158, allocations: 2.859 kB / 0.6953 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/2.159, allocations: 0.976 MB / 0.6963 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/2.159, allocations: 3.109 kB / 0.6963 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.867e-05/2.159, allocations: 14.66 kB / 0.6963 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009286/2.16, allocations: 185.6 kB / 0.6965 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/2.16, allocations: 7.094 kB / 0.6965 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004797/2.16, allocations: 0.7008 MB / 0.6972 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/2.16, allocations: 3.375 kB / 0.6972 GB, free: 224 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/2.161, allocations: 420.1 kB / 0.6976 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/2.161, allocations: 172.2 kB / 0.6977 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/2.161, allocations: 13.94 kB / 0.6978 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/2.161, allocations: 8.766 kB / 0.6978 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/2.161, allocations: 17.94 kB / 0.6978 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/2.161, allocations: 6.047 kB / 0.6978 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008297/2.162, allocations: 0.8111 MB / 0.6986 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.162, allocations: 1.719 kB / 0.6986 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002976/2.165, allocations: 1.257 MB / 0.6998 GB, free: 223.6 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.004565/2.17, allocations: 1.788 MB / 0.7016 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007142/2.171, allocations: 360.7 kB / 0.7019 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/2.171, allocations: 0 / 0.7019 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002606/2.171, allocations: 111.5 kB / 0.702 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.0008185/2.172, allocations: 146.8 kB / 0.7021 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/2.173, allocations: 1.107 MB / 0.7032 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/2.173, allocations: 0.9388 MB / 0.7041 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001286/2.173, allocations: 61.88 kB / 0.7042 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.29e-05/2.174, allocations: 31.31 kB / 0.7042 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of SimCode: time 9.92e-07/2.174, allocations: 0 / 0.7042 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.0478/2.221, allocations: 45.57 MB / 0.7487 GB, free: 195.1 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)