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.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.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8269/0.8269, allocations: 150.9 MB / 167.1 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004972/0.0004976, allocations: 23.97 kB / 206 MB, free: 9.074 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1574, allocations: 31.32 MB / 237.3 MB, free: 5.738 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.TestInvSingularPressureLoss): time 1.615/1.773, allocations: 294.3 MB / 0.5191 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03883/1.812, allocations: 34.39 MB / 0.5527 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/1.812, allocations: 0 / 0.5527 GB, free: 11.2 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28: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/InvSingularPressureLoss.mo:29:3-30:83: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.0004171/1.812, allocations: 103.4 kB / 0.5528 GB, free: 11.1 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001764/1.813, allocations: 75.33 kB / 0.5529 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.02393/1.837, allocations: 9.563 MB / 0.5622 GB, free: 1.449 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004432/1.837, allocations: 278.7 kB / 0.5625 GB, free: 1.176 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/1.837, allocations: 99.73 kB / 0.5626 GB, free: 1.078 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001764/1.837, allocations: 111.5 kB / 0.5627 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/1.837, allocations: 99.5 kB / 0.5628 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/1.838, allocations: 16 kB / 0.5628 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02954/1.867, allocations: 17.89 MB / 0.5803 GB, free: 14.94 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.224e-05/1.867, allocations: 43.83 kB / 0.5803 GB, free: 14.9 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/1.867, allocations: 111.4 kB / 0.5804 GB, free: 14.79 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01919/1.887, allocations: 8.371 MB / 0.5886 GB, free: 6.398 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.887, allocations: 0 / 0.5886 GB, free: 6.398 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.365e-06/1.887, allocations: 4 kB / 0.5886 GB, free: 6.395 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/1.887, allocations: 3.938 kB / 0.5886 GB, free: 6.391 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003741/1.89, allocations: 1.396 MB / 0.59 GB, free: 4.941 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/1.89, allocations: 8.031 kB / 0.59 GB, free: 4.934 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.379e-05/1.891, allocations: 27.66 kB / 0.59 GB, free: 4.906 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/1.891, allocations: 218.7 kB / 0.5902 GB, free: 4.652 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/1.891, allocations: 20.31 kB / 0.5902 GB, free: 4.633 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/1.891, allocations: 20 kB / 0.5902 GB, free: 4.613 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/1.891, allocations: 256.1 kB / 0.5905 GB, free: 4.344 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/1.891, allocations: 0 / 0.5905 GB, free: 4.344 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/1.891, allocations: 12.66 kB / 0.5905 GB, free: 4.332 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/1.891, allocations: 7.984 kB / 0.5905 GB, free: 4.324 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/1.892, allocations: 152.3 kB / 0.5907 GB, free: 4.176 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.01874/1.91, allocations: 9.538 MB / 0.6 GB, free: 9.664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/1.91, allocations: 78.55 kB / 0.6 GB, free: 9.578 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/1.911, allocations: 64.89 kB / 0.6001 GB, free: 9.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1471/2.058, allocations: 77.72 MB / 0.676 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/2.058, allocations: 34.55 kB / 0.676 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 4.689e-06/2.058, allocations: 1.359 kB / 0.676 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.000519/2.058, allocations: 202.8 kB / 0.6762 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/2.058, allocations: 59.39 kB / 0.6763 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/2.059, allocations: 224.8 kB / 0.6765 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/2.059, allocations: 25.7 kB / 0.6765 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.55e-05/2.059, allocations: 148.2 kB / 0.6767 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.75e-05/2.059, allocations: 70.91 kB / 0.6767 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.482e-05/2.059, allocations: 41.69 kB / 0.6768 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001057/2.059, allocations: 334.7 kB / 0.6771 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/2.059, allocations: 55.97 kB / 0.6772 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/2.059, allocations: 89.47 kB / 0.6772 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/2.059, allocations: 166.2 kB / 0.6774 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/2.059, allocations: 0 / 0.6774 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003249/2.06, allocations: 188.6 kB / 0.6776 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/2.06, allocations: 5.562 kB / 0.6776 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/2.06, allocations: 4 kB / 0.6776 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/2.06, allocations: 4 kB / 0.6776 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/2.06, allocations: 107.9 kB / 0.6777 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/2.06, allocations: 0 / 0.6777 GB, free: 1.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/2.061, allocations: 27.67 kB / 0.6777 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/2.061, allocations: 4 kB / 0.6777 GB, free: 1.168 MB / 0.5606 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 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 0.0001027/2.061, allocations: 133.8 kB / 0.6779 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/2.061, allocations: 23.72 kB / 0.6779 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000434/2.061, allocations: 329 kB / 0.6782 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002328/2.061, allocations: 151.7 kB / 0.6783 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/2.061, allocations: 7.875 kB / 0.6783 GB, free: 496 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/2.061, allocations: 0 / 0.6783 GB, free: 496 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/2.062, allocations: 0.5979 MB / 0.6789 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/2.062, allocations: 3.938 kB / 0.6789 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000525/2.063, allocations: 95.83 kB / 0.679 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/2.063, allocations: 0 / 0.679 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/2.063, allocations: 7.984 kB / 0.679 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/2.063, allocations: 4.031 kB / 0.679 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/2.063, allocations: 0 / 0.679 GB, free: 15.72 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/2.063, allocations: 286.3 kB / 0.6793 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/2.063, allocations: 116.7 kB / 0.6794 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.222e-05/2.063, allocations: 0 / 0.6794 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/2.063, allocations: 12 kB / 0.6794 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/2.064, allocations: 15.86 kB / 0.6794 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.687e-06/2.064, allocations: 4 kB / 0.6794 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001801/2.064, allocations: 206 kB / 0.6796 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/2.064, allocations: 0 / 0.6796 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002696/2.066, allocations: 1.175 MB / 0.6808 GB, free: 13.88 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 (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.004094/2.071, allocations: 1.725 MB / 0.6825 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000401/2.071, allocations: 193.4 kB / 0.6827 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.071, allocations: 0 / 0.6827 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/2.071, allocations: 80.16 kB / 0.6827 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005912/2.072, allocations: 103.2 kB / 0.6828 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007188/2.072, allocations: 454.3 kB / 0.6833 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/2.073, allocations: 0.748 MB / 0.684 GB, free: 10.55 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.832e-05/2.073, allocations: 33.92 kB / 0.684 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/2.073, allocations: 23.44 kB / 0.6841 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of SimCode: time 2.6e-07/2.073, allocations: 4 kB / 0.6841 GB, free: 10.49 MB / 0.5762 GB Notification: Performance of Templates: time 0.2634/2.336, allocations: 41.14 MB / 0.7242 GB, free: 127.4 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile (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=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)