Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8636/0.8636, allocations: 153.8 MB / 173.4 MB, free: 4.934 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005683/0.0005683, allocations: 19.97 kB / 251.1 MB, free: 3.953 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1912, allocations: 33.36 MB / 284.5 MB, free: 2.023 MB / 222.1 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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.974/2.165, allocations: 307.5 MB / 0.5781 GB, free: 16.06 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2312/2.396, allocations: 191 MB / 0.7646 GB, free: 5.98 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004574/2.397, allocations: 11.88 kB / 0.7646 GB, free: 5.969 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:75:3-76:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SinkP.mo:47:3-48:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:30:3-31:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/PressureLosses/InvSingularPressureLoss.mo:32:3-33:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002125/2.397, allocations: 43.58 kB / 0.7647 GB, free: 5.926 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0005518/2.397, allocations: 119 kB / 0.7648 GB, free: 5.809 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03319/2.431, allocations: 11.64 MB / 0.7762 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0006894/2.431, allocations: 386.7 kB / 0.7765 GB, free: 9.789 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002727/2.431, allocations: 165 kB / 0.7767 GB, free: 9.625 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/2.432, allocations: 181.8 kB / 0.7769 GB, free: 9.449 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/2.432, allocations: 171.2 kB / 0.777 GB, free: 9.281 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/2.432, allocations: 36 kB / 0.7771 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03902/2.471, allocations: 19.97 MB / 0.7966 GB, free: 5.25 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001614/2.471, allocations: 87.69 kB / 0.7966 GB, free: 5.164 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002686/2.471, allocations: 187 kB / 0.7968 GB, free: 4.98 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02788/2.499, allocations: 9.794 MB / 0.8064 GB, free: 11.16 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/2.499, allocations: 3.938 kB / 0.8064 GB, free: 11.16 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.174e-06/2.499, allocations: 0 / 0.8064 GB, free: 11.16 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.898e-06/2.499, allocations: 4 kB / 0.8064 GB, free: 11.15 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.005665/2.505, allocations: 1.779 MB / 0.8081 GB, free: 9.332 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/2.505, allocations: 8.031 kB / 0.8081 GB, free: 9.324 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/2.505, allocations: 46.3 kB / 0.8082 GB, free: 9.281 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/2.506, allocations: 257.3 kB / 0.8084 GB, free: 9.008 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/2.506, allocations: 25 kB / 0.8084 GB, free: 8.984 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/2.506, allocations: 32 kB / 0.8085 GB, free: 8.953 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006533/2.506, allocations: 360.8 kB / 0.8088 GB, free: 8.574 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/2.506, allocations: 0 / 0.8088 GB, free: 8.574 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.16e-05/2.506, allocations: 20 kB / 0.8088 GB, free: 8.555 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/2.506, allocations: 12 kB / 0.8089 GB, free: 8.543 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/2.507, allocations: 230.4 kB / 0.8091 GB, free: 8.32 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07362/2.581, allocations: 22.32 MB / 0.8309 GB, free: 1.844 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002697/2.581, allocations: 74.48 kB / 0.8309 GB, free: 1.762 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.628e-05/2.581, allocations: 20.92 kB / 0.831 GB, free: 1.738 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4285/3.009, allocations: 66.86 MB / 0.8962 GB, free: 260.6 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/3.009, allocations: 34.31 kB / 0.8963 GB, free: 260.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.884e-06/3.009, allocations: 0 / 0.8963 GB, free: 260.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0004637/3.01, allocations: 129.5 kB / 0.8964 GB, free: 260.5 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/3.01, allocations: 51.41 kB / 0.8964 GB, free: 260.5 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000376/3.01, allocations: 356.3 kB / 0.8968 GB, free: 260.2 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/3.01, allocations: 33.2 kB / 0.8968 GB, free: 260.1 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/3.01, allocations: 240.3 kB / 0.897 GB, free: 260 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/3.01, allocations: 24.36 kB / 0.8971 GB, free: 260 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.476e-05/3.011, allocations: 61.77 kB / 0.8971 GB, free: 259.9 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 6.135e-05/3.011, allocations: 336.3 kB / 0.8975 GB, free: 259.6 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/3.011, allocations: 33.48 kB / 0.8975 GB, free: 259.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/3.011, allocations: 146.1 kB / 0.8976 GB, free: 259.4 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/3.011, allocations: 202.4 kB / 0.8978 GB, free: 259.2 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/3.011, allocations: 4 kB / 0.8978 GB, free: 259.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003738/3.011, allocations: 228.1 kB / 0.898 GB, free: 259 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/3.011, allocations: 4 kB / 0.898 GB, free: 259 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/3.011, allocations: 4 kB / 0.898 GB, free: 259 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/3.012, allocations: 14.56 kB / 0.8981 GB, free: 259 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005974/3.012, allocations: 117 kB / 0.8982 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/3.012, allocations: 9.719 kB / 0.8982 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00019/3.012, allocations: 36.81 kB / 0.8982 GB, free: 258.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.748e-05/3.012, allocations: 13.5 kB / 0.8982 GB, free: 258.9 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001276/3.012, allocations: 158.3 kB / 0.8984 GB, free: 258.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/3.012, allocations: 27.81 kB / 0.8984 GB, free: 258.7 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/3.013, allocations: 125.3 kB / 0.8985 GB, free: 258.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/3.013, allocations: 0 / 0.8985 GB, free: 258.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/3.013, allocations: 7.984 kB / 0.8985 GB, free: 258.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/3.013, allocations: 0 / 0.8985 GB, free: 258.6 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1883/3.201, allocations: 65.52 MB / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/3.201, allocations: 0 / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.308e-05/3.201, allocations: 11.98 kB / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/3.201, allocations: 7.938 kB / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/3.201, allocations: 0 / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/3.201, allocations: 12.11 kB / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/3.201, allocations: 3.266 kB / 0.9625 GB, free: 193.2 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002583/3.201, allocations: 147.5 kB / 0.9627 GB, free: 193 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/3.202, allocations: 58.25 kB / 0.9627 GB, free: 193 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.159e-05/3.202, allocations: 4 kB / 0.9627 GB, free: 193 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.922e-05/3.202, allocations: 4 kB / 0.9627 GB, free: 193 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/3.202, allocations: 10.89 kB / 0.9628 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-06/3.202, allocations: 4 kB / 0.9628 GB, free: 192.9 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002143/3.202, allocations: 263.2 kB / 0.963 GB, free: 192.7 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7e-08/3.202, allocations: 0 / 0.963 GB, free: 192.7 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003304/3.205, allocations: 1.46 MB / 0.9644 GB, free: 191.4 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.006089/3.211, allocations: 2.215 MB / 0.9666 GB, free: 189.5 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004266/3.212, allocations: 116.5 kB / 0.9667 GB, free: 189.4 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/3.212, allocations: 1.312 kB / 0.9667 GB, free: 189.4 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.849e-05/3.212, allocations: 26.33 kB / 0.9667 GB, free: 189.4 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004731/3.212, allocations: 66.78 kB / 0.9668 GB, free: 189.3 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009053/3.213, allocations: 0.5324 MB / 0.9673 GB, free: 188.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/3.213, allocations: 0.7753 MB / 0.9681 GB, free: 188 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.053e-05/3.213, allocations: 35.42 kB / 0.9681 GB, free: 187.9 MB / 0.6856 GB Notification: Performance of SimCode: time 5.21e-07/3.213, allocations: 0 / 0.9681 GB, free: 187.9 MB / 0.6856 GB Notification: Performance of Templates: time 0.03363/3.247, allocations: 27.72 MB / 0.9952 GB, free: 160.8 MB / 0.6856 GB " [Timeout remaining time 657] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.333304022904485] Failed to read output from testmodel.py, exit status != 0: 3.426541592925787 3.436357018 0.934525166 Calling exit ...