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.574/0.574, allocations: 120.4 MB / 140.2 MB, free: 12.97 MB / 138.7 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 3.337e-06/3.337e-06, allocations: 0 / 218 MB, free: 8.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.976e-05/3.309e-05, allocations: 2.281 kB / 218 MB, free: 8.633 MB / 202.7 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.011/1.011, allocations: 254.3 MB / 472.3 MB, free: 8.816 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3936/1.404, allocations: 164.8 MB / 0.6221 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004024/1.405, allocations: 11.88 kB / 0.6222 GB, free: 11.19 MB / 0.5573 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.0001735/1.405, allocations: 47.58 kB / 0.6222 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000433/1.405, allocations: 126.8 kB / 0.6223 GB, free: 11.02 MB / 0.5573 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.02299/1.428, allocations: 11.57 MB / 0.6336 GB, free: 15.45 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0004893/1.429, allocations: 410.3 kB / 0.634 GB, free: 15.05 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/1.429, allocations: 165.6 kB / 0.6342 GB, free: 14.89 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002935/1.429, allocations: 239.5 kB / 0.6344 GB, free: 14.66 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/1.429, allocations: 119.7 kB / 0.6345 GB, free: 14.54 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/1.429, allocations: 35.94 kB / 0.6345 GB, free: 14.5 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02665/1.456, allocations: 18.65 MB / 0.6528 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001257/1.456, allocations: 91.69 kB / 0.6528 GB, free: 11.74 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001825/1.456, allocations: 123.7 kB / 0.653 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02257/1.479, allocations: 12.34 MB / 0.665 GB, free: 15.24 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/1.479, allocations: 4 kB / 0.665 GB, free: 15.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.674e-06/1.479, allocations: 0 / 0.665 GB, free: 15.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.833e-06/1.479, allocations: 0 / 0.665 GB, free: 15.24 MB / 0.6042 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.00438/1.483, allocations: 1.778 MB / 0.6668 GB, free: 13.42 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/1.483, allocations: 8.031 kB / 0.6668 GB, free: 13.41 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/1.483, allocations: 48.47 kB / 0.6668 GB, free: 13.37 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/1.484, allocations: 258.1 kB / 0.6671 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/1.484, allocations: 29 kB / 0.6671 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.163e-05/1.484, allocations: 32 kB / 0.6671 GB, free: 13.03 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/1.484, allocations: 357.5 kB / 0.6675 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/1.484, allocations: 3.938 kB / 0.6675 GB, free: 12.66 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/1.484, allocations: 12 kB / 0.6675 GB, free: 12.65 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/1.484, allocations: 12 kB / 0.6675 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/1.485, allocations: 234.9 kB / 0.6677 GB, free: 12.41 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03729/1.522, allocations: 21.91 MB / 0.6891 GB, free: 6.434 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/1.522, allocations: 70.56 kB / 0.6892 GB, free: 6.355 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.221e-05/1.522, allocations: 16.86 kB / 0.6892 GB, free: 6.336 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2915/1.814, allocations: 67.12 MB / 0.7547 GB, free: 300.3 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/1.814, allocations: 35.11 kB / 0.7548 GB, free: 300.2 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=5): time 3.135e-06/1.814, allocations: 0.8438 kB / 0.7548 GB, free: 300.2 MB / 0.6667 GB Notification: Performance of matching and sorting (n=5): time 0.0003791/1.814, allocations: 114.7 kB / 0.7549 GB, free: 300.1 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/1.814, allocations: 55.41 kB / 0.7549 GB, free: 300 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/1.814, allocations: 314.7 kB / 0.7552 GB, free: 299.8 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.897e-06/1.814, allocations: 26.25 kB / 0.7552 GB, free: 299.7 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 9.731e-05/1.815, allocations: 242 kB / 0.7555 GB, free: 299.5 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.259e-05/1.815, allocations: 22.56 kB / 0.7555 GB, free: 299.5 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.063e-05/1.815, allocations: 58.48 kB / 0.7556 GB, free: 299.4 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 3.961e-05/1.815, allocations: 326.8 kB / 0.7559 GB, free: 299.1 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.137e-05/1.815, allocations: 44.72 kB / 0.7559 GB, free: 299.1 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.419e-05/1.815, allocations: 147.4 kB / 0.756 GB, free: 298.9 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/1.815, allocations: 194.5 kB / 0.7562 GB, free: 298.7 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.815, allocations: 4 kB / 0.7562 GB, free: 298.7 MB / 0.6667 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002357/1.815, allocations: 222.1 kB / 0.7564 GB, free: 298.4 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/1.815, allocations: 8 kB / 0.7565 GB, free: 298.4 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.815, allocations: 4.984 kB / 0.7565 GB, free: 298.4 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.815, allocations: 4 kB / 0.7565 GB, free: 298.4 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/1.816, allocations: 116.4 kB / 0.7566 GB, free: 298.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/1.816, allocations: 12.72 kB / 0.7566 GB, free: 298.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/1.816, allocations: 30.78 kB / 0.7566 GB, free: 298.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/1.816, allocations: 16 kB / 0.7566 GB, free: 298.3 MB / 0.6667 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.0001192/1.816, allocations: 152 kB / 0.7568 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/1.816, allocations: 23.86 kB / 0.7568 GB, free: 298.1 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/1.816, allocations: 118.6 kB / 0.7569 GB, free: 298 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.816, allocations: 1.594 kB / 0.7569 GB, free: 298 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/1.816, allocations: 2.562 kB / 0.7569 GB, free: 298 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/1.816, allocations: 0 / 0.7569 GB, free: 298 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09808/1.914, allocations: 65.7 MB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/1.914, allocations: 4 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.627e-05/1.914, allocations: 13.58 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/1.914, allocations: 4 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/1.914, allocations: 4.125 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/1.914, allocations: 1.281 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.914, allocations: 7.984 kB / 0.8211 GB, free: 232.3 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/1.914, allocations: 147.4 kB / 0.8212 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/1.915, allocations: 37.72 kB / 0.8213 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/1.915, allocations: 0 / 0.8213 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.774e-05/1.915, allocations: 8.922 kB / 0.8213 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/1.915, allocations: 7.984 kB / 0.8213 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/1.915, allocations: 5.594 kB / 0.8213 GB, free: 232.1 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000116/1.915, allocations: 211.7 kB / 0.8215 GB, free: 231.9 MB / 0.6667 GB Notification: Performance of sort global known variables: time 7e-08/1.915, allocations: 0 / 0.8215 GB, free: 231.9 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002734/1.917, allocations: 1.473 MB / 0.8229 GB, free: 230.6 MB / 0.6667 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.004324/1.922, allocations: 2.397 MB / 0.8253 GB, free: 228.6 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0003226/1.922, allocations: 119.7 kB / 0.8254 GB, free: 228.5 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/1.922, allocations: 0 / 0.8254 GB, free: 228.5 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 4.687e-05/1.922, allocations: 29.05 kB / 0.8254 GB, free: 228.4 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/1.922, allocations: 68.14 kB / 0.8255 GB, free: 228.4 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/1.923, allocations: 0.5132 MB / 0.826 GB, free: 227.8 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.423e-05/1.923, allocations: 169.4 kB / 0.8262 GB, free: 227.6 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.467e-05/1.923, allocations: 36.48 kB / 0.8262 GB, free: 227.6 MB / 0.6667 GB Notification: Performance of SimCode: time 1.162e-06/1.923, allocations: 0 / 0.8262 GB, free: 227.6 MB / 0.6667 GB Notification: Performance of Templates: time 0.0254/1.949, allocations: 27.82 MB / 0.8534 GB, free: 200 MB / 0.6667 GB " [Timeout remaining time 658] 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.375831902958453] Failed to read output from testmodel.py, exit status != 0: 2.1872383477166295 2.083668438 0.60326452 Calling exit ...