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.8195/0.8195, allocations: 150.9 MB / 167.1 MB, free: 14.7 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003625, allocations: 19.97 kB / 205.9 MB, free: 9.25 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1268, allocations: 31.33 MB / 237.3 MB, free: 5.691 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.549/1.676, allocations: 294.3 MB / 0.5191 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03552/1.712, allocations: 34.4 MB / 0.5527 GB, free: 11.22 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/1.712, allocations: 4 kB / 0.5527 GB, free: 11.21 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.0003143/1.712, allocations: 100.5 kB / 0.5528 GB, free: 11.12 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/1.712, allocations: 79.31 kB / 0.5529 GB, free: 11.04 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.02157/1.734, allocations: 9.562 MB / 0.5622 GB, free: 1.469 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004045/1.734, allocations: 278.7 kB / 0.5625 GB, free: 1.195 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/1.734, allocations: 94.78 kB / 0.5626 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/1.735, allocations: 119.5 kB / 0.5627 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/1.735, allocations: 91.52 kB / 0.5628 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/1.735, allocations: 16 kB / 0.5628 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02696/1.762, allocations: 17.9 MB / 0.5803 GB, free: 14.96 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.526e-05/1.762, allocations: 39.86 kB / 0.5803 GB, free: 14.92 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/1.762, allocations: 115.4 kB / 0.5804 GB, free: 14.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01519/1.777, allocations: 8.371 MB / 0.5886 GB, free: 6.414 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/1.777, allocations: 0 / 0.5886 GB, free: 6.414 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.753e-06/1.777, allocations: 4 kB / 0.5886 GB, free: 6.41 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/1.777, allocations: 0 / 0.5886 GB, free: 6.41 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.003066/1.78, allocations: 1.396 MB / 0.59 GB, free: 4.961 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/1.78, allocations: 8.031 kB / 0.59 GB, free: 4.953 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/1.78, allocations: 27.66 kB / 0.59 GB, free: 4.926 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001819/1.781, allocations: 216.1 kB / 0.5902 GB, free: 4.676 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/1.781, allocations: 12.38 kB / 0.5902 GB, free: 4.664 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/1.781, allocations: 23.94 kB / 0.5902 GB, free: 4.641 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/1.781, allocations: 265.3 kB / 0.5905 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/1.781, allocations: 0 / 0.5905 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/1.781, allocations: 4 kB / 0.5905 GB, free: 4.359 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/1.781, allocations: 12 kB / 0.5905 GB, free: 4.348 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/1.781, allocations: 152.3 kB / 0.5907 GB, free: 4.199 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.01842/1.8, allocations: 9.542 MB / 0.6 GB, free: 9.684 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/1.8, allocations: 78.55 kB / 0.6 GB, free: 9.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/1.8, allocations: 60.89 kB / 0.6001 GB, free: 9.535 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1433/1.943, allocations: 77.72 MB / 0.676 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/1.943, allocations: 38.5 kB / 0.676 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.004e-06/1.944, allocations: 0 / 0.676 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005014/1.944, allocations: 198.8 kB / 0.6762 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/1.944, allocations: 55.41 kB / 0.6763 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/1.944, allocations: 232.8 kB / 0.6765 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/1.944, allocations: 25.7 kB / 0.6765 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/1.944, allocations: 144.2 kB / 0.6767 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.889e-05/1.944, allocations: 70.91 kB / 0.6767 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.117e-05/1.945, allocations: 41.64 kB / 0.6768 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001024/1.945, allocations: 338.8 kB / 0.6771 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/1.945, allocations: 55.92 kB / 0.6772 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/1.945, allocations: 96.2 kB / 0.6772 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002366/1.945, allocations: 154.3 kB / 0.6774 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/1.945, allocations: 0 / 0.6774 GB, free: 1.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003279/1.945, allocations: 200.6 kB / 0.6776 GB, free: 1.328 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/1.945, allocations: 4 kB / 0.6776 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/1.946, allocations: 0 / 0.6776 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/1.946, allocations: 4 kB / 0.6776 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006582/1.946, allocations: 103.9 kB / 0.6777 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/1.946, allocations: 4 kB / 0.6777 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/1.946, allocations: 23.69 kB / 0.6777 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/1.946, allocations: 4 kB / 0.6777 GB, free: 1.188 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.0001045/1.946, allocations: 133.8 kB / 0.6778 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.479e-05/1.947, allocations: 23.72 kB / 0.6779 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004301/1.947, allocations: 332.8 kB / 0.6782 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002262/1.947, allocations: 145.3 kB / 0.6783 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/1.947, allocations: 3.938 kB / 0.6783 GB, free: 0.5117 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/1.947, allocations: 3.984 kB / 0.6783 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007721/1.948, allocations: 0.5985 MB / 0.6789 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/1.948, allocations: 7.969 kB / 0.6789 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005367/1.949, allocations: 99.81 kB / 0.679 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/1.949, allocations: 0 / 0.679 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/1.949, allocations: 0 / 0.679 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/1.949, allocations: 4.078 kB / 0.679 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/1.949, allocations: 3.984 kB / 0.679 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003593/1.949, allocations: 286.2 kB / 0.6793 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.941e-05/1.949, allocations: 108.8 kB / 0.6794 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/1.949, allocations: 7.938 kB / 0.6794 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001302/1.949, allocations: 11.98 kB / 0.6794 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/1.949, allocations: 17.8 kB / 0.6794 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/1.949, allocations: 11.98 kB / 0.6795 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001758/1.949, allocations: 202 kB / 0.6796 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.949, allocations: 0 / 0.6796 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002568/1.952, allocations: 1.179 MB / 0.6808 GB, free: 13.89 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.004185/1.956, allocations: 1.714 MB / 0.6825 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004138/1.957, allocations: 193.5 kB / 0.6827 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.957, allocations: 3.938 kB / 0.6827 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001475/1.957, allocations: 72.22 kB / 0.6827 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/1.957, allocations: 111.6 kB / 0.6828 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/1.958, allocations: 450.3 kB / 0.6833 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/1.958, allocations: 0.7519 MB / 0.684 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.288e-05/1.959, allocations: 29.94 kB / 0.684 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.351e-05/1.959, allocations: 23.42 kB / 0.684 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of SimCode: time 2.3e-07/1.959, allocations: 0 / 0.684 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of Templates: time 0.1847/2.143, allocations: 41.14 MB / 0.7242 GB, free: 215.7 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 gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)