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.8422/0.8422, allocations: 153.8 MB / 172.7 MB, free: 4.832 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.0005342/0.0005342, allocations: 11.98 kB / 250.3 MB, free: 3.859 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1557, allocations: 33.37 MB / 283.7 MB, free: 2.035 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.821/1.977, allocations: 307.6 MB / 0.5774 GB, free: 17.29 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1983/2.175, allocations: 164.8 MB / 0.7383 GB, free: 300 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003256/2.175, allocations: 15.88 kB / 0.7383 GB, free: 284 kB / 0.5919 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.0001661/2.175, allocations: 44.98 kB / 0.7383 GB, free: 240 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004299/2.176, allocations: 111 kB / 0.7384 GB, free: 128 kB / 0.5919 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.02938/2.205, allocations: 11.46 MB / 0.7496 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006114/2.206, allocations: 396.5 kB / 0.75 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/2.206, allocations: 166.2 kB / 0.7502 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/2.206, allocations: 175.3 kB / 0.7503 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/2.207, allocations: 139.3 kB / 0.7505 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.887e-05/2.207, allocations: 32 kB / 0.7505 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0337/2.24, allocations: 18.61 MB / 0.7687 GB, free: 1.141 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001444/2.241, allocations: 91.67 kB / 0.7688 GB, free: 1.051 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0001976/2.241, allocations: 155.3 kB / 0.7689 GB, free: 0.8984 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02096/2.262, allocations: 9.79 MB / 0.7785 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/2.262, allocations: 0 / 0.7785 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.044e-06/2.262, allocations: 0 / 0.7785 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 8.036e-06/2.262, allocations: 4 kB / 0.7785 GB, free: 7.078 MB / 0.6387 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.00409/2.266, allocations: 1.768 MB / 0.7802 GB, free: 5.266 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/2.266, allocations: 12.03 kB / 0.7802 GB, free: 5.254 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.481e-05/2.266, allocations: 51.72 kB / 0.7803 GB, free: 5.203 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/2.266, allocations: 251.1 kB / 0.7805 GB, free: 4.938 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/2.266, allocations: 32.94 kB / 0.7805 GB, free: 4.906 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/2.266, allocations: 28 kB / 0.7806 GB, free: 4.879 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/2.267, allocations: 364.8 kB / 0.7809 GB, free: 4.496 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/2.267, allocations: 4 kB / 0.7809 GB, free: 4.492 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/2.267, allocations: 16 kB / 0.7809 GB, free: 4.477 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/2.267, allocations: 8 kB / 0.7809 GB, free: 4.469 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/2.268, allocations: 230.4 kB / 0.7812 GB, free: 4.242 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07625/2.344, allocations: 21.91 MB / 0.8026 GB, free: 14.26 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/2.344, allocations: 74.42 kB / 0.8026 GB, free: 14.18 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.619e-05/2.344, allocations: 25.92 kB / 0.8026 GB, free: 14.15 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3929/2.737, allocations: 67.12 MB / 0.8682 GB, free: 289.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/2.737, allocations: 30.56 kB / 0.8682 GB, free: 289.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=5): time 1.863e-06/2.737, allocations: 0.6562 kB / 0.8682 GB, free: 289.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=5): time 0.0003916/2.738, allocations: 120.8 kB / 0.8683 GB, free: 289.8 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/2.738, allocations: 59.02 kB / 0.8684 GB, free: 289.7 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/2.738, allocations: 304.9 kB / 0.8687 GB, free: 289.5 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/2.738, allocations: 25.7 kB / 0.8687 GB, free: 289.5 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 9.208e-05/2.738, allocations: 241.4 kB / 0.8689 GB, free: 289.3 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.475e-05/2.738, allocations: 17.66 kB / 0.869 GB, free: 289.3 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/2.738, allocations: 66.84 kB / 0.869 GB, free: 289.2 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 4.8e-05/2.738, allocations: 326.5 kB / 0.8693 GB, free: 288.9 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/2.738, allocations: 43.05 kB / 0.8694 GB, free: 288.9 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/2.738, allocations: 151.3 kB / 0.8695 GB, free: 288.7 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/2.739, allocations: 195.3 kB / 0.8697 GB, free: 288.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/2.739, allocations: 4 kB / 0.8697 GB, free: 288.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003538/2.739, allocations: 220.1 kB / 0.8699 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/2.739, allocations: 10.06 kB / 0.8699 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/2.739, allocations: 4 kB / 0.8699 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/2.739, allocations: 9.188 kB / 0.8699 GB, free: 288.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006362/2.74, allocations: 115.8 kB / 0.8701 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/2.74, allocations: 8 kB / 0.8701 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/2.74, allocations: 34.72 kB / 0.8701 GB, free: 288.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/2.74, allocations: 8 kB / 0.8701 GB, free: 288.2 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.000116/2.74, allocations: 159.5 kB / 0.8703 GB, free: 288 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/2.74, allocations: 23.86 kB / 0.8703 GB, free: 288 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/2.74, allocations: 121.4 kB / 0.8704 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/2.74, allocations: 0 / 0.8704 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/2.74, allocations: 0 / 0.8704 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/2.74, allocations: 0 / 0.8704 GB, free: 287.9 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1975/2.938, allocations: 65.71 MB / 0.9346 GB, free: 223 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/2.938, allocations: 4 kB / 0.9346 GB, free: 223 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-05/2.938, allocations: 11.98 kB / 0.9346 GB, free: 222.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/2.938, allocations: 4.125 kB / 0.9346 GB, free: 222.9 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/2.938, allocations: 4.875 kB / 0.9346 GB, free: 222.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/2.938, allocations: 0 / 0.9346 GB, free: 222.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/2.938, allocations: 4 kB / 0.9346 GB, free: 222.9 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/2.938, allocations: 151.4 kB / 0.9347 GB, free: 222.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 7.277e-05/2.938, allocations: 35.83 kB / 0.9348 GB, free: 222.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/2.938, allocations: 0 / 0.9348 GB, free: 222.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.205e-05/2.938, allocations: 6.312 kB / 0.9348 GB, free: 222.7 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.179e-05/2.938, allocations: 15.92 kB / 0.9348 GB, free: 222.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/2.938, allocations: 12.7 kB / 0.9348 GB, free: 222.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001573/2.938, allocations: 203.1 kB / 0.935 GB, free: 222.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/2.938, allocations: 0 / 0.935 GB, free: 222.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00263/2.941, allocations: 1.468 MB / 0.9364 GB, free: 221.2 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.004509/2.946, allocations: 2.211 MB / 0.9386 GB, free: 219.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0003607/2.946, allocations: 107.8 kB / 0.9387 GB, free: 219.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/2.946, allocations: 0 / 0.9387 GB, free: 219.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 8.727e-05/2.946, allocations: 28.92 kB / 0.9387 GB, free: 219.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/2.946, allocations: 65.27 kB / 0.9388 GB, free: 219.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006829/2.947, allocations: 0.5033 MB / 0.9393 GB, free: 218.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/2.947, allocations: 168.8 kB / 0.9394 GB, free: 218.4 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001214/2.947, allocations: 38.22 kB / 0.9395 GB, free: 218.4 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.853e-05/2.947, allocations: 23.42 kB / 0.9395 GB, free: 218.4 MB / 0.6856 GB Notification: Performance of SimCode: time 3.3e-07/2.947, allocations: 7.469 kB / 0.9395 GB, free: 218.4 MB / 0.6856 GB Notification: Performance of Templates: time 0.04273/2.99, allocations: 45.25 MB / 0.9837 GB, free: 173.7 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: 8.8996920324862] Failed to read output from testmodel.py, exit status != 0: 3.108541578054428 3.117192871 0.853189098 Calling exit ...