Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo): time 0.4614/0.4614, allocations: 111.7 MB / 121.5 MB, free: 4.805 MB / 122.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08648/0.5479, allocations: 33.97 MB / 155.5 MB, free: 3.73 MB / 154.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.492e-06/1.492e-06, allocations: 0 / 156.8 MB, free: 2.477 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.081e-05/1.23e-05, allocations: 4.984 kB / 156.8 MB, free: 2.473 MB / 154.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss): time 0.9868/0.9868, allocations: 233.1 MB / 389.9 MB, free: 2.914 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02635/1.013, allocations: 33.17 MB / 423.1 MB, free: 1.621 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/1.013, allocations: 4 kB / 423.1 MB, free: 1.617 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:16:3-17:78:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/BoundaryConditions/SinkP.mo:19:3-20:80:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:15:3-16:80:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/WaterSteam/PressureLosses/InvSingularPressureLoss.mo:17:3-18:78:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [Non-standard Modelica: --allowNonStandardModelica=unbalancedModel] Notification: Performance of NFTyping.typeComponents: time 0.0002351/1.013, allocations: 105.7 kB / 423.2 MB, free: 1.52 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/1.014, allocations: 95.25 kB / 423.3 MB, free: 1.426 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0133/1.027, allocations: 8.592 MB / 431.9 MB, free: 8.793 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002571/1.027, allocations: 294.5 kB / 432.1 MB, free: 8.504 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/1.027, allocations: 82.52 kB / 432.2 MB, free: 8.426 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/1.027, allocations: 195.3 kB / 432.4 MB, free: 8.234 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/1.028, allocations: 67.8 kB / 432.5 MB, free: 8.168 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/1.028, allocations: 16 kB / 432.5 MB, free: 8.152 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:470:9-470:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:525:9-525:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteam/IF97_packages.mo:708:9-708:27:writable] Warning: 'cv' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh1satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:51:3-51:60:writable] Warning: 'dh2satp' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du1satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.2.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:118:3-118:151:writable] Warning: 'du2satp_der' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.01898/1.047, allocations: 18.12 MB / 450.6 MB, free: 6.016 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 4.769e-05/1.047, allocations: 31.88 kB / 450.6 MB, free: 5.984 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 7.736e-05/1.047, allocations: 63.88 kB / 450.7 MB, free: 5.922 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009585/1.056, allocations: 8.2 MB / 458.9 MB, free: 13.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.261e-05/1.056, allocations: 0 / 458.9 MB, free: 13.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.056, allocations: 0 / 458.9 MB, free: 13.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.374e-05/1.056, allocations: 0 / 458.9 MB, free: 13.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.002231/1.059, allocations: 1.942 MB / 460.8 MB, free: 11.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/1.059, allocations: 8.625 kB / 460.9 MB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.86e-05/1.059, allocations: 31.92 kB / 460.9 MB, free: 11.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/1.059, allocations: 159.3 kB / 461 MB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/1.059, allocations: 16.38 kB / 461.1 MB, free: 11.48 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/1.059, allocations: 16 kB / 461.1 MB, free: 11.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/1.059, allocations: 209.3 kB / 461.3 MB, free: 11.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/1.059, allocations: 4 kB / 461.3 MB, free: 11.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/1.059, allocations: 11.98 kB / 461.3 MB, free: 11.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/1.059, allocations: 11.98 kB / 461.3 MB, free: 11.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.867e-05/1.059, allocations: 64.86 kB / 461.4 MB, free: 11.14 MB / 458.7 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.006953/1.066, allocations: 4.922 MB / 466.3 MB, free: 6.168 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.647e-05/1.066, allocations: 82.48 kB / 466.4 MB, free: 6.078 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.091e-05/1.066, allocations: 21.02 kB / 466.4 MB, free: 6.055 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05972/1.126, allocations: 39.05 MB / 0.4936 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/1.126, allocations: 38.56 kB / 0.4936 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/1.126, allocations: 0 / 0.4936 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22): time 0.000216/1.126, allocations: 101.5 kB / 0.4937 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/1.126, allocations: 55.41 kB / 0.4938 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/1.126, allocations: 161.3 kB / 0.4939 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.749e-06/1.126, allocations: 25.7 kB / 0.494 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/1.126, allocations: 152.6 kB / 0.4941 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/1.126, allocations: 71.38 kB / 0.4942 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.079e-05/1.126, allocations: 41.66 kB / 0.4942 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.833e-05/1.126, allocations: 330.7 kB / 0.4945 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.938e-05/1.126, allocations: 22.77 kB / 0.4945 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.9e-05/1.127, allocations: 52.27 kB / 0.4946 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.441e-05/1.127, allocations: 89.36 kB / 0.4947 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.127, allocations: 0 / 0.4947 GB, free: 13.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001051/1.127, allocations: 116.4 kB / 0.4948 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/1.127, allocations: 8 kB / 0.4948 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.127, allocations: 0 / 0.4948 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.285e-06/1.127, allocations: 0 / 0.4948 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/1.127, allocations: 59.88 kB / 0.4949 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/1.127, allocations: 4.062 kB / 0.4949 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.043e-05/1.127, allocations: 19.83 kB / 0.4949 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/1.127, allocations: 12.06 kB / 0.4949 GB, free: 13.53 MB / 0.4948 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 (sourcePQ.C.b,sinkQ.C.a,invSingularPressureLoss.C1.a,invSingularPressureLoss.C2.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.954e-05/1.127, allocations: 117.9 kB / 0.495 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/1.127, allocations: 4 kB / 0.495 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/1.127, allocations: 273.8 kB / 0.4953 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.698e-05/1.127, allocations: 78.98 kB / 0.4953 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/1.127, allocations: 0 / 0.4953 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/1.127, allocations: 0 / 0.4953 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003641/1.128, allocations: 430.8 kB / 0.4958 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/1.128, allocations: 96 / 0.4958 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/1.128, allocations: 55.88 kB / 0.4958 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.726e-05/1.128, allocations: 27.84 kB / 0.4958 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/1.128, allocations: 0 / 0.4958 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.55e-06/1.128, allocations: 0 / 0.4958 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.128, allocations: 0 / 0.4958 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/1.128, allocations: 8 kB / 0.4958 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001249/1.128, allocations: 246.4 kB / 0.4961 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/1.128, allocations: 11.95 kB / 0.4961 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.602e-05/1.128, allocations: 7.969 kB / 0.4961 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.88e-05/1.128, allocations: 19.86 kB / 0.4961 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/1.128, allocations: 4 kB / 0.4961 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.664e-05/1.128, allocations: 50.39 kB / 0.4962 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/1.128, allocations: 0 / 0.4962 GB, free: 12.12 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001929/1.13, allocations: 1.196 MB / 0.4973 GB, free: 10.93 MB / 0.4948 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002943/1.133, allocations: 2.046 MB / 0.4993 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001405/1.133, allocations: 118.6 kB / 0.4994 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/1.133, allocations: 11.94 kB / 0.4995 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.013e-05/1.133, allocations: 44.75 kB / 0.4995 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/1.134, allocations: 102.3 kB / 0.4996 GB, free: 8.586 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/1.136, allocations: 441.3 kB / 0.5 GB, free: 8.121 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.393e-05/1.136, allocations: 87.91 kB / 0.5001 GB, free: 8.016 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 5.136e-05/1.136, allocations: 13.16 kB / 0.5001 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/1.136, allocations: 99.33 kB / 0.5002 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of SimCode: time 6.92e-07/1.136, allocations: 0 / 0.5002 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of Templates: time 0.1991/1.336, allocations: 47.91 MB / 0.547 GB, free: 65.44 MB / 0.4948 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06906/1.405, allocations: 53.75 MB / 0.5995 GB, free: 25.23 MB / 0.4948 GB " [Timeout remaining time 659] make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.799342579208314]