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.7715/0.7715, allocations: 150.9 MB / 167 MB, free: 14.27 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003149/0.0003149, allocations: 11.98 kB / 205.2 MB, free: 9.617 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1329, allocations: 31.33 MB / 236.5 MB, free: 5.453 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.487/1.62, allocations: 294.8 MB / 0.5189 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0381/1.658, allocations: 35.07 MB / 0.5531 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002313/1.658, allocations: 4 kB / 0.5531 GB, free: 10.27 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.0005058/1.659, allocations: 259.1 kB / 0.5534 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003052/1.659, allocations: 266.8 kB / 0.5536 GB, free: 9.754 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.02197/1.681, allocations: 9.823 MB / 0.5632 GB, free: 15.93 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006279/1.682, allocations: 494.8 kB / 0.5637 GB, free: 15.45 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/1.682, allocations: 185 kB / 0.5639 GB, free: 15.26 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/1.682, allocations: 239.1 kB / 0.5641 GB, free: 15.03 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/1.683, allocations: 295.1 kB / 0.5644 GB, free: 14.74 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/1.683, allocations: 24 kB / 0.5644 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02741/1.71, allocations: 17.83 MB / 0.5818 GB, free: 12.87 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/1.71, allocations: 171.4 kB / 0.582 GB, free: 12.7 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/1.711, allocations: 278.2 kB / 0.5822 GB, free: 12.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01584/1.726, allocations: 8.862 MB / 0.5909 GB, free: 3.543 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/1.727, allocations: 0 / 0.5909 GB, free: 3.543 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.793e-06/1.727, allocations: 0 / 0.5909 GB, free: 3.543 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/1.727, allocations: 0 / 0.5909 GB, free: 3.543 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.004012/1.731, allocations: 1.823 MB / 0.5927 GB, free: 1.668 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/1.731, allocations: 12.03 kB / 0.5927 GB, free: 1.656 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/1.731, allocations: 67.16 kB / 0.5927 GB, free: 1.59 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/1.731, allocations: 498.2 kB / 0.5932 GB, free: 1.059 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/1.731, allocations: 22.47 kB / 0.5932 GB, free: 1.039 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/1.731, allocations: 24 kB / 0.5933 GB, free: 1.016 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/1.732, allocations: 441.2 kB / 0.5937 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/1.732, allocations: 7.938 kB / 0.5937 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/1.732, allocations: 8 kB / 0.5937 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/1.732, allocations: 8 kB / 0.5937 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003757/1.732, allocations: 341.8 kB / 0.594 GB, free: 196 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.03619/1.768, allocations: 18.59 MB / 0.6122 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005399/1.769, allocations: 167.3 kB / 0.6123 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/1.769, allocations: 101.5 kB / 0.6124 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1432/1.912, allocations: 77.47 MB / 0.6881 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/1.912, allocations: 34.5 kB / 0.6881 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.195e-06/1.912, allocations: 8 kB / 0.6881 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.0017/1.914, allocations: 0.5878 MB / 0.6887 GB, free: 4.512 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/1.914, allocations: 110.8 kB / 0.6888 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/1.915, allocations: 0.9963 MB / 0.6898 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/1.915, allocations: 37.7 kB / 0.6898 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/1.916, allocations: 300.1 kB / 0.6901 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.219e-05/1.916, allocations: 130.1 kB / 0.6902 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.287e-05/1.916, allocations: 61.59 kB / 0.6903 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001427/1.916, allocations: 382.7 kB / 0.6906 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/1.916, allocations: 164.4 kB / 0.6908 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/1.916, allocations: 239.1 kB / 0.691 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/1.917, allocations: 340.7 kB / 0.6914 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.917, allocations: 0 / 0.6914 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006441/1.917, allocations: 0.5268 MB / 0.6919 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/1.917, allocations: 10.12 kB / 0.6919 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/1.917, allocations: 8.219 kB / 0.6919 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/1.919, allocations: 216.6 kB / 0.6921 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.462e-05/1.919, allocations: 19.98 kB / 0.6921 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005985/1.92, allocations: 0.677 MB / 0.6928 GB, free: 188 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/1.92, allocations: 43.62 kB / 0.6928 GB, free: 144 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/1.92, allocations: 15.92 kB / 0.6928 GB, free: 128 kB / 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.1481/2.068, allocations: 247.4 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/2.068, allocations: 62.16 kB / 0.6931 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007132/2.069, allocations: 0.7011 MB / 0.6938 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002866/2.069, allocations: 253.3 kB / 0.6941 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.069, allocations: 1.25 kB / 0.6941 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/2.069, allocations: 2.188 kB / 0.6941 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009764/2.07, allocations: 0.9786 MB / 0.695 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/2.07, allocations: 2.219 kB / 0.695 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.098e-05/2.07, allocations: 16.56 kB / 0.695 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008381/2.071, allocations: 182.8 kB / 0.6952 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/2.071, allocations: 7.844 kB / 0.6952 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004498/2.072, allocations: 0.7038 MB / 0.6959 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/2.072, allocations: 1.5 kB / 0.6959 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003909/2.072, allocations: 411.8 kB / 0.6963 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/2.072, allocations: 177 kB / 0.6965 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.241e-05/2.072, allocations: 13.28 kB / 0.6965 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/2.072, allocations: 13.86 kB / 0.6965 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/2.072, allocations: 10.7 kB / 0.6965 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/2.073, allocations: 10.62 kB / 0.6965 GB, free: 224.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007935/2.073, allocations: 0.8133 MB / 0.6973 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.4e-07/2.073, allocations: 0 / 0.6973 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002782/2.076, allocations: 1.254 MB / 0.6985 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.004008/2.08, allocations: 1.783 MB / 0.7003 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006416/2.081, allocations: 368.1 kB / 0.7006 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.081, allocations: 0 / 0.7006 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002547/2.081, allocations: 111.4 kB / 0.7007 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007797/2.082, allocations: 154.5 kB / 0.7009 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/2.083, allocations: 1.179 MB / 0.702 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/2.083, allocations: 0.9375 MB / 0.7029 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/2.083, allocations: 33 kB / 0.703 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/2.083, allocations: 2.906 kB / 0.703 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.03272/2.116, allocations: 29.86 MB / 0.7321 GB, free: 211.3 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)