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.8365/0.8365, allocations: 120.3 MB / 139.4 MB, free: 492 kB / 126.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 2.204e-06/2.204e-06, allocations: 0 / 217.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/3.024e-05, allocations: 3.625 kB / 217.2 MB, free: 13.72 MB / 206.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.522/1.522, allocations: 254.3 MB / 471.5 MB, free: 10.55 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.4281/1.95, allocations: 164.8 MB / 0.6214 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/1.95, allocations: 15.88 kB / 0.6214 GB, free: 4.668 MB / 0.5606 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.0001841/1.951, allocations: 35.59 kB / 0.6215 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004559/1.951, allocations: 122.9 kB / 0.6216 GB, free: 4.512 MB / 0.5606 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.03341/1.985, allocations: 11.59 MB / 0.6329 GB, free: 8.914 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006717/1.985, allocations: 399.4 kB / 0.6333 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/1.986, allocations: 165 kB / 0.6335 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004738/1.986, allocations: 255.4 kB / 0.6337 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/1.986, allocations: 123.6 kB / 0.6338 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.732e-05/1.986, allocations: 36 kB / 0.6338 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03799/2.024, allocations: 18.65 MB / 0.6521 GB, free: 5.285 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001581/2.024, allocations: 87.67 kB / 0.6521 GB, free: 5.199 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002481/2.025, allocations: 123.7 kB / 0.6523 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02823/2.053, allocations: 12.35 MB / 0.6643 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/2.053, allocations: 0 / 0.6643 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/2.053, allocations: 0 / 0.6643 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.601e-05/2.053, allocations: 4.656 kB / 0.6643 GB, free: 8.695 MB / 0.6075 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.005371/2.058, allocations: 1.764 MB / 0.666 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.789e-05/2.058, allocations: 8.031 kB / 0.6661 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/2.058, allocations: 47.72 kB / 0.6661 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/2.059, allocations: 252 kB / 0.6663 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.63e-05/2.059, allocations: 29 kB / 0.6664 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/2.059, allocations: 32 kB / 0.6664 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007071/2.06, allocations: 362.5 kB / 0.6667 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/2.06, allocations: 0 / 0.6667 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/2.06, allocations: 16 kB / 0.6668 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/2.06, allocations: 11.94 kB / 0.6668 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/2.06, allocations: 230.4 kB / 0.667 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07984/2.14, allocations: 21.91 MB / 0.6884 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/2.141, allocations: 68.73 kB / 0.6885 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.129e-05/2.141, allocations: 20.92 kB / 0.6885 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5154/2.656, allocations: 67.11 MB / 0.754 GB, free: 82.17 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/2.656, allocations: 33.19 kB / 0.754 GB, free: 82.13 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 2.284e-06/2.656, allocations: 0 / 0.754 GB, free: 82.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0004362/2.657, allocations: 115.4 kB / 0.7542 GB, free: 82.1 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/2.657, allocations: 57.38 kB / 0.7542 GB, free: 82.04 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/2.657, allocations: 303.7 kB / 0.7545 GB, free: 81.93 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/2.657, allocations: 33.77 kB / 0.7545 GB, free: 81.89 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000104/2.657, allocations: 242.1 kB / 0.7548 GB, free: 81.77 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/2.657, allocations: 20.25 kB / 0.7548 GB, free: 81.77 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/2.657, allocations: 61.45 kB / 0.7548 GB, free: 81.74 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.822e-05/2.657, allocations: 329.4 kB / 0.7552 GB, free: 81.43 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/2.657, allocations: 38.58 kB / 0.7552 GB, free: 81.43 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001461/2.657, allocations: 149.1 kB / 0.7553 GB, free: 81.3 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002392/2.658, allocations: 186.5 kB / 0.7555 GB, free: 81.18 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/2.658, allocations: 5.25 kB / 0.7555 GB, free: 81.17 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000379/2.658, allocations: 226.6 kB / 0.7557 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/2.658, allocations: 7.281 kB / 0.7557 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/2.658, allocations: 7.688 kB / 0.7557 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/2.658, allocations: 7.047 kB / 0.7558 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/2.659, allocations: 114.2 kB / 0.7559 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/2.659, allocations: 5.688 kB / 0.7559 GB, free: 81.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/2.659, allocations: 32.5 kB / 0.7559 GB, free: 81.12 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/2.659, allocations: 13.78 kB / 0.7559 GB, free: 81.12 MB / 0.6544 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.0001191/2.659, allocations: 159.5 kB / 0.7561 GB, free: 81 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/2.659, allocations: 23.39 kB / 0.7561 GB, free: 80.99 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/2.659, allocations: 122.2 kB / 0.7562 GB, free: 80.95 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/2.659, allocations: 4 kB / 0.7562 GB, free: 80.94 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/2.659, allocations: 0.75 kB / 0.7562 GB, free: 80.94 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/2.659, allocations: 0 / 0.7562 GB, free: 80.94 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1993/2.859, allocations: 65.69 MB / 0.8204 GB, free: 28.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/2.859, allocations: 4.312 kB / 0.8204 GB, free: 28.48 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.862e-05/2.859, allocations: 15.98 kB / 0.8204 GB, free: 28.47 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/2.859, allocations: 4.609 kB / 0.8204 GB, free: 28.47 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/2.859, allocations: 4 kB / 0.8204 GB, free: 28.46 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/2.859, allocations: 0 / 0.8204 GB, free: 28.46 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/2.859, allocations: 4.172 kB / 0.8204 GB, free: 28.46 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/2.859, allocations: 156.5 kB / 0.8205 GB, free: 28.3 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.51e-05/2.859, allocations: 43.19 kB / 0.8206 GB, free: 28.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.271e-05/2.859, allocations: 4 kB / 0.8206 GB, free: 28.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/2.859, allocations: 7.984 kB / 0.8206 GB, free: 28.26 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-05/2.859, allocations: 0 / 0.8206 GB, free: 28.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/2.859, allocations: 4.562 kB / 0.8206 GB, free: 28.26 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000167/2.859, allocations: 205.1 kB / 0.8208 GB, free: 28.09 MB / 0.6544 GB Notification: Performance of sort global known variables: time 9.1e-08/2.859, allocations: 0 / 0.8208 GB, free: 28.09 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002767/2.862, allocations: 1.468 MB / 0.8222 GB, free: 26.96 MB / 0.6544 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.004977/2.867, allocations: 2.411 MB / 0.8246 GB, free: 25.09 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003798/2.868, allocations: 118.3 kB / 0.8247 GB, free: 25.01 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/2.868, allocations: 0 / 0.8247 GB, free: 25.01 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.472e-05/2.868, allocations: 27.08 kB / 0.8247 GB, free: 24.99 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/2.868, allocations: 60.36 kB / 0.8248 GB, free: 24.95 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006916/2.869, allocations: 0.4922 MB / 0.8253 GB, free: 24.45 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.692e-05/2.869, allocations: 168.8 kB / 0.8254 GB, free: 24.27 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001193/2.869, allocations: 39.64 kB / 0.8255 GB, free: 24.23 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.216e-05/2.869, allocations: 23.88 kB / 0.8255 GB, free: 24.21 MB / 0.6544 GB Notification: Performance of SimCode: time 6.01e-07/2.869, allocations: 0 / 0.8255 GB, free: 24.21 MB / 0.6544 GB Notification: Performance of Templates: time 0.05519/2.924, allocations: 45.13 MB / 0.8695 GB, free: 11.26 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: 9.047557465732098] Failed to read output from testmodel.py, exit status != 0: 3.076316110789776 3.090233024 1.03410392 Calling exit ...