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.8125/0.8125, allocations: 150.8 MB / 166.7 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.00037, allocations: 15.98 kB / 204.8 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1937, allocations: 31.33 MB / 236.1 MB, free: 5.449 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.658/1.852, allocations: 293.4 MB / 0.5171 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03999/1.892, allocations: 34.6 MB / 0.5509 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/1.892, allocations: 4 kB / 0.5509 GB, free: 11.43 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.0003835/1.893, allocations: 88.59 kB / 0.551 GB, free: 11.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/1.893, allocations: 67.52 kB / 0.5511 GB, free: 11.28 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.02636/1.919, allocations: 8.385 MB / 0.5593 GB, free: 2.891 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000487/1.92, allocations: 274.7 kB / 0.5595 GB, free: 2.621 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/1.92, allocations: 103.5 kB / 0.5596 GB, free: 2.523 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/1.92, allocations: 115.5 kB / 0.5597 GB, free: 2.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/1.92, allocations: 91.52 kB / 0.5598 GB, free: 2.32 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/1.92, allocations: 20 kB / 0.5598 GB, free: 2.301 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0322/1.953, allocations: 17.75 MB / 0.5772 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-05/1.953, allocations: 39.84 kB / 0.5772 GB, free: 496 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/1.953, allocations: 115.4 kB / 0.5773 GB, free: 380 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/1.965, allocations: 5.673 MB / 0.5829 GB, free: 10.68 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/1.965, allocations: 4 kB / 0.5829 GB, free: 10.68 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.023e-06/1.965, allocations: 0 / 0.5829 GB, free: 10.68 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/1.965, allocations: 0 / 0.5829 GB, free: 10.68 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.004539/1.969, allocations: 1.4 MB / 0.5842 GB, free: 9.227 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/1.969, allocations: 8.031 kB / 0.5842 GB, free: 9.219 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.809e-05/1.969, allocations: 27.66 kB / 0.5843 GB, free: 9.191 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/1.97, allocations: 215.5 kB / 0.5845 GB, free: 8.941 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/1.97, allocations: 16.36 kB / 0.5845 GB, free: 8.926 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/1.97, allocations: 20 kB / 0.5845 GB, free: 8.906 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/1.97, allocations: 260.1 kB / 0.5848 GB, free: 8.629 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/1.97, allocations: 0 / 0.5848 GB, free: 8.629 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/1.97, allocations: 8 kB / 0.5848 GB, free: 8.621 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/1.97, allocations: 8 kB / 0.5848 GB, free: 8.613 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/1.97, allocations: 148.9 kB / 0.5849 GB, free: 8.469 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.0186/1.989, allocations: 9.5 MB / 0.5942 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/1.989, allocations: 86.48 kB / 0.5943 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.923e-05/1.989, allocations: 60.89 kB / 0.5943 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1504/2.14, allocations: 77.26 MB / 0.6698 GB, free: 7.805 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/2.14, allocations: 38.56 kB / 0.6698 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.855e-06/2.14, allocations: 0 / 0.6698 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005891/2.14, allocations: 204 kB / 0.67 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/2.141, allocations: 51.41 kB / 0.6701 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/2.141, allocations: 232.8 kB / 0.6703 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/2.141, allocations: 25.7 kB / 0.6703 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.934e-05/2.141, allocations: 144.2 kB / 0.6704 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.306e-05/2.141, allocations: 70.86 kB / 0.6705 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.807e-05/2.141, allocations: 41.7 kB / 0.6706 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001344/2.141, allocations: 334.8 kB / 0.6709 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/2.141, allocations: 51.97 kB / 0.6709 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/2.142, allocations: 93.2 kB / 0.671 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002504/2.142, allocations: 159.6 kB / 0.6712 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/2.142, allocations: 0 / 0.6712 GB, free: 6.305 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003433/2.142, allocations: 194.9 kB / 0.6713 GB, free: 6.109 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/2.142, allocations: 11.94 kB / 0.6714 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/2.142, allocations: 4.125 kB / 0.6714 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/2.142, allocations: 4 kB / 0.6714 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006736/2.143, allocations: 95.81 kB / 0.6715 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/2.143, allocations: 4 kB / 0.6715 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/2.143, allocations: 35.67 kB / 0.6715 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/2.143, allocations: 4 kB / 0.6715 GB, free: 5.953 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.000129/2.143, allocations: 130.3 kB / 0.6716 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/2.143, allocations: 19.72 kB / 0.6716 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004536/2.144, allocations: 331.6 kB / 0.672 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002464/2.144, allocations: 152.5 kB / 0.6721 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/2.144, allocations: 3.938 kB / 0.6721 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/2.144, allocations: 0 / 0.6721 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008619/2.145, allocations: 0.6094 MB / 0.6727 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/2.145, allocations: 3.938 kB / 0.6727 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/2.145, allocations: 95.83 kB / 0.6728 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/2.145, allocations: 4.031 kB / 0.6728 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/2.145, allocations: 4 kB / 0.6728 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/2.145, allocations: 3.984 kB / 0.6728 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/2.145, allocations: 0 / 0.6728 GB, free: 4.496 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003959/2.146, allocations: 276 kB / 0.6731 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.921e-05/2.146, allocations: 108.8 kB / 0.6732 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/2.146, allocations: 11.92 kB / 0.6732 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/2.146, allocations: 4 kB / 0.6732 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/2.146, allocations: 19.86 kB / 0.6732 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/2.146, allocations: 7.938 kB / 0.6732 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001947/2.146, allocations: 209.9 kB / 0.6734 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/2.146, allocations: 0 / 0.6734 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003038/2.149, allocations: 1.163 MB / 0.6746 GB, free: 2.676 MB / 0.5606 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.005778/2.155, allocations: 1.788 MB / 0.6763 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004706/2.156, allocations: 189.7 kB / 0.6765 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/2.156, allocations: 4.062 kB / 0.6765 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/2.156, allocations: 79.89 kB / 0.6766 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/2.157, allocations: 105.6 kB / 0.6767 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008352/2.157, allocations: 0.5559 MB / 0.6772 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/2.158, allocations: 0.7558 MB / 0.6779 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/2.158, allocations: 23.42 kB / 0.678 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/2.158, allocations: 0 / 0.678 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of Templates: time 0.2088/2.367, allocations: 23.32 MB / 0.7007 GB, free: 213.9 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)