Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8287/0.8287, allocations: 150.9 MB / 166.5 MB, free: 14.13 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003304/0.0003304, allocations: 16.84 kB / 237.1 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05526/0.0556, allocations: 31.35 MB / 268.4 MB, free: 7.023 MB / 222.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.TestSingularPressureLoss): time 1.598/1.654, allocations: 294.7 MB / 0.55 GB, free: 13.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03782/1.692, allocations: 34.42 MB / 0.5836 GB, free: 10.58 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/1.692, allocations: 7.938 kB / 0.5836 GB, free: 10.57 MB / 478.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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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.0003585/1.692, allocations: 143.7 kB / 0.5837 GB, free: 10.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/1.693, allocations: 107.2 kB / 0.5838 GB, free: 10.33 MB / 478.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.02212/1.715, allocations: 9.733 MB / 0.5933 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004477/1.715, allocations: 334.4 kB / 0.5936 GB, free: 260 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/1.715, allocations: 116.5 kB / 0.5937 GB, free: 144 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/1.716, allocations: 139.4 kB / 0.5939 GB, free: 4 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/1.716, allocations: 103.5 kB / 0.594 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.308e-05/1.716, allocations: 16 kB / 0.594 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02857/1.744, allocations: 17.89 MB / 0.6115 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/1.745, allocations: 39.86 kB / 0.6115 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001656/1.745, allocations: 119.4 kB / 0.6116 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01604/1.761, allocations: 8.406 MB / 0.6198 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/1.761, allocations: 0 / 0.6198 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.513e-06/1.761, allocations: 0 / 0.6198 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.664e-06/1.761, allocations: 4 kB / 0.6198 GB, free: 5.391 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00343/1.764, allocations: 1.419 MB / 0.6212 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/1.764, allocations: 12.03 kB / 0.6212 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.751e-05/1.764, allocations: 31.56 kB / 0.6213 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002032/1.765, allocations: 227.5 kB / 0.6215 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/1.765, allocations: 16.44 kB / 0.6215 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/1.765, allocations: 16 kB / 0.6215 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/1.765, allocations: 286.8 kB / 0.6218 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/1.765, allocations: 3.938 kB / 0.6218 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/1.765, allocations: 12 kB / 0.6218 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/1.765, allocations: 15.98 kB / 0.6218 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/1.765, allocations: 160.3 kB / 0.622 GB, free: 3.094 MB / 0.4981 GB 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.03839/1.804, allocations: 18.11 MB / 0.6396 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/1.804, allocations: 122.5 kB / 0.6398 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.611e-05/1.804, allocations: 81.22 kB / 0.6398 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3303/2.135, allocations: 77.73 MB / 0.7157 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/2.135, allocations: 38.25 kB / 0.7158 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 1.914e-06/2.135, allocations: 2.438 kB / 0.7158 GB, free: 212.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0008008/2.135, allocations: 396.1 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.884e-05/2.135, allocations: 52.5 kB / 0.7162 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/2.136, allocations: 206.1 kB / 0.7164 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.447e-06/2.136, allocations: 30.92 kB / 0.7164 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.431e-05/2.136, allocations: 145.4 kB / 0.7166 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/2.136, allocations: 104.7 kB / 0.7167 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.1e-05/2.136, allocations: 46.95 kB / 0.7167 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.173e-05/2.136, allocations: 334.1 kB / 0.717 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/2.136, allocations: 68.28 kB / 0.7171 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/2.136, allocations: 121.1 kB / 0.7172 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/2.136, allocations: 191.4 kB / 0.7174 GB, free: 212 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/2.136, allocations: 0 / 0.7174 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003633/2.137, allocations: 286.1 kB / 0.7177 GB, free: 212 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/2.137, allocations: 7.375 kB / 0.7177 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/2.137, allocations: 0 / 0.7177 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008086/2.138, allocations: 143.5 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.589e-05/2.138, allocations: 10.12 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004666/2.138, allocations: 0.6063 MB / 0.7184 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/2.138, allocations: 31.22 kB / 0.7184 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/2.138, allocations: 6.594 kB / 0.7185 GB, free: 211.4 MB / 0.5919 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 (singularPressureLoss.C2.b,singularPressureLoss.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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001166/2.138, allocations: 145.5 kB / 0.7186 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.606e-05/2.139, allocations: 22.59 kB / 0.7186 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000558/2.139, allocations: 0.5646 MB / 0.7192 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002684/2.139, allocations: 199.6 kB / 0.7194 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/2.139, allocations: 3.328 kB / 0.7194 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/2.139, allocations: 2.844 kB / 0.7194 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005809/2.14, allocations: 0.6803 MB / 0.72 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.14, allocations: 0 / 0.72 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/2.14, allocations: 21.88 kB / 0.72 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000315/2.14, allocations: 107.4 kB / 0.7201 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/2.14, allocations: 7.875 kB / 0.7202 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002972/2.141, allocations: 0.6293 MB / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/2.141, allocations: 0 / 0.7208 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/2.141, allocations: 301.7 kB / 0.7211 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/2.141, allocations: 104.6 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.836e-05/2.141, allocations: 18.55 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/2.141, allocations: 6.812 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/2.141, allocations: 10.94 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/2.141, allocations: 2.75 kB / 0.7212 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000182/2.141, allocations: 227.6 kB / 0.7214 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/2.141, allocations: 0 / 0.7214 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002558/2.144, allocations: 1.182 MB / 0.7226 GB, free: 209.7 MB / 0.5919 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004115/2.148, allocations: 1.736 MB / 0.7243 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005114/2.149, allocations: 221.4 kB / 0.7245 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/2.149, allocations: 256 / 0.7245 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002085/2.149, allocations: 95.12 kB / 0.7246 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007514/2.15, allocations: 120.5 kB / 0.7247 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007049/2.15, allocations: 489.7 kB / 0.7251 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001723/2.151, allocations: 0.7686 MB / 0.7259 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.017e-05/2.151, allocations: 24.05 kB / 0.7259 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/2.151, allocations: 18.75 kB / 0.7259 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/2.151, allocations: 0 / 0.7259 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.0397/2.19, allocations: 42.22 MB / 0.7672 GB, free: 180.2 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)