Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8499/0.8499, allocations: 150.9 MB / 167.1 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.0003587, allocations: 19.97 kB / 205.9 MB, free: 9.027 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1368, allocations: 31.33 MB / 237.3 MB, free: 5.992 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.TestPipePressureLoss): time 1.592/1.729, allocations: 294.5 MB / 0.5193 GB, free: 13.42 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03753/1.766, allocations: 34.43 MB / 0.5529 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/1.766, allocations: 0 / 0.5529 GB, free: 11.12 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.0003445/1.767, allocations: 112.6 kB / 0.553 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/1.767, allocations: 95.17 kB / 0.5531 GB, free: 10.92 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.02245/1.789, allocations: 9.575 MB / 0.5625 GB, free: 1.336 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/1.79, allocations: 342.5 kB / 0.5628 GB, free: 1 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/1.79, allocations: 109.1 kB / 0.5629 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/1.79, allocations: 139.3 kB / 0.5631 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/1.791, allocations: 115.4 kB / 0.5632 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/1.791, allocations: 16 kB / 0.5632 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02864/1.819, allocations: 17.9 MB / 0.5807 GB, free: 14.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.009e-05/1.819, allocations: 43.8 kB / 0.5807 GB, free: 14.66 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/1.819, allocations: 139.3 kB / 0.5808 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0176/1.837, allocations: 8.402 MB / 0.589 GB, free: 6.102 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/1.837, allocations: 4 kB / 0.589 GB, free: 6.098 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.673e-06/1.837, allocations: 0 / 0.589 GB, free: 6.098 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/1.837, allocations: 0 / 0.589 GB, free: 6.098 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.003634/1.841, allocations: 1.443 MB / 0.5905 GB, free: 4.605 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/1.841, allocations: 8.031 kB / 0.5905 GB, free: 4.598 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.729e-05/1.841, allocations: 31.56 kB / 0.5905 GB, free: 4.566 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002618/1.841, allocations: 232 kB / 0.5907 GB, free: 4.301 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/1.841, allocations: 20.44 kB / 0.5907 GB, free: 4.281 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/1.841, allocations: 16 kB / 0.5907 GB, free: 4.266 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004184/1.842, allocations: 299.3 kB / 0.591 GB, free: 3.941 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.078e-06/1.842, allocations: 0 / 0.591 GB, free: 3.941 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/1.842, allocations: 8 kB / 0.591 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/1.842, allocations: 15.98 kB / 0.5911 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/1.842, allocations: 173 kB / 0.5912 GB, free: 3.75 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.03829/1.88, allocations: 18.12 MB / 0.6089 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/1.881, allocations: 130.5 kB / 0.609 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/1.881, allocations: 88.84 kB / 0.6091 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1542/2.035, allocations: 77.73 MB / 0.685 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/2.035, allocations: 38.55 kB / 0.6851 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.034e-06/2.035, allocations: 0 / 0.6851 GB, free: 8.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001025/2.036, allocations: 447.3 kB / 0.6855 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/2.036, allocations: 51.41 kB / 0.6856 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/2.036, allocations: 223.1 kB / 0.6858 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/2.036, allocations: 25.7 kB / 0.6858 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.186e-05/2.036, allocations: 152.5 kB / 0.6859 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.457e-05/2.037, allocations: 106.3 kB / 0.686 GB, free: 7.938 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/2.037, allocations: 53.59 kB / 0.6861 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001169/2.037, allocations: 342.8 kB / 0.6864 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/2.037, allocations: 67.98 kB / 0.6865 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/2.037, allocations: 112.2 kB / 0.6866 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/2.037, allocations: 211.9 kB / 0.6868 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/2.037, allocations: 0 / 0.6868 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004175/2.038, allocations: 289.8 kB / 0.6871 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/2.038, allocations: 11.94 kB / 0.6871 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/2.038, allocations: 0 / 0.6871 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008993/2.039, allocations: 156.8 kB / 0.6872 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.927e-05/2.039, allocations: 15.88 kB / 0.6872 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005238/2.039, allocations: 0.6435 MB / 0.6879 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/2.039, allocations: 19.69 kB / 0.6879 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/2.039, allocations: 15.92 kB / 0.6879 GB, free: 5.941 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.0001166/2.039, allocations: 138.7 kB / 0.688 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.27e-05/2.04, allocations: 23.72 kB / 0.6881 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007137/2.04, allocations: 0.5925 MB / 0.6886 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003622/2.041, allocations: 231.4 kB / 0.6889 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/2.041, allocations: 0 / 0.6889 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/2.041, allocations: 0 / 0.6889 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009466/2.042, allocations: 0.7282 MB / 0.6896 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/2.042, allocations: 3.984 kB / 0.6896 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/2.042, allocations: 12 kB / 0.6896 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003584/2.042, allocations: 115.8 kB / 0.6897 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/2.042, allocations: 4 kB / 0.6897 GB, free: 3.957 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004546/2.043, allocations: 0.6595 MB / 0.6903 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/2.043, allocations: 4.062 kB / 0.6903 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/2.043, allocations: 339.8 kB / 0.6907 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.409e-05/2.043, allocations: 112.8 kB / 0.6908 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.849e-05/2.043, allocations: 7.844 kB / 0.6908 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/2.043, allocations: 12.06 kB / 0.6908 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/2.043, allocations: 7.984 kB / 0.6908 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/2.043, allocations: 0 / 0.6908 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002223/2.044, allocations: 234 kB / 0.691 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.044, allocations: 0 / 0.691 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002863/2.046, allocations: 1.191 MB / 0.6922 GB, free: 1.344 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.1519/2.198, allocations: 1.71 MB / 0.6939 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005801/2.199, allocations: 238.3 kB / 0.6941 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/2.199, allocations: 3.469 kB / 0.6941 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/2.199, allocations: 89.2 kB / 0.6942 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/2.2, allocations: 122.8 kB / 0.6943 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007866/2.201, allocations: 0.5107 MB / 0.6948 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/2.201, allocations: 0.774 MB / 0.6955 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.993e-05/2.201, allocations: 22.97 kB / 0.6956 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.029e-05/2.201, allocations: 20.09 kB / 0.6956 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/2.201, allocations: 0 / 0.6956 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.04915/2.25, allocations: 42.36 MB / 0.737 GB, free: 206.2 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)