Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7747/0.7747, allocations: 150.9 MB / 166.7 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003235, allocations: 23.97 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1605, allocations: 31.33 MB / 236.1 MB, free: 5.457 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.TestPipePressureLoss): time 1.511/1.672, allocations: 293.5 MB / 0.5172 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03646/1.708, allocations: 34.64 MB / 0.5511 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/1.709, allocations: 0 / 0.5511 GB, free: 11.21 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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40:37: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.0003503/1.709, allocations: 92.59 kB / 0.5512 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/1.709, allocations: 91.3 kB / 0.5512 GB, free: 11.03 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.02152/1.731, allocations: 8.393 MB / 0.5594 GB, free: 2.637 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/1.731, allocations: 342.4 kB / 0.5598 GB, free: 2.301 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/1.731, allocations: 114.7 kB / 0.5599 GB, free: 2.195 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002336/1.732, allocations: 143.3 kB / 0.56 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/1.732, allocations: 111.4 kB / 0.5601 GB, free: 1.945 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.594e-05/1.732, allocations: 16 kB / 0.5601 GB, free: 1.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0263/1.758, allocations: 17.76 MB / 0.5775 GB, free: 152 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/1.758, allocations: 47.8 kB / 0.5775 GB, free: 104 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/1.758, allocations: 127.4 kB / 0.5776 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/1.769, allocations: 5.704 MB / 0.5832 GB, free: 10.26 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/1.769, allocations: 0 / 0.5832 GB, free: 10.26 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.833e-06/1.769, allocations: 0 / 0.5832 GB, free: 10.26 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/1.769, allocations: 4 kB / 0.5832 GB, free: 10.25 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.004293/1.773, allocations: 1.427 MB / 0.5846 GB, free: 8.777 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/1.773, allocations: 12.02 kB / 0.5846 GB, free: 8.766 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.139e-05/1.773, allocations: 31.56 kB / 0.5847 GB, free: 8.734 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002293/1.773, allocations: 235.3 kB / 0.5849 GB, free: 8.465 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/1.773, allocations: 16.44 kB / 0.5849 GB, free: 8.449 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/1.773, allocations: 20 kB / 0.5849 GB, free: 8.43 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004345/1.774, allocations: 295.3 kB / 0.5852 GB, free: 8.113 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/1.774, allocations: 0 / 0.5852 GB, free: 8.113 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/1.774, allocations: 16 kB / 0.5852 GB, free: 8.098 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/1.774, allocations: 19.92 kB / 0.5852 GB, free: 8.078 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002332/1.774, allocations: 161.1 kB / 0.5854 GB, free: 7.922 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.03315/1.807, allocations: 18.02 MB / 0.603 GB, free: 4.027 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003109/1.808, allocations: 134.5 kB / 0.6031 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/1.808, allocations: 96.83 kB / 0.6032 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1329/1.941, allocations: 77.26 MB / 0.6787 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/1.941, allocations: 30.56 kB / 0.6787 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.495e-06/1.941, allocations: 3.938 kB / 0.6787 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009628/1.942, allocations: 451.3 kB / 0.6791 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/1.942, allocations: 51.41 kB / 0.6792 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/1.942, allocations: 223.1 kB / 0.6794 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/1.942, allocations: 29.7 kB / 0.6794 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/1.942, allocations: 140.5 kB / 0.6795 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/1.942, allocations: 114.3 kB / 0.6796 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-05/1.942, allocations: 53.61 kB / 0.6797 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.992e-05/1.942, allocations: 330.8 kB / 0.68 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.71e-05/1.942, allocations: 75.97 kB / 0.6801 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/1.943, allocations: 117.1 kB / 0.6802 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/1.943, allocations: 208.5 kB / 0.6804 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.943, allocations: 0 / 0.6804 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003628/1.943, allocations: 297.6 kB / 0.6807 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/1.943, allocations: 11.94 kB / 0.6807 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.943, allocations: 0 / 0.6807 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008601/1.944, allocations: 160.8 kB / 0.6808 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.557e-05/1.944, allocations: 11.94 kB / 0.6809 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000467/1.945, allocations: 0.6226 MB / 0.6815 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/1.945, allocations: 35.64 kB / 0.6815 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/1.945, allocations: 4.062 kB / 0.6815 GB, free: 10.68 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.C1.a,PuitsP1.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/1.945, allocations: 141.7 kB / 0.6816 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/1.945, allocations: 21.17 kB / 0.6817 GB, free: 10.51 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006514/1.946, allocations: 0.6026 MB / 0.6822 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003242/1.946, allocations: 218.4 kB / 0.6825 GB, free: 9.621 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.946, allocations: 4 kB / 0.6825 GB, free: 9.617 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/1.946, allocations: 3.984 kB / 0.6825 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008262/1.947, allocations: 0.7304 MB / 0.6832 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.947, allocations: 0 / 0.6832 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.089e-05/1.947, allocations: 15.98 kB / 0.6832 GB, free: 8.809 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003447/1.947, allocations: 121.5 kB / 0.6833 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/1.947, allocations: 4 kB / 0.6833 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004099/1.948, allocations: 0.6505 MB / 0.6839 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.948, allocations: 0 / 0.6839 GB, free: 8.008 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/1.948, allocations: 355 kB / 0.6843 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.742e-05/1.948, allocations: 100.8 kB / 0.6844 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.768e-05/1.948, allocations: 11.84 kB / 0.6844 GB, free: 7.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/1.948, allocations: 11.98 kB / 0.6844 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.361e-05/1.948, allocations: 11.88 kB / 0.6844 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.636e-06/1.948, allocations: 4 kB / 0.6844 GB, free: 7.488 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002045/1.949, allocations: 233.9 kB / 0.6846 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.949, allocations: 0 / 0.6846 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002855/1.951, allocations: 1.198 MB / 0.6858 GB, free: 6.066 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004491/1.956, allocations: 1.782 MB / 0.6876 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005119/1.956, allocations: 241.5 kB / 0.6878 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.956, allocations: 0 / 0.6878 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/1.957, allocations: 95.67 kB / 0.6879 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007031/1.957, allocations: 122.5 kB / 0.688 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008133/1.958, allocations: 0.64 MB / 0.6886 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/1.958, allocations: 0.7675 MB / 0.6894 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/1.959, allocations: 19.44 kB / 0.6894 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/1.959, allocations: 0 / 0.6894 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of Templates: time 0.1931/2.152, allocations: 24.89 MB / 0.7137 GB, free: 220.2 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)