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.8409/0.8409, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000304/0.0003041, allocations: 11.98 kB / 204.5 MB, free: 9.762 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1518, allocations: 31.33 MB / 235.9 MB, free: 5.395 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.TestSingularPressureLoss): time 1.548/1.7, allocations: 294.6 MB / 0.5181 GB, free: 13.4 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0377/1.738, allocations: 34.43 MB / 0.5517 GB, free: 11.1 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/1.738, allocations: 7.938 kB / 0.5517 GB, free: 11.09 MB / 446.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.0003318/1.738, allocations: 99.38 kB / 0.5518 GB, free: 11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/1.738, allocations: 103.2 kB / 0.5519 GB, free: 10.89 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.02291/1.761, allocations: 9.562 MB / 0.5612 GB, free: 1.332 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004453/1.762, allocations: 334.5 kB / 0.5616 GB, free: 1.004 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/1.762, allocations: 98.16 kB / 0.5617 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001904/1.762, allocations: 139.4 kB / 0.5618 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/1.762, allocations: 107.4 kB / 0.5619 GB, free: 0.668 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/1.762, allocations: 16 kB / 0.5619 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.028/1.79, allocations: 17.67 MB / 0.5792 GB, free: 14.96 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.548e-05/1.791, allocations: 31.86 kB / 0.5792 GB, free: 14.93 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/1.791, allocations: 131.3 kB / 0.5793 GB, free: 14.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01883/1.81, allocations: 8.414 MB / 0.5875 GB, free: 6.363 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.81, allocations: 0 / 0.5875 GB, free: 6.363 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.462e-06/1.81, allocations: 0 / 0.5875 GB, free: 6.363 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/1.81, allocations: 4 kB / 0.5875 GB, free: 6.359 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.004136/1.814, allocations: 1.419 MB / 0.5889 GB, free: 4.891 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/1.814, allocations: 8.031 kB / 0.5889 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/1.814, allocations: 31.56 kB / 0.589 GB, free: 4.852 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/1.814, allocations: 230.5 kB / 0.5892 GB, free: 4.586 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/1.814, allocations: 16.44 kB / 0.5892 GB, free: 4.57 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.584e-05/1.814, allocations: 16 kB / 0.5892 GB, free: 4.555 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/1.815, allocations: 286.8 kB / 0.5895 GB, free: 4.242 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/1.815, allocations: 4 kB / 0.5895 GB, free: 4.238 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/1.815, allocations: 8 kB / 0.5895 GB, free: 4.23 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/1.815, allocations: 11.98 kB / 0.5895 GB, free: 4.219 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/1.815, allocations: 164.9 kB / 0.5897 GB, free: 4.059 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.03749/1.852, allocations: 18 MB / 0.6072 GB, free: 192 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003303/1.853, allocations: 118.5 kB / 0.6074 GB, free: 64 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/1.853, allocations: 81.03 kB / 0.6074 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1567/2.01, allocations: 77.27 MB / 0.6829 GB, free: 9.938 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/2.01, allocations: 34.56 kB / 0.6829 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.945e-06/2.01, allocations: 1.219 kB / 0.6829 GB, free: 9.895 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0007966/2.01, allocations: 395.3 kB / 0.6833 GB, free: 9.48 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/2.01, allocations: 51.41 kB / 0.6834 GB, free: 9.418 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/2.011, allocations: 207.8 kB / 0.6836 GB, free: 9.207 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/2.011, allocations: 29.7 kB / 0.6836 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.853e-05/2.011, allocations: 156.4 kB / 0.6837 GB, free: 9.016 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.43e-05/2.011, allocations: 106.4 kB / 0.6838 GB, free: 8.91 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.501e-05/2.011, allocations: 45.61 kB / 0.6839 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001085/2.011, allocations: 334.8 kB / 0.6842 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/2.011, allocations: 72.3 kB / 0.6843 GB, free: 8.453 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001259/2.011, allocations: 114.2 kB / 0.6844 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/2.012, allocations: 201.5 kB / 0.6846 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/2.012, allocations: 0 / 0.6846 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004167/2.012, allocations: 277.9 kB / 0.6848 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/2.012, allocations: 13.86 kB / 0.6848 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/2.012, allocations: 0 / 0.6848 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008487/2.013, allocations: 144.7 kB / 0.685 GB, free: 7.68 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.699e-05/2.013, allocations: 11.94 kB / 0.685 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004865/2.013, allocations: 0.6122 MB / 0.6856 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/2.014, allocations: 27.62 kB / 0.6856 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/2.014, allocations: 4 kB / 0.6856 GB, free: 7 MB / 0.5762 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.000121/2.014, allocations: 134.2 kB / 0.6857 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.623e-05/2.014, allocations: 27.59 kB / 0.6858 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000677/2.014, allocations: 0.5592 MB / 0.6863 GB, free: 6.207 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003326/2.015, allocations: 205.9 kB / 0.6865 GB, free: 6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/2.015, allocations: 0 / 0.6865 GB, free: 6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/2.015, allocations: 3.984 kB / 0.6865 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007587/2.016, allocations: 0.6858 MB / 0.6872 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/2.016, allocations: 0 / 0.6872 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.778e-05/2.016, allocations: 20.02 kB / 0.6872 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003708/2.016, allocations: 112.7 kB / 0.6873 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/2.016, allocations: 0 / 0.6873 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004419/2.016, allocations: 0.6435 MB / 0.6879 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/2.016, allocations: 0 / 0.6879 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003141/2.017, allocations: 307.8 kB / 0.6882 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.646e-05/2.017, allocations: 104.8 kB / 0.6883 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/2.017, allocations: 11.84 kB / 0.6884 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.907e-05/2.017, allocations: 8.062 kB / 0.6884 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/2.017, allocations: 7.984 kB / 0.6884 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-06/2.017, allocations: 4 kB / 0.6884 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002263/2.017, allocations: 230 kB / 0.6886 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.017, allocations: 0 / 0.6886 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002757/2.02, allocations: 1.183 MB / 0.6897 GB, free: 2.57 MB / 0.5762 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.005138/2.025, allocations: 1.736 MB / 0.6914 GB, free: 0.8477 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005013/2.026, allocations: 221.6 kB / 0.6916 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/2.026, allocations: 0 / 0.6916 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002266/2.026, allocations: 93.78 kB / 0.6917 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007143/2.027, allocations: 123.8 kB / 0.6919 GB, free: 428 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1454/2.172, allocations: 494.6 kB / 0.6923 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/2.172, allocations: 0.7578 MB / 0.6931 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001151/2.172, allocations: 17.36 kB / 0.6931 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.725e-05/2.173, allocations: 25.22 kB / 0.6931 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.71e-07/2.173, allocations: 0 / 0.6931 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04503/2.218, allocations: 42.27 MB / 0.7344 GB, free: 206.7 MB / 0.5762 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)