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 4.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8487/0.8487, allocations: 152.6 MB / 171.4 MB, free: 6 MB / 142.1 MB
"
[Timeout remaining time 179]
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.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.000526/0.000526, allocations: 11.92 kB / 248.5 MB, free: 5.645 MB / 206.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1573, allocations: 33.06 MB / 281.6 MB, free: 3.551 MB / 222.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.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss): time 1.588/1.745, allocations: 301.2 MB / 0.5691 GB, free: 5.535 MB / 478.1 MB
Notification: Performance of NFInst.instExpressions: time 0.4425/2.187, allocations: 188.1 MB / 0.7528 GB, free: 4.125 MB / 0.6075 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/2.188, allocations: 11.88 kB / 0.7528 GB, free: 4.113 MB / 0.6075 GB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75: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 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47: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 4.0.0-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 4.0.0-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.0001307/2.188, allocations: 35.59 kB / 0.7528 GB, free: 4.078 MB / 0.6075 GB
Notification: Performance of NFTyping.typeBindings: time 0.0002959/2.188, allocations: 115 kB / 0.7529 GB, free: 3.965 MB / 0.6075 GB
[/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.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-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.03068/2.219, allocations: 11.62 MB / 0.7643 GB, free: 8.34 MB / 0.6231 GB
Notification: Performance of NFFlatten.flatten: time 0.0006319/2.219, allocations: 386.7 kB / 0.7646 GB, free: 7.961 MB / 0.6231 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.000254/2.22, allocations: 161.1 kB / 0.7648 GB, free: 7.809 MB / 0.6231 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/2.22, allocations: 163.5 kB / 0.7649 GB, free: 7.648 MB / 0.6231 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/2.22, allocations: 168.3 kB / 0.7651 GB, free: 7.484 MB / 0.6231 GB
Notification: Performance of NFPackage.collectConstants: time 4.676e-05/2.22, allocations: 36 kB / 0.7651 GB, free: 7.449 MB / 0.6231 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.03678/2.257, allocations: 19.96 MB / 0.7846 GB, free: 3.469 MB / 0.6387 GB
Notification: Performance of NFScalarize.scalarize: time 0.000104/2.257, allocations: 75.72 kB / 0.7847 GB, free: 3.395 MB / 0.6387 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002223/2.257, allocations: 183.1 kB / 0.7849 GB, free: 3.215 MB / 0.6387 GB
Notification: Performance of NFConvertDAE.convert: time 0.02152/2.279, allocations: 9.755 MB / 0.7944 GB, free: 9.434 MB / 0.6544 GB
Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/2.279, allocations: 0 / 0.7944 GB, free: 9.434 MB / 0.6544 GB
Notification: Performance of FrontEnd: time 1.503e-06/2.279, allocations: 0 / 0.7944 GB, free: 9.434 MB / 0.6544 GB
Notification: Performance of Transformations before backend: time 7.995e-06/2.279, allocations: 5.125 kB / 0.7944 GB, free: 9.43 MB / 0.6544 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.004557/2.283, allocations: 1.738 MB / 0.7961 GB, free: 7.648 MB / 0.6544 GB
Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/2.283, allocations: 11.97 kB / 0.7961 GB, free: 7.637 MB / 0.6544 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.819e-05/2.283, allocations: 39.77 kB / 0.7962 GB, free: 7.598 MB / 0.6544 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/2.284, allocations: 244.4 kB / 0.7964 GB, free: 7.332 MB / 0.6544 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.097e-05/2.284, allocations: 26.81 kB / 0.7964 GB, free: 7.309 MB / 0.6544 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.483e-05/2.284, allocations: 36 kB / 0.7964 GB, free: 7.273 MB / 0.6544 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006483/2.285, allocations: 356.9 kB / 0.7968 GB, free: 6.898 MB / 0.6544 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/2.285, allocations: 3.938 kB / 0.7968 GB, free: 6.895 MB / 0.6544 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/2.285, allocations: 16 kB / 0.7968 GB, free: 6.879 MB / 0.6544 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/2.285, allocations: 12 kB / 0.7968 GB, free: 6.867 MB / 0.6544 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005158/2.285, allocations: 230.4 kB / 0.797 GB, free: 6.645 MB / 0.6544 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0783/2.363, allocations: 21.81 MB / 0.8183 GB, free: 0.6758 MB / 0.67 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/2.364, allocations: 66.55 kB / 0.8184 GB, free: 0.6016 MB / 0.67 GB
Notification: Performance of preOpt resolveLoops (simulation): time 7.443e-05/2.364, allocations: 24.92 kB / 0.8184 GB, free: 0.5742 MB / 0.67 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.5019/2.866, allocations: 65.41 MB / 0.8823 GB, free: 60.95 MB / 0.6856 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/2.866, allocations: 36.94 kB / 0.8823 GB, free: 60.91 MB / 0.6856 GB
Notification: Performance of pre-optimization done (n=5): time 1.833e-06/2.866, allocations: 0 / 0.8823 GB, free: 60.91 MB / 0.6856 GB
Notification: Performance of matching and sorting (n=5): time 0.0004059/2.866, allocations: 117.2 kB / 0.8825 GB, free: 60.83 MB / 0.6856 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/2.866, allocations: 55.41 kB / 0.8825 GB, free: 60.76 MB / 0.6856 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/2.866, allocations: 306.9 kB / 0.8828 GB, free: 60.56 MB / 0.6856 GB
Notification: Performance of collectPreVariables (initialization): time 8.687e-06/2.866, allocations: 30.55 kB / 0.8828 GB, free: 60.53 MB / 0.6856 GB
Notification: Performance of collectInitialEqns (initialization): time 9.514e-05/2.866, allocations: 231.4 kB / 0.883 GB, free: 60.39 MB / 0.6856 GB
Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/2.866, allocations: 25.16 kB / 0.8831 GB, free: 60.38 MB / 0.6856 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/2.867, allocations: 58.14 kB / 0.8831 GB, free: 60.34 MB / 0.6856 GB
Notification: Performance of setup shared object (initialization): time 4.967e-05/2.867, allocations: 329.4 kB / 0.8834 GB, free: 60.03 MB / 0.6856 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/2.867, allocations: 48.27 kB / 0.8835 GB, free: 60 MB / 0.6856 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/2.867, allocations: 142.3 kB / 0.8836 GB, free: 59.84 MB / 0.6856 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/2.867, allocations: 196.7 kB / 0.8838 GB, free: 59.66 MB / 0.6856 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/2.867, allocations: 4 kB / 0.8838 GB, free: 59.65 MB / 0.6856 GB
Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003762/2.867, allocations: 228.8 kB / 0.884 GB, free: 59.5 MB / 0.6856 GB
Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/2.867, allocations: 8.469 kB / 0.884 GB, free: 59.5 MB / 0.6856 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/2.867, allocations: 9.094 kB / 0.884 GB, free: 59.49 MB / 0.6856 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/2.868, allocations: 7.188 kB / 0.8841 GB, free: 59.48 MB / 0.6856 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006488/2.868, allocations: 117.1 kB / 0.8842 GB, free: 59.41 MB / 0.6856 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/2.868, allocations: 11.75 kB / 0.8842 GB, free: 59.4 MB / 0.6856 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/2.868, allocations: 31.02 kB / 0.8842 GB, free: 59.38 MB / 0.6856 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/2.868, allocations: 15.81 kB / 0.8842 GB, free: 59.37 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.0001049/2.868, allocations: 143.8 kB / 0.8844 GB, free: 59.24 MB / 0.6856 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/2.869, allocations: 32.22 kB / 0.8844 GB, free: 59.21 MB / 0.6856 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/2.869, allocations: 115.6 kB / 0.8845 GB, free: 59.13 MB / 0.6856 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/2.869, allocations: 0 / 0.8845 GB, free: 59.13 MB / 0.6856 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/2.869, allocations: 4.766 kB / 0.8845 GB, free: 59.13 MB / 0.6856 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/2.869, allocations: 4 kB / 0.8845 GB, free: 59.12 MB / 0.6856 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2004/3.069, allocations: 64.07 MB / 0.9471 GB, free: 15.37 MB / 0.7012 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/3.069, allocations: 0 / 0.9471 GB, free: 15.37 MB / 0.7012 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.152e-05/3.069, allocations: 13.42 kB / 0.9471 GB, free: 15.36 MB / 0.7012 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/3.069, allocations: 6.109 kB / 0.9471 GB, free: 15.35 MB / 0.7012 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/3.069, allocations: 1.875 kB / 0.9471 GB, free: 15.35 MB / 0.7012 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/3.069, allocations: 7.812 kB / 0.9471 GB, free: 15.35 MB / 0.7012 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/3.069, allocations: 1.562 kB / 0.9471 GB, free: 15.35 MB / 0.7012 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/3.07, allocations: 154.5 kB / 0.9473 GB, free: 15.19 MB / 0.7012 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/3.07, allocations: 33.14 kB / 0.9473 GB, free: 15.16 MB / 0.7012 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/3.07, allocations: 0 / 0.9473 GB, free: 15.16 MB / 0.7012 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/3.07, allocations: 8.547 kB / 0.9473 GB, free: 15.16 MB / 0.7012 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.451e-05/3.07, allocations: 8.625 kB / 0.9473 GB, free: 15.15 MB / 0.7012 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/3.07, allocations: 13.42 kB / 0.9473 GB, free: 15.14 MB / 0.7012 GB
Notification: Performance of sorting global known variables: time 0.0002597/3.07, allocations: 221.4 kB / 0.9475 GB, free: 14.97 MB / 0.7012 GB
Notification: Performance of sort global known variables: time 1e-07/3.07, allocations: 0 / 0.9475 GB, free: 14.97 MB / 0.7012 GB
Notification: Performance of remove unused functions: time 0.003563/3.074, allocations: 1.448 MB / 0.9489 GB, free: 13.85 MB / 0.7012 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.005668/3.079, allocations: 2.213 MB / 0.9511 GB, free: 12 MB / 0.7012 GB
Notification: Performance of simCode: created initialization part: time 0.0004372/3.08, allocations: 114.9 kB / 0.9512 GB, free: 11.92 MB / 0.7012 GB
Notification: Performance of simCode: created event and clocks part: time 2.515e-06/3.08, allocations: 192 / 0.9512 GB, free: 11.92 MB / 0.7012 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001091/3.08, allocations: 34.5 kB / 0.9512 GB, free: 11.89 MB / 0.7012 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/3.08, allocations: 61.86 kB / 0.9513 GB, free: 11.86 MB / 0.7012 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008256/3.081, allocations: 470.4 kB / 0.9517 GB, free: 11.39 MB / 0.7012 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/3.082, allocations: 0.7608 MB / 0.9525 GB, free: 10.6 MB / 0.7012 GB
Notification: Performance of simCode: alias equations: time 0.0001457/3.082, allocations: 43.22 kB / 0.9525 GB, free: 10.57 MB / 0.7012 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.923e-05/3.082, allocations: 31.42 kB / 0.9526 GB, free: 10.54 MB / 0.7012 GB
Notification: Performance of SimCode: time 3.3e-07/3.082, allocations: 0 / 0.9526 GB, free: 10.54 MB / 0.7012 GB
Notification: Performance of Templates: time 0.06571/3.147, allocations: 45.31 MB / 0.9968 GB, free: 13.65 MB / 0.7481 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.037987339310348]
Failed to read output from testmodel.py, exit status != 0:
3.2950822012498975 3.307902157 1.025959129
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fb29b4757b0>